Skip to content

release: fail the run when no key can sign the sums (#366) - #369

Merged
avrabe merged 2 commits into
mainfrom
fix/release-sign-fail-closed
Nov 14, 2026
Merged

avrabe merged 2 commits into
mainfrom
fix/release-sign-fail-closed

Conversation

@avrabe

@avrabe avrabe commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

The DSSE step in release.yml warned and ran exit 0 when neither VARVE_ROOT_KEY nor VARVE_ROLLING_KEY was set. The release then completed success without SHA256SUMS.txt.dsse.json, and varve self-update / self-verify would refuse that release in every consumer.

The workflow triggers only on v* tags and on a dispatch that rebuilds an existing tag, so every run is a release build. A missing key is now ::error:: and exit 1. The step runs before "Create or update GitHub Release", so no release is published without the envelope.

Evidence: I extracted the step's key-selection block and ran it alone. With no key set it exits 1 and prints the error. With VARVE_ROLLING_KEY set it reaches the signing command with key id varve-rolling-1. The full step only runs on a tag, so CI does not exercise it. v0.45.0–v0.47.0 all carry the envelope, so no shipped release was affected.

Also: the first CI run failed a_wrapper_script_around_a_second_varve_ends_in_a_loop_error_not_a_hang in the test and coverage jobs with Text file busy (ETXTBSY) when exec'ing a varve copy the test had just written. That test exists on main too. The second commit waits until the copy can be exec'd and retries only ETXTBSY, for at most 5 s.

Closes #366

🤖 Generated with Claude Code

https://claude.ai/code/session_01KEjmjczUmt6Rdd9DRKe75Z

avrabe and others added 2 commits November 14, 2026 05:08
The DSSE step printed a warning and exited 0 when neither VARVE_ROOT_KEY
nor VARVE_ROLLING_KEY was set, so a release could publish without
SHA256SUMS.txt.dsse.json and every consumer's self-update would refuse it.
The workflow runs only on v* tags and on a dispatch that rebuilds one, so
every run is a release build: a missing key is now ::error:: and exit 1,
before the GitHub Release is created.

Checked by running the step's key-selection block alone: no key exits 1,
VARVE_ROLLING_KEY set reaches the signing command with varve-rolling-1.

Closes #366

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KEjmjczUmt6Rdd9DRKe75Z
a_wrapper_script_around_a_second_varve_ends_in_a_loop_error_not_a_hang
copies the varve binary and execs the copy through a wrapper script. While
the copy's write descriptor is open, another test thread can fork and hold
it until that child's exec, so exec'ing the copy fails with "Text file
busy" (exit 126 instead of 1). It failed that way in both the test and the
coverage job on this PR's CI. The test now execs the copy with --version
until it is not busy, retrying only ETXTBSY, for at most 5 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KEjmjczUmt6Rdd9DRKe75Z
@avrabe
avrabe merged commit 6b34bbc into main Nov 14, 2026
53 checks passed
@avrabe
avrabe deleted the fix/release-sign-fail-closed branch November 14, 2026 11:54
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.

release.yml: a tag build with no signing key ships without SHA256SUMS.txt.dsse.json and exits 0

1 participant