ci(release): a nightly waits 5 minutes for more merges, and still builds once an hour while they keep coming #40
No reviewers
Labels
No labels
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Beanstalk!40
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Beanstalk:nightly-wait"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type: ci · Risk: low · Tested on: none (CI only, checked by CI) · Needs: a look at the Release runs after merging
Why
Every push to main started its nightly straight away. When a few PRs merge in a row, the first one builds on its own and the others queue behind it, so we build more nightlies than we need. This makes the nightly wait 5 minutes for more merges. While merges keep coming, it still ships one at least once an hour.
What changed
The
versionjob now waits before naming a nightly: a few merges in a row build one nightly, 5 minutes after the last of them. Tags (releases) don't wait. The same change goes to Longshot and LongshotLauncher..forgejo/workflows/release-agent.yml, theversionjob (push to main only):agent/scripts/release.py:nightly-age/nightly_age(rels, now)returns the seconds since the newest published nightly came out (by count, frompublished_at, elsecreated_at), ornone.agent/tests/test_release.py: a test fornightly_age.The wait runs on the
quickrunner. Its capacity went from 1 to 8 so that it has room for this (MagicBeanDev/Infra,runner/quick/config.yml).Measurements
Verdict: nothing to measure. This changes when CI builds a nightly, not what the nightly contains.
Flags and settings
None.
Testing
Tested: both Python files compile. CI runs
agent/tests/test_release.pyon this PR. Per the person I work for, no checks run on this PC.Not tested: the wait itself. It only runs on a push to main.
Must be tested:
versionjob saying "main has moved on" (by hand: the Release runs)Risks
What could break: a nightly comes out 5 minutes later than before. The version job's timeout is 10 minutes, so the wait fits.
Turning it off: revert the commit.
Compatibility: nothing changes.
Checklist
Everyone
type(scope): description) of the status line's type.main.agent/tests/test_release.pypasses (any failure that also fails onmainis named): run by CI on this PR.third_party/untouched (a new folder with aPROVENANCE.mdinstead).When it applies
Assisted-by:/Co-Authored-By:trailers.🤖 Generated with Claude Code
HumanBean referenced this pull request2026-11-16 06:47:50 +00:00