Skip to content

ci(release): pin builds to the verified commit and tighten ordering - #2396

Merged
thiras merged 2 commits into
mainfrom
ci/release-hardening-2389
Oct 9, 2026
Merged

thiras merged 2 commits into
mainfrom
ci/release-hardening-2389

Conversation

@thiras

@thiras thiras commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Closes #2389.

Hardening

  • Checkouts pinned to github.sha. build-binaries and docker no longer check out the tag name. The tag job fails if refs/tags/$GITHUB_REF_NAME^{commit} ≠ $GITHUB_SHA, so a tag re-pushed mid-run can't get one commit signature-checked and another built.
  • --locked on both cross build and cargo build.
  • Semver baseline fails loudly. TAGS=$(git tag --list …) is its own statement, so bash -e aborts if git tag fails. Before, the run fell through to has_baseline=false. Checked locally: the old for t in $(failing) form exits 0, and the new assignment exits 128.
  • docker needs upload-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-gnu rather than matrix.cross. It now checks every binary, the decdn CLI 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

  • concurrency comment: 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.md step 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.
  • Removed changelog voice in four places. Corrected the "Re-run failed jobs" note.

Not changed

actionlint's unknown permission scope "code-quality" at ci.yml:344/946 is an actionlint false positive. v1.7.12's scope list predates GitHub Code Quality, GitHub accepts the workflow, and actions/upload-code-coverage needs that scope. actionlint isn't gated anywhere, so ci.yml is unchanged.

Review follow-ups (second commit)

  • Concurrency comment: GitHub never cancels the running run, but it drops a pending one when a third tag queues.
  • The tag-SHA step duplicates a check actions/checkout@v7 already does. It stays as a workflow-level assertion, and the comment says so.

Not in this PR

  • The semver baseline picks the highest tag overall, not the highest below the release. A hotfix cut after a later minor, or a release after an -rc tag, 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.md still says a future release adds cosign signatures.

Testing

  • actionlint .github/workflows/release.yml: clean.
  • I ran the extracted glibc step locally. It fails a native build (needs 2.39) at the 2.31 floor and passes it at 2.39. A missing binary and a static ELF each fail with their own ::error::.
  • release.yml only runs on a tag push. The next release, or a fork rehearsal, will exercise it end to end.

🤖 Generated with Claude Code

- 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]>
Copilot AI balanced review requested due to automatic review settings October 9, 2026 13:20
@thiras thiras self-assigned this Oct 9, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.sha and 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.

Comment thread .github/workflows/release.yml Resolved
- 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]>
@thiras
thiras merged commit d70f911 into main Oct 9, 2026
26 checks passed
@thiras
thiras deleted the ci/release-hardening-2389 branch October 9, 2026 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci(release): hardening and doc follow-ups from the #2387 review

2 participants