Skip to content

The agent that grows with you

feat(release): start the gates and the signed candidates together

ethernetb5d583c4aca6
diff --git a/.github/workflows/stable-release.yml b/.github/workflows/stable-release.yml
index 2097bc166af..36fbc3cec0d 100644
--- a/.github/workflows/stable-release.yml
+++ b/.github/workflows/stable-release.yml
@@ -69,12 +69,12 @@ jobs:
docker:
name: Docker build and tests
- needs: [admit, ci]
+ needs: admit
# The image publish-docker pushes is built here, so a claim that skipped
- # tests still runs this job with its tests off.
+ # tests still runs this job with its tests off. It builds alongside the
+ # gates; only the acceptance join waits for CI.
if: >-
!cancelled() && needs.admit.result == 'success'
- && (needs.ci.result == 'success' || needs.admit.outputs.skip-tests == 'true')
uses: ./.github/workflows/docker.yml
with:
release-phase: test
@@ -83,23 +83,28 @@ jobs:
version: ${{ needs.admit.outputs.version }}
nix:
- needs: [admit, ci, docker]
+ needs: admit
+ # The claim's policy removes it, not a gate it happens to need.
+ if: needs.admit.outputs.skip-tests != 'true'
uses: ./.github/workflows/nix.yml
with:
release: true
version: ${{ needs.admit.outputs.version }}
pm-bundle:
- needs: [admit, ci, docker]
- # Needing ci already removes it under skip-tests.
- if: needs.admit.outputs.skip-bundles != 'true'
+ needs: admit
+ # Bundle acceptance is a test of bundles, so either claim flag removes it.
+ if: >-
+ needs.admit.outputs.skip-bundles != 'true'
+ && needs.admit.outputs.skip-tests != 'true'
uses: ./.github/workflows/pm-bundle.yml
with:
release: true
ref: ${{ github.sha }}
termux-checks:
- needs: [ci, docker]
+ needs: admit
+ if: needs.admit.outputs.skip-tests != 'true'
permissions:
contents: read
actions: read
@@ -108,14 +113,16 @@ jobs:
release: true
windows-live:
- needs: [ci, docker]
+ needs: admit
+ if: needs.admit.outputs.skip-tests != 'true'
uses: ./.github/workflows/windows-venv-e2e.yml
with:
release: true
install-e2e:
name: Install and update E2E
- needs: [ci, docker]
+ needs: admit
+ if: needs.admit.outputs.skip-tests != 'true'
permissions:
contents: read
actions: read
@@ -128,11 +135,10 @@ jobs:
candidates-darwin-arm64:
name: Build signed release candidates (darwin-arm64)
- needs: [admit, ci, docker]
+ needs: admit
+ # Starts with the gates; the acceptance join is what requires CI.
if: >-
!cancelled() && needs.admit.result == 'success' && needs.admit.outputs.skip-bundles != 'true'
- && needs.docker.result == 'success'
- && (needs.ci.result == 'success' || needs.admit.outputs.skip-tests == 'true')
permissions:
contents: write
actions: read
@@ -149,11 +155,10 @@ jobs:
candidates-darwin-x64:
name: Build signed release candidates (darwin-x64)
- needs: [admit, ci, docker]
+ needs: admit
+ # Starts with the gates; the acceptance join is what requires CI.
if: >-
!cancelled() && needs.admit.result == 'success' && needs.admit.outputs.skip-bundles != 'true'
- && needs.docker.result == 'success'
- && (needs.ci.result == 'success' || needs.admit.outputs.skip-tests == 'true')
permissions:
contents: write
actions: read
@@ -170,11 +175,10 @@ jobs:
candidates-win32-arm64:
name: Build signed release candidates (win32-arm64)
- needs: [admit, ci, docker]
+ needs: admit
+ # Starts with the gates; the acceptance join is what requires CI.
if: >-
!cancelled() && needs.admit.result == 'success' && needs.admit.outputs.skip-bundles != 'true'
- && needs.docker.result == 'success'
- && (needs.ci.result == 'success' || needs.admit.outputs.skip-tests == 'true')
permissions:
contents: write
actions: read
@@ -191,11 +195,10 @@ jobs:
candidates-win32-x64:
name: Build signed release candidates (win32-x64)
- needs: [admit, ci, docker]
+ needs: admit
+ # Starts with the gates; the acceptance join is what requires CI.
if: >-
!cancelled() && needs.admit.result == 'success' && needs.admit.outputs.skip-bundles != 'true'
- && needs.docker.result == 'success'
- && (needs.ci.result == 'success' || needs.admit.outputs.skip-tests == 'true')
permissions:
contents: write
actions: read
@@ -212,11 +215,10 @@ jobs:
candidates-win32-bundle:
name: Build signed release candidates (win32-bundle)
- needs: [admit, ci, docker, candidates-win32-arm64, candidates-win32-x64]
+ needs: [admit, candidates-win32-arm64, candidates-win32-x64]
+ # Starts with the gates; the acceptance join is what requires CI.
if: >-
!cancelled() && needs.admit.result == 'success' && needs.admit.outputs.skip-bundles != 'true'
- && needs.docker.result == 'success'
- && (needs.ci.result == 'success' || needs.admit.outputs.skip-tests == 'true')
&& needs.candidates-win32-arm64.result == 'success'
&& needs.candidates-win32-x64.result == 'success'
permissions:
@@ -235,11 +237,10 @@ jobs:
candidates-termux:
name: Build signed release candidates (termux)
- needs: [admit, ci, docker]
+ needs: admit
+ # Starts with the gates; the acceptance join is what requires CI.
if: >-
!cancelled() && needs.admit.result == 'success' && needs.admit.outputs.skip-bundles != 'true'
- && needs.docker.result == 'success'
- && (needs.ci.result == 'success' || needs.admit.outputs.skip-tests == 'true')
permissions:
contents: write
actions: read
diff --git a/tests/ci/test_stable_release_graph.py b/tests/ci/test_stable_release_graph.py
index f72a32d75de..1ed2997c4c5 100644
--- a/tests/ci/test_stable_release_graph.py
+++ b/tests/ci/test_stable_release_graph.py
@@ -14,6 +14,11 @@ def workflow(name):
return YAML(typ="base").load((ROOT / ".github/workflows" / name).read_text(encoding="utf-8"))
+def direct_needs(jobs, name):
+ needs = jobs[name].get("needs", [])
+ return [needs] if isinstance(needs, str) else needs
+
+
def ancestors(jobs, name):
seen = set()
pending = [name]
@@ -38,9 +43,16 @@ def test_release_reuses_whole_ci_and_docker_before_publication():
assert "secrets" not in jobs["ci"]
assert jobs["docker"]["uses"] == jobs["publish-docker"]["uses"]
assert jobs["docker"]["with"]["release-phase"] == "test"
- assert "ci" in ancestors(jobs, "docker")
+ # B7: every gate and every signed candidate starts straight after admit.
+ # The acceptance join requires CI, so a slow gate cannot delay a build.
+ for parallel in ("docker", "nix", "pm-bundle", "termux-checks", "windows-live", "install-e2e"):
+ assert direct_needs(jobs, parallel) == ["admit"], parallel
candidate_calls = ["candidates-darwin-arm64", "candidates-darwin-x64", "candidates-win32-arm64",
"candidates-win32-x64", "candidates-win32-bundle", "candidates-termux"]
+ # The Windows bundle group is the only candidate that waits on a peer.
+ for call in candidate_calls:
+ assert set(direct_needs(jobs, call)) <= {
+ "admit", "candidates-win32-arm64", "candidates-win32-x64"}, call
required = {"ci", "docker", "nix", "pm-bundle", "install-e2e", "windows-packaged",
"macos-packaged-arm64", "macos-packaged-x64", "termux-checks", "windows-live",
"candidate-manifest", "transitions-darwin-arm64", "transitions-darwin-x64",
diff --git a/website/docs/developer-guide/stable-releases.md b/website/docs/developer-guide/stable-releases.md
index fe57628c1ed..5dc64abc7ac 100644
--- a/website/docs/developer-guide/stable-releases.md
+++ b/website/docs/developer-guide/stable-releases.md
@@ -250,6 +250,11 @@ The desktop workflow takes a `jobs` input with the groups `darwin-arm64`,
groups, which wait for a real Linux build. Each Mac arch and the Windows bundle
stage a receipt, and each install arm starts from its own receipt as soon as
its own bytes are staged. `acceptance` is the one join that blocks publication.
+
+Every gate and every candidate starts straight after `admit`. CI is a gate that
+`acceptance` requires, not a lock the signed builds wait behind, so a slow gate
+cannot delay a bundle; the price is that a broken `main` still pays for signed
+candidates that `acceptance` then refuses.
The `smoke-win32-universal` job is gone; the per-arch MSIX smokes cover each
arch, and the Windows install arms install the `.msixbundle` on both arches.