The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(release): publish-bundles runs when an upgrade arm skipped for lack of a baseline
Tekniuma138be8023ef
diff --git a/.github/workflows/stable-release.yml b/.github/workflows/stable-release.ymlindex b7e6a8ac8c4..319abf4c169 100644--- a/.github/workflows/stable-release.yml+++ b/.github/workflows/stable-release.yml@@ -538,7 +538,12 @@ jobs:publish-bundles:name: Publish tested bundle artifactsneeds: [admit, acceptance, candidate-manifest]- if: needs.admit.outputs.skip-bundles != 'true'+ # acceptance's own needs include signed-package arms that skip when there is no published+ # baseline (the first bundled release). Without !cancelled() that skip propagates here and+ # publication then refuses publish-bundles=skipped. acceptance itself is the gate.+ if: >-+ !cancelled() && needs.admit.outputs.skip-bundles != 'true'+ && needs.acceptance.result == 'success' && needs.candidate-manifest.result == 'success'permissions:contents: writeactions: readdiff --git a/tests/ci/test_stable_release_graph.py b/tests/ci/test_stable_release_graph.pyindex a8ec4b82aee..390505a6028 100644--- a/tests/ci/test_stable_release_graph.py+++ b/tests/ci/test_stable_release_graph.py@@ -138,6 +138,30 @@ def test_claim_flags_remove_exactly_the_jobs_the_gate_expects_skipped():assert set(gated) <= set(needs_of(name)), name+def test_a_skipped_upgrade_arm_never_skips_a_gated_publish_job():+ """The signed-package upgrade arms skip when there is no published baseline (the first bundled+ release). A gated job downstream of one without a status function inherits that skip, and the+ publication gate then refuses it: rc.11-v0.21.7 blocked on publish-bundles=skipped."""+ from scripts.releases.stable import PACKAGED_BY++ jobs = workflow("stable-release.yml")["jobs"]++ def ancestors_of(name, seen=None):+ seen = set() if seen is None else seen+ needs = jobs[name].get("needs", [])+ for need in [needs] if isinstance(needs, str) else needs:+ if need not in seen:+ seen.add(need)+ ancestors_of(need, seen)+ return seen++ for name, job in jobs.items():+ if set(PACKAGED_BY) & ancestors_of(name):+ condition = str(job.get("if", ""))+ assert "always()" in condition or "!cancelled()" in condition, (+ f"{name} skips whenever an upgrade arm skips")++def test_all_applicable_ci_jobs_are_aggregated_and_desktop_e2e_stays_deferred():jobs = workflow("ci.yaml")["jobs"]checks = {name for name, job in jobs.items() if "uses" in job}