[treescript] switch from using `actions` to using `behaviors`
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 30/100
Rechercherichtung
Beginne mit treescript/src/treescript/script.py in den Zeilen 57-67 und vergleiche dies mit iscript/src/iscript/script.py in den Zeilen 29-50. Erfasse die vorhandenen Kombinationen von Aktionen sowie die merge-day- und l10n-Workflows, bevor du die Verhaltensgrenzen festlegst. Erledigt bedeutet, dass treescript Verhaltensweisen mit separat testbaren unterstützten Workflows verwendet, einschließlich der beschriebenen Interaktionen von version-bump, Tagging, merge-day und l10n.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
In treescript, we currently use actions to determine what logic to run. This follows the mozharness model, and made sense when we first implemented treescript, to allow us to tag, version bump, and/or push independently or together. However, the script has grown in complexity, now supporting l10n bumping and merge day automation, and there are the following downsides to using actions:
- Various actions are incompatible with each other. Neither l10n bumping nor merge day were designed to work with the current tagging or version bumping logic, so there are caveats when choosing combinations of actions to run.
- If we make a large change or refactor to one or more of the actions, we need to test to make sure all valid combinations of actions still work. It isn't completely clear which combinations of actions are supported, and which are not.
- If we want to include or exclude an action in a given set of tasks, we also have to make an in-tree change, and coordinate landing. This likely means we need to run at least one full staging release to test this and (2).
- It's trickier making a change where an action behaves differently in a subset of cases. This likely means adding a task payload setting, and then making sure that setting is correctly set in all permutations of the gecko taskgraph.
In iscript, we use behaviors to determine what logic to run. Instead of multiple mix-and-match actions per task, there is a single behavior per task. If we need to be able to run tagging separately from version bumping, as well as together, that might mean three behaviors (tag, version_bump, version_bump_and_tag) or a single behavior with flags (version_bump_and_tag, with an empty new_version, for instance).
This doesn't seem like a big win when looking at just tagging, version bumping, and pushing. When we get to merge day automation, however, it's a huge win:
- the merge day behavor can have all appropriate logic baked in. We can test these as appropriate.
- we may even want to separate these into separate behaviors:
merge_central_to_beta,merge_beta_to_release,merge_release_to_esr,bump_esr,bump_early_to_late_beta,bump_central. (bump_centralcould potentially be part of themerge_central_to_betatask if we wanted, though.) These would duplicate a lot of the same logic, but those could be factored out into simple standalone functions that they each call. - we will be able to test these separately, and be able to make more surgical changes if any of these behaviors need different workflows than the others.
- we may even want to separate these into separate behaviors:
- we want to l10n bump after the
central_to_betabehavior. This currently necessitates another task, and we have to deal with both a) removingDONTBUILDand b) addingCLOSED TREE, which is a change from the current non-merge-day behavior. We can add an l10n bump helper function call into themerge_central_to_betabehavior function, with the appropriateDONTBUILD/CLOSED TREEsettings, and that problem is solved. - we want to version bump in the merge behavior. We can call the version bump helper function.
- by having a single task handle all of these, rather than multiple disparate tasks, we avoid multiple pushes, and save in both CI compute time and taskgraph complexity.
Not a blocker, but I think moving from actions to behaviors will save us time and headache in the long run.
- Vorherrschende Sprache
- Python
- Sterne
- 16
- Forks
- 38
- Ø Merge
- 13 Std. 21 Min.
- Gemergte PRs (30 T.)
- 17
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus mozilla-releng/scriptworker-scripts
-
Dependency DashboardOffen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 15/100
mozilla-releng/scriptworker-scripts#1321 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
mozilla-releng/scriptworker-scripts#1109 ·
Maintainer antworten meist innerhalb von 1 Tag
-
treescript
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
mozilla-releng/scriptworker-scripts#1055 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 32/100
mozilla-releng/scriptworker-scripts#994 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
mozilla-releng/scriptworker-scripts#980 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in mozilla-releng/scriptworker-scripts
Ähnliche Issues
-
`lvm_compact` has no self-hosted twin, and `docs/158` §5 says every language-face component mustOffenbug sev-3 vm
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
sierra-research/tau2-bench#635 ·
Maintainer antworten meist innerhalb von 1 Tag
-
The add-ssm-model skill requires a Cython simulator; the contributing guide allows Python onesEvtl. vergeben @fmuia hat das heute übernommen. Offendocumentation skill
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
lnccbrown/ssm-simulators#406 ·
Maintainer antworten meist innerhalb von 4 Tagen
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 95/100
btclib-org/btclib-ecc#309 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
autowarefoundation/autoware_carla_scenario#281 ·
Maintainer antworten meist innerhalb von 1 Tag