Repository navigation
release: fail the run when no key can sign the sums (#366) - #369
Merged
Merged
Conversation
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
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.
The DSSE step in
release.ymlwarned and ranexit 0when neitherVARVE_ROOT_KEYnorVARVE_ROLLING_KEYwas set. The release then completedsuccesswithoutSHA256SUMS.txt.dsse.json, andvarve self-update/self-verifywould 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::andexit 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_KEYset it reaches the signing command with key idvarve-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_hangin the test and coverage jobs withText 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