Skip to content

Release a beta skipped for the gap once the gap ends - #967

Merged
coderhelm[bot] merged 1 commit into
mainfrom
beta-follow-up
Dec 4, 2026
Merged

coderhelm[bot] merged 1 commit into
mainfrom
beta-follow-up

Conversation

@nambok

@nambok nambok commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

A beta that a deploy's release run skips because the newest release is under BETA_GAP_HOURS old 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 the due output. A new follow-up command reads the newest record (the beta-due artifact of a run of auto-release.yml on 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 of auto-release.yml is 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-file when a gap applies and uploads the record as the beta-due artifact on a skip.
  • New beta-follow-up.yml: every 30 minutes, a read-only job (contents: read, actions: read) runs follow-up; when due, a second job with only actions: write starts auto-release.yml on main in mode beta-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: docs/self-host/updates-security.md describes 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.py and domain_examples.py pass.

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.
@nambok nambok added the ch-review CoderHelm reviews this pull request label Dec 4, 2026

@coderhelm coderhelm Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Approved 9947254 (merged)

@coderhelm

coderhelm Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

🔴 Post-merge health check FAILED: the merge of 4ef837d has NEW failing checks that were not failing before the merge:

  • Rust (workspace) (failure, started 2026-12-04T14:40:56Z)
  • Rust (tests) (failure, started 2026-12-04T14:33:26Z)
    Failures that were already there before the merge were ignored. Rolling a deploy back needs the approval of whoever owns it: should 4ef837d be rolled back?
    The rest is in the pull request description.

@coderhelm
coderhelm Bot merged commit 4ef837d into main Dec 4, 2026
21 checks passed
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ch-review CoderHelm reviews this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant