Repository navigation
ci: the release guard drafts red releases at once, and tells if it fails - #89
Merged
Merged
Conversation
Two low findings from the independent review of the previous change, and one false sentence. A release whose relevant check had already failed stayed public for the full ten minutes when an unrelated workflow was still running on the tagged commit, because the guard waited for every run before deciding. Once no relevant check is pending and one did not pass, it now drafts without waiting. The draft was the one call left outside any condition: when it failed, bash -e ended the step before the issue was opened and the release stayed public with only a red job as trace. It is now tried three times, and the issue is opened either way, saying so when the release is still public. The issue and the header said drafting takes a version off Packagist. It does not: Packagist reads tags. Measured on milpa/app-runtime v0.175.4, which is drafted and still served by Packagist. Both now say so, and what to do when the version must not be installed. Measured by execution against controlled inputs and mutants, with the current guard as the control (greenhouse evidence/0171).
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.
Follow-up to the release guard that drafts when it cannot see (merged across the family on 2026-11-05). Its independent review passed with two low findings; this closes both, and corrects one false sentence.
A red release is drafted at once. When a relevant check had already failed and an unrelated workflow was still running on the tagged commit (a cron run, a run waiting for approval), the guard waited the full ten minutes before drafting, because it waited for every run before deciding. Now, once no relevant check is pending and one did not pass, it drafts without waiting.
A failed draft still reaches a person. The draft was the one call left outside any condition: when it failed,
bash -eended the step before the issue was opened, and the release stayed public with only a red job as trace. Now:Packagist. The issue and the header said drafting takes a version off Packagist. It does not: Packagist reads tags. Measured on
milpa/app-runtimev0.175.4, which is drafted while Packagist still serves its tag. Both now say so, and that the tag must be deleted when the version must not be installed.Measured by execution: controlled inputs under
bash -e, injected failures on the draft, and mutants of each new mechanism, with the current guard as the control. On every earlier case the new guard behaves exactly like the current one. Evidence: getmilpa/greenhouse.milpa/evidence/0171.The same file goes to milpa/agent and the 39 repos that carry the guard. Each was replaced only after checking it held the current copy byte for byte.