Repository navigation
Release: build only from a green main commit; free disk on Linux runners - #39
Merged
MHohlios merged 1 commit intoNov 4, 2026
Conversation
…inux runners The release no longer re-runs CI, where a full disk (v0.1.1) or a flaky test (v0.1.0) failed it. A first job checks that CI passed on main for the tagged commit, and every build waits for it. The CI and Linux release builds free the runner's unused preinstalled software first. docs/releasing.md explains the gate and how to remove a failed tag.
MHohlios
deleted the
wiffletree/release-build-only-from-a-green-main-commit-free
branch
November 4, 2026 01:45
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.
Summary
Releases kept failing before anything was built. v0.1.0 stopped on a flaky test, and v0.1.1 ran out of disk on the Ubuntu runner ("No space left on device") during the release's own re-run of CI. Both times GitHub showed an empty "Latest" release. A release now builds only from a commit whose CI already passed on main, and Linux runners free disk first. Linear: VYT-265.
Changes
gatejob runsscripts/require-green-ci.sh "$GITHUB_SHA", which passes only when ci.yml has a completed, successfulpushrun onmainfor that exact commit. Otherwise it stops before any build with "CI hasn't passed on main for . Wait for it to pass (or re-run it), then delete and push the tag again." The macOS, Windows and Linux builds need the gate. The tag-format and on-main checks are unchanged. ci.yml'sworkflow_calltrigger is gone.buildjob (on Linux) and release.yml'slinuxjob first remove unused preinstalled software (.NET, Android, GHC, CodeQL, Docker images) and print free space before and after.Checks
actionlintandshellcheckpass.ghfor success, failure, in progress, cancelled, missing, and a failed run followed by a green re-run. A read-only real query for 6fc7cb1 found its green run on main.Follow-ups
docs/ci.md:10).Reviewed with Wiffletree: 1 full review and 0 re-checks, 1 round (Tests, Claude, Style)