Skip to content

The agent that grows with you

feat(release): push the docker image when its own tests pass

ethernet78070dc75727
diff --git a/.github/workflows/stable-release.yml b/.github/workflows/stable-release.yml
index 9ed7470fcea..4626e45103c 100644
--- a/.github/workflows/stable-release.yml
+++ b/.github/workflows/stable-release.yml
@@ -277,7 +277,9 @@ jobs:
publish-docker:
name: Publish tested Docker image
- needs: [admit, acceptance]
+ # B5: this job pushes only the immutable attempt-ref image tags; the
+ # stable/latest aliases move in the ordered publication pass.
+ needs: [admit, docker]
uses: ./.github/workflows/docker.yml
with:
release-phase: publish
diff --git a/tests/ci/test_stable_release_graph.py b/tests/ci/test_stable_release_graph.py
index ae543ea1587..56ca4d24def 100644
--- a/tests/ci/test_stable_release_graph.py
+++ b/tests/ci/test_stable_release_graph.py
@@ -39,8 +39,12 @@ def test_release_reuses_whole_ci_and_docker_before_publication():
assert "ci" in ancestors(jobs, "docker")
required = {"ci", "docker", "nix", "pm-bundle", "install-e2e", "windows-packaged", "macos-packaged", "termux-checks", "windows-live", "candidates", "bootstrap-version"}
assert required <= ancestors(jobs, "acceptance")
- for name in ("publish-docker", "publish-bundles"):
- assert required <= ancestors(jobs, name)
+ # B5: publish-docker starts when the docker tests pass; it does not wait
+ # for the acceptance join. publish-bundles still does.
+ assert jobs["publish-docker"]["needs"] == ["admit", "docker"]
+ assert {"admit", "docker"} <= ancestors(jobs, "publish-docker")
+ assert "acceptance" not in ancestors(jobs, "publish-docker")
+ assert required <= ancestors(jobs, "publish-bundles")
assert {"publish-docker", "publish-bundles", "publication"} <= ancestors(jobs, "complete")
assert "promote-docker" not in jobs and "promote-bundles" not in jobs
for name in ("acceptance", "publication", "complete"):