Skip to content

ci(cascade): release independent repos side by side, in waves - #50

Merged
juicycleff merged 4 commits into
mainfrom
feat/cascade-parallel-waves
Nov 18, 2026
Merged

juicycleff merged 4 commits into
mainfrom
feat/cascade-parallel-waves

Conversation

@juicycleff

Copy link
Copy Markdown
Contributor

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.

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

codecov Bot commented Nov 18, 2026

Copy link
Copy Markdown

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.
@juicycleff
juicycleff merged commit f85128d into main Nov 18, 2026
66 of 68 checks passed
@juicycleff
juicycleff deleted the feat/cascade-parallel-waves branch November 18, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant