Skip to content

ci: the release guard drafts red releases at once, and tells if it fails - #89

Merged
rodrigoteamx merged 1 commit into
mainfrom
ci/release-guard-red-is-red
Nov 5, 2026
Merged

rodrigoteamx merged 1 commit into
mainfrom
ci/release-guard-red-is-red

Conversation

@rodrigoteamx

Copy link
Copy Markdown
Contributor

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 -e ended the step before the issue was opened, and the release stayed public with only a red job as trace. Now:

  • the draft is tried three times;
  • the issue is opened either way, and its title says so when the release is still public;
  • only the last call, opening the issue, can end the step, and the step is red either way. The inline comment now says that instead of claiming every call is conditioned.

Packagist. 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 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.

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).
@rodrigoteamx
rodrigoteamx merged commit 059199d into main Nov 5, 2026
2 checks passed
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.

1 participant