Repository navigation
Release a beta skipped for the gap once the gap ends - #967
Merged
Merged
Conversation
A deploy's beta that waits out BETA_GAP_HOURS now records when the gap ends (a minute past it) as the beta-due artifact. beta-follow-up.yml, every 30 minutes, reads the newest record and, once it is due, starts auto-release.yml in mode beta-after-deploy, as a deploy does. It does nothing when the commit is already in a release, while a run of auto-release.yml is queued or running, or a day past the due time. The run it starts plans with the gap again, so two betas are never cut within it.
Contributor
|
🔴 Post-merge health check FAILED: the merge of
|
coderhelm Bot
pushed a commit
that referenced
this pull request
Dec 4, 2026
#967 split the beta gap check in auto_release.py into two lines: the published releases are read once, kept for the skip record, then passed to too_soon. Incident case wo still looked for the old one-line call, so "Rust (tests)" has failed on main, and on every pull request, since. The case now asserts both lines. The behaviour it guards is unchanged.
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
A beta that a deploy's release run skips because the newest release is under
BETA_GAP_HOURSold is now released on its own once the gap ends, instead of waiting for the nightly.Changes
auto_release.py: a beta skipped for the gap writes a skip record (--due-file: the commit, when it was skipped, and when it is due, a minute past the gap's end) and thedueoutput. A newfollow-upcommand reads the newest record (thebeta-dueartifact of a run ofauto-release.ymlon main, for that run's own commit) and says it is due only once its time has come, while its commit is in no release published since the skip, no run ofauto-release.ymlis queued or running, and it is under a day past due (after that the nightly has had its turn).auto-release.yml: the plan step passes--due-filewhen a gap applies and uploads the record as thebeta-dueartifact on a skip.beta-follow-up.yml: every 30 minutes, a read-only job (contents: read,actions: read) runsfollow-up; when due, a second job with onlyactions: writestartsauto-release.ymlon main in modebeta-after-deploy, the same run a deploy starts. That run plans with the gap again, so two betas are never cut within it, and a commit a newer deploy or the nightly already released is skipped. Its own concurrency group keeps it out of the release queue.docs/self-host/updates-security.mddescribes the follow-up.Verification
python3 -m unittest discover -s .github/scripts: 221 tests pass, including new ones: a skip for the gap records its due time, a due skip is started, an already released skip does nothing, a skip not yet due, stale or with a run in flight waits, and the wiring of both workflows.check_workflows.py,actionlint,brand_spelling.pyanddomain_examples.pypass.