Repository navigation
ci(release): pin builds to the verified commit and tighten ordering - #2396
Merged
Merged
Conversation
- tag: fail when the tag no longer points at github.sha; build-binaries and docker check out github.sha instead of the tag name - build-binaries: --locked on cross and cargo builds; glibc floor check moves into the Linux legs and covers every binary, CLI included - verify: a failed `git tag --list` aborts the semver baseline instead of silently skipping semver-checks - docker waits for upload-assets, so a short archive set never gets an image, SBOM or digest attached to the draft - comments: fix the idempotency and re-run claims, drop changelog voice - RELEASING.md: verify step order, new gates, image-after-upload ordering Closes #2389 Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Tag verification uses a stale local ref and does not bind draft artifacts to the triggering commit.
1 open finding
What changed in this PR
Hardens release CI for issue #2389 and aligns release documentation.
Changes:
- Pins builds to
github.shaand uses locked dependencies. - Moves glibc validation before uploads and tightens job ordering.
- Improves semver failure handling and release documentation.
| File | Description |
|---|---|
.github/workflows/release.yml |
Hardens release verification, builds, and ordering. |
RELEASING.md |
Documents the updated release process. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- glibc check asserts 2.31, the floor ADR 000 sets (was 2.36); covers any *-linux-gnu* triple; the "no GLIBC symbols" and "not built" errors are now reachable under pipefail - concurrency comment: the running run is never cancelled, but GitHub drops a pending run when a third tag queues - tag-SHA step comment: actions/checkout also enforces it; this keeps the guarantee in the workflow - RELEASING.md: ADR-cited floor, commit-pinning wording, re-runs of upload-assets/docker also orphan a manifest Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Closes #2389.
Hardening
github.sha.build-binariesanddockerno longer check out the tag name. Thetagjob fails ifrefs/tags/$GITHUB_REF_NAME^{commit}≠$GITHUB_SHA, so a tag re-pushed mid-run can't get one commit signature-checked and another built.--lockedon bothcross buildandcargo build.TAGS=$(git tag --list …)is its own statement, sobash -eaborts ifgit tagfails. Before, the run fell through tohas_baseline=false. Checked locally: the oldfor t in $(failing)form exits 0, and the new assignment exits 128.dockerneedsupload-assets. A failed 11-archive check no longer leaves an SBOM and digest in the draft. The glibc floor check moves into the Linux build legs, keyed on-linux-gnurather thanmatrix.cross. It now checks every binary, thedecdnCLI included, before any archive is uploaded. It asserts 2.31, the floor ADR 000 states the workflow asserts; the previous 2.36 contradicted the ADR. v0.0.1's binaries need 2.18, so this has headroom.Docs and comments
concurrencycomment: the uploads are idempotent.RELEASING.md§ Recovery was right. The comment now gives the real reason to queue: the group is shared by every tag.RELEASING.mdstep 4 order now matches the workflow (dry run before semver-checks). Steps 2, 6 and 7 cover the new gates and the image-after-upload ordering.Not changed
actionlint'sunknown permission scope "code-quality"atci.yml:344/946is an actionlint false positive. v1.7.12's scope list predates GitHub Code Quality, GitHub accepts the workflow, andactions/upload-code-coverageneeds that scope. actionlint isn't gated anywhere, soci.ymlis unchanged.Review follow-ups (second commit)
actions/checkout@v7already does. It stays as a workflow-level assertion, and the comment says so.Not in this PR
-rctag, compares against the wrong baseline or skips with a plausible "breaking bump" message. This predates ci(release): build both binaries per target and verify in parallel #2387.SECURITY.mdstill says a future release adds cosign signatures.Testing
actionlint .github/workflows/release.yml: clean.::error::.release.ymlonly runs on a tag push. The next release, or a fork rehearsal, will exercise it end to end.🤖 Generated with Claude Code