The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(release): keep a stable run on main from using the controller commit or cancelling pushes
ethernet0dbd96ab7026
diff --git a/.github/workflows/bootstrap-installer.yml b/.github/workflows/bootstrap-installer.ymlindex 42cd3a26bd3..61bfb38b06f 100644--- a/.github/workflows/bootstrap-installer.yml+++ b/.github/workflows/bootstrap-installer.yml@@ -20,8 +20,8 @@ permissions:contents: readconcurrency:- group: bootstrap-installer-${{ github.ref_type == 'tag' && github.run_id || github.ref }}- cancel-in-progress: ${{ github.ref_type != 'tag' }}+ group: bootstrap-installer-${{ (github.ref_type == 'tag' || inputs.commit != '') && github.run_id || github.ref }}+ cancel-in-progress: ${{ github.ref_type != 'tag' && inputs.commit == '' }}jobs:posix:diff --git a/.github/workflows/docker-lint.yml b/.github/workflows/docker-lint.ymlindex a66a023901b..eadde334060 100644--- a/.github/workflows/docker-lint.yml+++ b/.github/workflows/docker-lint.yml@@ -22,8 +22,8 @@ permissions:contents: readconcurrency:- group: docker-lint-${{ github.ref_type == 'tag' && github.run_id || github.ref }}- cancel-in-progress: ${{ github.ref_type != 'tag' }}+ group: docker-lint-${{ (github.ref_type == 'tag' || inputs.commit != '') && github.run_id || github.ref }}+ cancel-in-progress: ${{ github.ref_type != 'tag' && inputs.commit == '' }}jobs:lint-docker-and-shell:diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.ymlindex b6292bb77ba..3c77fd65be8 100644--- a/.github/workflows/docker.yml+++ b/.github/workflows/docker.yml@@ -29,7 +29,7 @@ on:type: stringdefault: ''tag:- description: "Attempt ref (rc.N-vX.Y.Z) under release; the versioned images carry this tag. The caller is dispatched on it, so github.sha is the release candidate."+ description: "Attempt ref (rc.N-vX.Y.Z) under release; the versioned images carry this tag. The candidate commit arrives in the commit input."required: falsetype: stringdefault: ''@@ -63,10 +63,12 @@ concurrency:env:IMAGE_NAME: nousresearch/hermes-agent+ # A stable run is on the default branch, so GITHUB_SHA is not the candidate.+ CANDIDATE_COMMIT: ${{ inputs.commit || github.sha }}jobs:# Resolve the release phase. Release modes run only via workflow_call from- # the parent stable-release workflow on the tagged candidate commit.+ # the parent stable-release workflow, which passes the candidate commit.mode:name: Resolve release phaseruns-on: ubuntu-latest@@ -190,7 +192,7 @@ jobs:if [ -z "$display" ]; thendisplay="$(python3 -m scripts.releases.distance)"fi- identity=(--commit "$GITHUB_SHA")+ identity=(--commit "$CANDIDATE_COMMIT")if [ -n "$display" ]; thenbase="${display%%+*}"development="${display#*+}"@@ -301,7 +303,7 @@ jobs:if image['Architecture'] != os.environ['ARCH']:raise SystemExit('Docker image architecture mismatch')Path('/tmp/image-artifacts/identity.json').write_text(json.dumps({- 'tag': os.environ['RELEASE_TAG'], 'commit': os.environ['GITHUB_SHA'],+ 'tag': os.environ['RELEASE_TAG'], 'commit': os.environ['CANDIDATE_COMMIT'],'arch': os.environ['ARCH'], 'variant': os.environ['VARIANT'], 'imageId': image['Id']}), encoding='utf-8')PYdocker save --output "/tmp/image-artifacts/image-${ARCH}.tar" "${IMAGE_NAME}:test"@@ -369,7 +371,7 @@ jobs:- name: Write install stamprun: |display="$(python3 -m scripts.releases.distance)"- identity=(--commit "$GITHUB_SHA")+ identity=(--commit "$CANDIDATE_COMMIT")if [ -n "$display" ]; thenbase="${display%%+*}"development="${display#*+}"@@ -410,7 +412,7 @@ jobs:build-args: |HERMES_BOT_DESKTOP=${{ matrix.variant == 'desktop' && '1' || '0' }}labels: |- org.opencontainers.image.revision=${{ github.sha }}+ org.opencontainers.image.revision=${{ env.CANDIDATE_COMMIT }}outputs: type=image,name=${{ env.IMAGE_NAME }},push-by-digest=true,name-canonical=true,push=truecache-from: type=gha,scope=docker-${{ matrix.arch }}cache-to: ${{ matrix.variant == 'slim' && format('type=gha,mode=max,scope=docker-{0}', matrix.arch) || '' }}@@ -580,7 +582,7 @@ jobs:from pathlib import Pathidentity = json.loads(Path('/tmp/image-artifacts/identity.json').read_text())loaded = json.loads(Path('/tmp/image-artifacts/loaded.json').read_text())[0]- expected = (os.environ['RELEASE_TAG'], os.environ['GITHUB_SHA'], os.environ['ARCH'], os.environ['VARIANT'])+ expected = (os.environ['RELEASE_TAG'], os.environ['CANDIDATE_COMMIT'], os.environ['ARCH'], os.environ['VARIANT'])if (identity['tag'], identity['commit'], identity['arch'], identity['variant']) != expected:raise SystemExit('Tested Docker archive identity mismatch')if (loaded['Id'], loaded['Architecture']) != (identity['imageId'], identity['arch']):@@ -722,7 +724,7 @@ jobs:mkdir -p /tmp/manifestpython3 -m scripts.releases.docker manifest \--tag "$RELEASE_TAG" \- --commit "$GITHUB_SHA" \+ --commit "$CANDIDATE_COMMIT" \--digest-amd64 "$(sed 's/^sha256://' /tmp/digests/docker-publish-digest-slim-amd64-${RELEASE_TAG}/amd64.digest)" \--digest-arm64 "$(sed 's/^sha256://' /tmp/digests/docker-publish-digest-slim-arm64-${RELEASE_TAG}/arm64.digest)" \> /tmp/manifest/manifest.json@@ -740,7 +742,7 @@ jobs:run: |set -euo pipefailpython3 -m scripts.releases.docker verify \- --tag "$RELEASE_TAG" --commit "$GITHUB_SHA" /tmp/manifest/manifest.json+ --tag "$RELEASE_TAG" --commit "$CANDIDATE_COMMIT" /tmp/manifest/manifest.json- name: Upload release manifest artifactuses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1diff --git a/.github/workflows/e2e-desktop-core.yml b/.github/workflows/e2e-desktop-core.ymlindex bbb69d986a2..221e1c62268 100644--- a/.github/workflows/e2e-desktop-core.yml+++ b/.github/workflows/e2e-desktop-core.yml@@ -23,8 +23,9 @@ permissions:contents: readconcurrency:- group: e2e-desktop-core-${{ github.ref }}- cancel-in-progress: true+ group: e2e-desktop-core-${{ inputs.commit != '' && github.run_id || github.ref }}+ # A stable run is on the default branch. It must not queue behind or cancel a push.+ cancel-in-progress: ${{ inputs.commit == '' }}jobs:core:diff --git a/.github/workflows/e2e-desktop-update.yml b/.github/workflows/e2e-desktop-update.ymlindex 2112aaea5ab..8a0725ec8bf 100644--- a/.github/workflows/e2e-desktop-update.yml+++ b/.github/workflows/e2e-desktop-update.yml@@ -25,8 +25,9 @@ permissions:contents: readconcurrency:- group: e2e-desktop-update-${{ github.ref }}- cancel-in-progress: true+ group: e2e-desktop-update-${{ inputs.commit != '' && github.run_id || github.ref }}+ # A stable run is on the default branch. It must not queue behind or cancel a push.+ cancel-in-progress: ${{ inputs.commit == '' }}jobs:update:diff --git a/.github/workflows/e2e-desktop.yml b/.github/workflows/e2e-desktop.ymlindex 7b25e62bd50..d101b80d946 100644--- a/.github/workflows/e2e-desktop.yml+++ b/.github/workflows/e2e-desktop.yml@@ -16,8 +16,9 @@ permissions:contents: readconcurrency:- group: e2e-desktop-${{ github.ref }}- cancel-in-progress: true+ group: e2e-desktop-${{ inputs.commit != '' && github.run_id || github.ref }}+ # A stable run is on the default branch. It must not queue behind or cancel a push.+ cancel-in-progress: ${{ inputs.commit == '' }}jobs:e2e:@@ -89,7 +90,8 @@ jobs:- name: Run Playwright E2E testsworking-directory: apps/desktoprun: |- if [ "${{ github.ref_name }}" = "main" ]; then+ # A stable run is on main too, but it tests a candidate. It compares and never rewrites baselines.+ if [ "${{ github.ref_name }}" = "main" ] && [ -z "${{ inputs.commit }}" ]; thenecho "On main — generating/updating baseline screenshots"npm run build && xvfb-run -a --server-args="-screen 0 1280x1024x24" \npx playwright test --reporter=list --update-snapshots@@ -107,7 +109,7 @@ jobs:# ── Save updated baselines to cache (main only) ───────────────────- name: Save updated baselines to cache- if: github.ref_name == 'main' && always()+ if: github.ref_name == 'main' && inputs.commit == '' && always()uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0with:path: apps/desktop/e2e/*-snapshots@@ -138,7 +140,7 @@ jobs:# ── Upload just the visual diffs (small, fast to review) ──────────- name: Upload visual diffsid: upload-diffs- if: always() && github.ref_name != 'main'+ if: always() && (github.ref_name != 'main' || inputs.commit != '')uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1with:name: visual-diffs-${{ github.sha }}diff --git a/.github/workflows/install-e2e-macos-run.yml b/.github/workflows/install-e2e-macos-run.ymlindex e82916f90c8..abf9712292e 100644--- a/.github/workflows/install-e2e-macos-run.yml+++ b/.github/workflows/install-e2e-macos-run.yml@@ -79,6 +79,10 @@ on:permissions:contents: read+env:+ # A stable run is on the default branch, so GITHUB_SHA is not the commit under test.+ HERMES_TESTED_COMMIT: ${{ inputs.commit || github.sha }}+jobs:# ---- arm 1: script installs (the shared OS-agnostic driver) --------------e2e:diff --git a/.github/workflows/install-e2e-windows-run.yml b/.github/workflows/install-e2e-windows-run.ymlindex 5d9c9d09b80..7c94b43ccdf 100644--- a/.github/workflows/install-e2e-windows-run.yml+++ b/.github/workflows/install-e2e-windows-run.yml@@ -104,6 +104,10 @@ on:permissions:contents: read+env:+ # A stable run is on the default branch, so GITHUB_SHA is not the commit under test.+ HERMES_TESTED_COMMIT: ${{ inputs.commit || github.sha }}+jobs:bundled-e2e:name: packaged bundle (open-app-update)diff --git a/.github/workflows/install-e2e.yml b/.github/workflows/install-e2e.ymlindex ffbf17c2c1f..34cadfd5b76 100644--- a/.github/workflows/install-e2e.yml+++ b/.github/workflows/install-e2e.yml@@ -123,6 +123,10 @@ concurrency:group: install-e2e-${{ inputs.release == true && github.run_id || github.ref }}cancel-in-progress: ${{ inputs.release != true }}+env:+ # A stable run is on the default branch, so GITHUB_SHA is not the commit under test.+ HERMES_TESTED_COMMIT: ${{ inputs.commit || github.sha }}+jobs:pick-releases:name: Pick release tagsdiff --git a/.github/workflows/lint.yml b/.github/workflows/lint.ymlindex 52c4c2a3497..6b9ca2661bb 100644--- a/.github/workflows/lint.yml+++ b/.github/workflows/lint.yml@@ -32,8 +32,8 @@ permissions:contents: readconcurrency:- group: lint-${{ github.ref_type == 'tag' && github.run_id || github.ref }}- cancel-in-progress: ${{ github.ref_type != 'tag' }}+ group: lint-${{ (github.ref_type == 'tag' || inputs.commit != '') && github.run_id || github.ref }}+ cancel-in-progress: ${{ github.ref_type != 'tag' && inputs.commit == '' }}jobs:lint-diff:diff --git a/.github/workflows/lockfile-diff.yml b/.github/workflows/lockfile-diff.ymlindex b27d78dda9f..1939416e5d8 100644--- a/.github/workflows/lockfile-diff.yml+++ b/.github/workflows/lockfile-diff.yml@@ -33,8 +33,9 @@ permissions:contents: readconcurrency:- group: lockfile-diff-${{ github.event.pull_request.number || github.ref }}- cancel-in-progress: true+ group: lockfile-diff-${{ inputs.commit != '' && github.run_id || github.event.pull_request.number || github.ref }}+ # A stable run is on the default branch. It must not queue behind or cancel a push.+ cancel-in-progress: ${{ inputs.commit == '' }}jobs:diff:diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.ymlindex d04e17431e4..c251d180cf9 100644--- a/.github/workflows/nix.yml+++ b/.github/workflows/nix.yml@@ -43,6 +43,10 @@ concurrency:group: nix-${{ inputs.release == true && github.run_id || github.event.pull_request.number || github.ref }}cancel-in-progress: ${{ inputs.release != true && github.event_name == 'pull_request' }}+env:+ # A stable run is on the default branch, so GITHUB_SHA is not the candidate.+ CANDIDATE_COMMIT: ${{ inputs.commit || github.sha }}+jobs:# A `paths:` filter cannot gate this workflow: a push to main must run it# whatever changed, because the flake packages the product and nine of the@@ -147,7 +151,7 @@ jobs:RELEASE_VERSION: ${{ inputs.version }}run: |mkdir -p "$RUNNER_TEMP/release-source"- git archive "$GITHUB_SHA" | tar -x -C "$RUNNER_TEMP/release-source"+ git archive "$CANDIDATE_COMMIT" | tar -x -C "$RUNNER_TEMP/release-source"python3 scripts/releases/stamping.py --tree "$RUNNER_TEMP/release-source" \--version "$RELEASE_VERSION"@@ -157,14 +161,14 @@ jobs:# A path: flake has no git metadata, so the release source names its# commit with ?rev=: without it self.rev is null, the install stamp# carries no commit, and the packaged CLI reports "unknown".- run: nix flake check "${{ inputs.release == true && format('path:{0}/release-source?rev={1}', runner.temp, github.sha) || '.' }}" --print-build-logs+ run: nix flake check "${{ inputs.release == true && format('path:{0}/release-source?rev={1}', runner.temp, env.CANDIDATE_COMMIT) || '.' }}" --print-build-logs- name: Verify release package runtime identityif: inputs.release == trueenv:RELEASE_VERSION: ${{ inputs.version }}run: |- source="path:$RUNNER_TEMP/release-source?rev=$GITHUB_SHA"+ source="path:$RUNNER_TEMP/release-source?rev=$CANDIDATE_COMMIT"package="$(nix build "$source#default" --no-link --print-out-paths)"actual="$("$package/bin/hermes" --version)"ACTUAL_VERSION="$actual" python3 - <<'PY'diff --git a/.github/workflows/prompt-surface-diff.yml b/.github/workflows/prompt-surface-diff.ymlindex bdda7c317d0..d1343324776 100644--- a/.github/workflows/prompt-surface-diff.yml+++ b/.github/workflows/prompt-surface-diff.yml@@ -33,8 +33,9 @@ permissions:contents: readconcurrency:- group: prompt-surface-diff-${{ github.event.pull_request.number || github.ref }}- cancel-in-progress: true+ group: prompt-surface-diff-${{ inputs.commit != '' && github.run_id || github.event.pull_request.number || github.ref }}+ # A stable run is on the default branch. It must not queue behind or cancel a push.+ cancel-in-progress: ${{ inputs.commit == '' }}jobs:diff:diff --git a/.github/workflows/remote-backends.yml b/.github/workflows/remote-backends.ymlindex 89164e1d3d5..394f2f2ce0c 100644--- a/.github/workflows/remote-backends.yml+++ b/.github/workflows/remote-backends.yml@@ -25,8 +25,8 @@ permissions:contents: readconcurrency:- group: remote-backends-${{ github.ref_type == 'tag' && github.run_id || github.ref }}- cancel-in-progress: ${{ github.ref_type != 'tag' }}+ group: remote-backends-${{ (github.ref_type == 'tag' || inputs.commit != '') && github.run_id || github.ref }}+ cancel-in-progress: ${{ github.ref_type != 'tag' && inputs.commit == '' }}env:# One small image for both the sshd host and the docker backend's sandbox, pinneddiff --git a/.github/workflows/rust-tests.yml b/.github/workflows/rust-tests.ymlindex 63239ae734b..0f782bcb0ce 100644--- a/.github/workflows/rust-tests.yml+++ b/.github/workflows/rust-tests.yml@@ -26,8 +26,8 @@ permissions:contents: readconcurrency:- group: rust-tests-${{ github.ref_type == 'tag' && github.run_id || github.ref }}- cancel-in-progress: ${{ github.ref_type != 'tag' }}+ group: rust-tests-${{ (github.ref_type == 'tag' || inputs.commit != '') && github.run_id || github.ref }}+ cancel-in-progress: ${{ github.ref_type != 'tag' && inputs.commit == '' }}jobs:bootstrap-installer:diff --git a/.github/workflows/tests-os.yml b/.github/workflows/tests-os.ymlindex 0a39bbe7885..b3c523c788a 100644--- a/.github/workflows/tests-os.yml+++ b/.github/workflows/tests-os.yml@@ -70,8 +70,8 @@ permissions:contents: readconcurrency:- group: tests-os-${{ github.ref_type == 'tag' && github.run_id || github.ref }}- cancel-in-progress: ${{ github.ref_type != 'tag' }}+ group: tests-os-${{ (github.ref_type == 'tag' || inputs.commit != '') && github.run_id || github.ref }}+ cancel-in-progress: ${{ github.ref_type != 'tag' && inputs.commit == '' }}jobs:os-tests:diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex 3a51c0fb6e8..44861f62e1a 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -32,8 +32,8 @@ permissions:# Cancel in-progress runs for the same refconcurrency:- group: tests-${{ github.ref_type == 'tag' && github.run_id || github.ref }}- cancel-in-progress: ${{ github.ref_type != 'tag' }}+ group: tests-${{ (github.ref_type == 'tag' || inputs.commit != '') && github.run_id || github.ref }}+ cancel-in-progress: ${{ github.ref_type != 'tag' && inputs.commit == '' }}jobs:test:diff --git a/.github/workflows/uv-lockfile-check.yml b/.github/workflows/uv-lockfile-check.ymlindex 7cdd791c962..966a451b53d 100644--- a/.github/workflows/uv-lockfile-check.yml+++ b/.github/workflows/uv-lockfile-check.yml@@ -59,8 +59,8 @@ permissions:contents: readconcurrency:- group: uv-lockfile-check-${{ github.ref_type == 'tag' && github.run_id || github.ref }}- cancel-in-progress: ${{ github.ref_type != 'tag' }}+ group: uv-lockfile-check-${{ (github.ref_type == 'tag' || inputs.commit != '') && github.run_id || github.ref }}+ cancel-in-progress: ${{ github.ref_type != 'tag' && inputs.commit == '' }}jobs:check:diff --git a/.github/workflows/windows-install-update-e2e.yml b/.github/workflows/windows-install-update-e2e.ymlindex 67cc39c3ad8..82268eb5c08 100644--- a/.github/workflows/windows-install-update-e2e.yml+++ b/.github/workflows/windows-install-update-e2e.yml@@ -42,8 +42,9 @@ permissions:contents: readconcurrency:- group: windows-install-update-e2e-${{ github.event_name }}-${{ github.ref }}- cancel-in-progress: true+ group: windows-install-update-e2e-${{ github.event_name }}-${{ inputs.commit != '' && github.run_id || github.ref }}+ # A stable run is on the default branch. It must not queue behind or cancel a push.+ cancel-in-progress: ${{ inputs.commit == '' }}jobs:install-update:diff --git a/tests/ci/test_stable_release_commit_threading.py b/tests/ci/test_stable_release_commit_threading.pyindex 2d499c92497..b947acb7cbb 100644--- a/tests/ci/test_stable_release_commit_threading.py+++ b/tests/ci/test_stable_release_commit_threading.py@@ -57,6 +57,11 @@ def test_every_call_forwards_the_commit():continue # Admits the claim itself and checks out the admitted SHA.key = commit_input(called)assert key in (job.get("with") or {}), f"{name}:{job_name} does not pass {key} to {called}"+ if name not in {"stable-release.yml", "desktop-bundled-release.yml"}:+ # A nested call must pass its own commit down. An empty or hard-coded value+ # would silently test the controller tip.+ value = job["with"][key]+ assert "inputs.commit" in value, f"{name}:{job_name} passes {value!r} to {called}"def test_every_checkout_follows_the_commit_input():@@ -83,3 +88,55 @@ def test_stable_release_calls_pass_the_admitted_commit():assert value == "${{ needs.admit.outputs.commit }}", f"{job_name}: {value}"needs = job.get("needs", [])assert "admit" in ([needs] if isinstance(needs, str) else needs), f"{job_name} reads admit without needing it"+++# Groups that name the run keep a stable run away from pushes to the same branch.+RUN_SCOPED = ("github.run_id", ("inputs.commit", "inputs.release"))+# docker.yml keys its group on the release phase, which a push never uses.+PHASE_SCOPED = {"docker.yml": "inputs.release-phase"}+++def test_no_lane_shares_a_concurrency_group_with_pushes_to_the_default_branch():+ for name, doc in reachable().items():+ if name in {"stable-release.yml", "desktop-bundled-release.yml"}:+ continue+ blocks = [("workflow", doc.get("concurrency"))]+ blocks += [(job_name, job.get("concurrency")) for job_name, job in (doc.get("jobs") or {}).items()]+ for where, block in blocks:+ group = block.get("group", "") if isinstance(block, dict) else block or ""+ if not group:+ continue+ if name in PHASE_SCOPED:+ assert PHASE_SCOPED[name] in group, f"{name}:{where} group {group!r}"+ continue+ needed, scopes = RUN_SCOPED+ assert needed in group and any(scope in group for scope in scopes), \+ f"{name}:{where} group {group!r} would share main's group with a push"+++# Uses of the triggering ref or SHA that are not a commit under test, with the reason each is safe.+CONTROLLER_REFERENCES = (+ ("github.event_name == 'push'", "a stable run is a workflow_dispatch, so push-only steps skip"),+ ("-${{ github.sha }}", "artifact display name, unique per run"),+ ("description:", "input documentation"),+ ("HEAD_REF:", "label on the lint summary"),+ ("key: visual-baselines-${{ github.ref_name }}", "restores main's baselines and never writes them for a stable run"),+ ("inputs.ref == github.sha", "saves candidates only for the triggering commit, so a stable claim never writes"),+ ("inputs.channel-build != '' && inputs.controller-sha", "smoke tests the staged artifact with the dispatched ref's scripts"),+)+FALLBACK = re.compile(r"inputs\.(commit|ref|sha) \|\|")+REFERENCE = re.compile(r"GITHUB_SHA|github\.sha|github\.ref_name|github\.ref\b|GITHUB_REF")+++def test_no_lane_uses_the_controller_commit_as_the_commit_under_test():+ for name in reachable():+ if name in {"stable-release.yml", "desktop-bundled-release.yml"}:+ continue+ for number, line in enumerate((WORKFLOWS / name).read_text(encoding="utf-8").splitlines(), 1):+ text = line.strip()+ if text.startswith(("#", "group:")) or not REFERENCE.search(text):+ continue+ if FALLBACK.search(text) or "inputs.commit" in text:+ continue+ assert any(allowed in text for allowed, _reason in CONTROLLER_REFERENCES), \+ f"{name}:{number} uses the triggering ref or SHA: {text}"diff --git a/tests/ci/test_stable_release_graph.py b/tests/ci/test_stable_release_graph.pyindex 9c7f2c943f4..77be6fddc4f 100644--- a/tests/ci/test_stable_release_graph.py+++ b/tests/ci/test_stable_release_graph.py@@ -271,9 +271,9 @@ def test_release_gates_extract_consumer_facing_versions():assert "actual != expected" in nix_check# A path: flake has no git metadata; without ?rev= the stamp has no commit# and the packaged CLI reports "unknown".- assert 'release-source?rev=$GITHUB_SHA' in nix_check+ assert 'release-source?rev=$CANDIDATE_COMMIT' in nix_checkflake_check = next(step["run"] for step in nix["flake-check"]["steps"] if step.get("name") == "nix flake check")- assert "release-source?rev={1}" in flake_check and "github.sha" in flake_check+ assert "release-source?rev={1}" in flake_check and "env.CANDIDATE_COMMIT" in flake_checkdef test_versioned_docker_images_belong_to_one_attempt():diff --git a/tests/install/e2e-assets/bundle-inputs.mjs b/tests/install/e2e-assets/bundle-inputs.mjsindex a6ad9b3d350..462b49ae2d6 100644--- a/tests/install/e2e-assets/bundle-inputs.mjs+++ b/tests/install/e2e-assets/bundle-inputs.mjs@@ -61,6 +61,6 @@ if (process.argv[1] && import.meta.url === pathToFileURL(path.resolve(process.arthrow new Error('--manifest-url, --platform, --arch and --out are required')}console.log(await stageBundleInputs({ manifestUrl: values['manifest-url'], platform: values.platform, arch: values.arch, out: values.out,- expectedCommit: process.env.GITHUB_ACTIONS === 'true' ? process.env.GITHUB_SHA : undefined,+ expectedCommit: process.env.GITHUB_ACTIONS === 'true' ? (process.env.HERMES_TESTED_COMMIT || process.env.GITHUB_SHA) : undefined,manifestSha256: process.env.BUNDLE_MANIFEST_SHA256 || undefined }))}diff --git a/tests/install/e2e-assets/bundle-plan.mjs b/tests/install/e2e-assets/bundle-plan.mjsindex 20472959149..60cbc0564a0 100644--- a/tests/install/e2e-assets/bundle-plan.mjs+++ b/tests/install/e2e-assets/bundle-plan.mjs@@ -23,7 +23,7 @@ for (const platform of ['windows', 'macos']) {if (text.length > 1024 * 1024) throw new Error('Bundle manifest exceeds size limit')const data = JSON.parse(text)const manifest = validateBundleInputs(data, platform, data.arch)- if (manifest.new.commit !== process.env.GITHUB_SHA) throw new Error(`${platform}: candidate commit must equal the tested workflow SHA`)+ if (manifest.new.commit !== (process.env.HERMES_TESTED_COMMIT || process.env.GITHUB_SHA)) throw new Error(`${platform}: candidate commit must equal the tested workflow SHA`)await appendFile(process.env.GITHUB_OUTPUT, `${platform}=${JSON.stringify(bundledMatrix(platform, manifest.old.tag))}\n${platform}-arch=${manifest.arch}\n`)await appendFile(process.env.GITHUB_STEP_SUMMARY, `\n${platform}/${manifest.arch} packaged-app → open-app-update: ${manifest.old.tag} → ${manifest.new.tag} (${manifest.new.commit}).\n`)}