Repository navigation
ci(cascade): release independent repos side by side, in waves - #50
Merged
Merged
Conversation
The cascade released one repo at a time, so a forge cascade took hours even though most repos don't wait on each other: forge v1.14.1's first wave had eleven independent repos. Repos are now grouped into waves from the dependency edges the plan already builds, so a repo's wave is one more than the latest wave of anything it waits on. Each wave runs up to CASCADE_PARALLEL repos at once (default 4; 1 is the old one-at-a-time behaviour), and the next wave starts when the whole wave is done. The per-repo work moves into process_repo, run in a subshell per repo: its scratch files (moved, before, after, tidied, verify_failed, msg) live in $WORK/r/<repo>/ instead of being shared, its log is held and printed as one block in order, and its summary rows are appended in order once it finishes. A failing repo lets the rest of its wave finish, then stops the run, since later waves may need it.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…_tests The cascade builds, vets, tests and lints every repo before it pushes, so the release workflow running the tests again only costs time, and its macOS test jobs were the ones stalling on runner capacity. A release workflow's skip-tests or skip_tests input is found while scanning and set on dispatch. Repos listed in the new release_tests config key keep their release tests; that list starts with authsome.
gh run watch exits non-zero on a network error too. During forge v1.14.1 a TLS handshake timeout while watching weave's release stopped the cascade although the release had succeeded. A failed watch is now checked against the run's status and resumed while the run is still going.
… missing shield's release tags only the module it is asked for, so after each cascade integrations/nexusguard had to be released by hand. When a changed nested module's tag is missing after the release and the workflow takes a tag input, the cascade now dispatches it again for dir/vX.Y.Z on the same commit and waits for it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The cascade released one repo at a time, so a forge cascade took hours
even though most repos don't wait on each other: forge v1.14.1's first
wave had eleven independent repos.
Repos are now grouped into waves from the dependency edges the plan
already builds, so a repo's wave is one more than the latest wave of
anything it waits on. Each wave runs up to CASCADE_PARALLEL repos at once
(default 4; 1 is the old one-at-a-time behaviour), and the next wave
starts when the whole wave is done.
The per-repo work moves into process_repo, run in a subshell per repo:
its scratch files (moved, before, after, tidied, verify_failed, msg) live
in $WORK/r// instead of being shared, its log is held and printed
as one block in order, and its summary rows are appended in order once
it finishes. A failing repo lets the rest of its wave finish, then stops
the run, since later waves may need it.
Tested with a dry run against forge v1.14.1: 27 repos in six waves (11, 6, 4, 3, 1, 2), output grouped per repo, and the same result as the sequential script (only octopus left behind, as always).
Not to merge until the forge v1.14.1 cascade, which is running from main's script, has finished.