test_every_checkout_follows_the_commit_input matched only actions/checkout,
so every useblacksmith/checkout in the stable lane went unchecked: in
docker.yml that is the mode, build, publish and release-publish checkouts. A
`ref: ${{ github.sha }}` on any of them would have passed. Use
workflow_steps.is_checkout, which knows both actions.
ci.yaml keyed manual dispatches on the branch ref with cancel-in-progress
off, so a second `gh workflow run ci.yaml --ref fix/x` sat `pending`
behind the first until that one finished every slow leg (e2e-upgrade
shards, Windows install/update E2E). A release-blocker debug lane lost
~30 min waiting on runs whose answer it had already read.
cancel-in-progress now also covers workflow_dispatch on any ref but
main, the same way a new push to a PR supersedes the previous run.
Unchanged: pushes to main, a dispatch on main, and stable-release
workflow_call runs (their group is run_id and inputs.release
short-circuits the expression).
tests/ci/test_ci_concurrency_cancel.py evaluates the real block for each
start mode; the side-branch dispatch case is red on the old expression.
The commit-threading guard gets an allowlist row for the github.ref use,
which never chooses the commit under test.
Review found that a run on main still treated main's tip as the commit
under test in several places, and shared concurrency groups with pushes.
- Concurrency: 14 nested workflows keyed their group on the ref, or on
"tag". A stable run is on main, so a push could cancel its checks. They
now use the run id when the caller passes a commit, and never cancel.
- Docker and Nix archived, stamped and labelled GITHUB_SHA. They now use
CANDIDATE_COMMIT, which is the commit input or the triggering commit.
- Install e2e compared the package manifest with GITHUB_SHA. It now reads
HERMES_TESTED_COMMIT.
- e2e-desktop rewrote the visual baselines whenever the ref was main. A
stable run now only compares.
- The lint test checks the value each nested call passes, every
concurrency group, and any other use of the triggering ref or SHA.
Stable Release will run from the default branch, so GITHUB_SHA will no
longer be the claim commit. Each reusable workflow reachable from it now
takes an optional `commit` input, and its checkouts use it.
An empty input keeps today's behavior for PR and push runs. A lint test
walks the workflow graph and fails when a lane cannot be told which commit
to test, when a call does not forward it, or when a checkout ignores it.
The packaged-install jobs now need `admit` directly. A job only sees the
outputs of its direct needs.