Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -289,15 +289,22 @@ jobs:
test "$(git rev-parse HEAD^)" = "$TRIGGER_SHA"
test "$(git rev-list -n 1 "$TAG")" = "$RELEASE_SHA"
test -z "$(git status --porcelain --untracked-files=no)"
- name: Prove the exact SHA against mutable upstream Hermes
# Gate the release on the revision this kit claims to support, not on
# whatever upstream happens to be today. A release promises conformance
# at the deployed pin; upstream drift is the scheduled hermes-drift
# lane's job, and gating here on a moving target means an upstream break
# we have deliberately scoped out blocks every release. That is not
# hypothetical: #99220 landed 2026-09-08 and silently blocked this lane
# until the next release run two weeks later.
- name: Prove the exact SHA against the deployed Hermes pin
env:
RELEASE_SHA: ${{ needs.materialize.outputs.release_sha }}
TAG: ${{ needs.materialize.outputs.tag }}
TRIGGER_SHA: ${{ github.sha }}
run: |
test "$(git rev-parse HEAD)" = "$RELEASE_SHA"
test -z "$(git status --porcelain --untracked-files=no)"
just test-contract
just test-contract-pinned
git -C .hermes-agent rev-parse HEAD > hermes-source-sha.txt
test "$(git rev-parse HEAD)" = "$RELEASE_SHA"
test "$(git rev-parse HEAD^)" = "$TRIGGER_SHA"
Expand Down
9 changes: 8 additions & 1 deletion tests/test_release_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,14 @@ def test_exact_release_source_is_tested_and_built_once_in_isolated_jobs(self) ->
)
build_text = yaml.safe_dump(build)
hermes_text = yaml.safe_dump(jobs["hermes-contract"])
self.assertIn("just test-contract", hermes_text)
# Specifically the pinned lane. A release promises conformance at the
# revision the kit supports; gating on upstream lets a break we
# deliberately scoped out block every release. `test-contract` alone
# would match either lane, so assert the pinned one and rule out the
# upstream alias.
self.assertIn("just test-contract-pinned", hermes_text)
self.assertNotIn("just test-contract-upstream", hermes_text)
self.assertNotIn("just test-contract\n", hermes_text)
self.assertNotIn("just test-contract", build_text)
self.assertNotIn(".hermes-agent", build_text)
self.assertIn("just build", build_text)
Expand Down
Loading