ci(release): keep the newest 20 nightlies, and every nightly from the last 5 days #2407

Merged
HumanBean merged 1 commit from HumanBean/Longshot:push-ozzoztxkpvrz into main 2026-11-23 21:02:22 +00:00
Owner

Summary

A nightly is deleted once 5 newer ones exist. With a nightly at least every hour while merges land, one can be gone within hours, too soon to compare a stable against main or bisect a regression with the builds players had.

The nightly's prune now keeps the newest 20 nightlies, and also every nightly published in the last 5 days (release.py prune --keep 20 --keep-days 5). The workflow's comment and docs/dev/reference/releases.md say the same.

Blocked on Tooling#32, which adds --keep-days. Once it merges, this PR moves .tooling-rev to the merged commit. Until then the pinned release.py doesn't know the option, so this must not merge.

Testing

Tested: The prune logic is tested in Tooling#32 (tests/test_release.py, against a fake Forgejo). This PR changes only the workflow's arguments and docs; the next nightly after merge runs it. Its "Prune the nightlies" step should list only nightlies past the newest 20 and older than 5 days as pruned.

Still to test:

  • The first nightly after merge: read its "Prune the nightlies" step, expecting no nightly under 5 days old pruned (by hand)

Measurements

Nothing to measure: release workflow and docs.

Risks

More nightly releases kept on the forge: up to 20, or 5 days' worth at about 100 MB per AppImage plus the Windows zip, which is a few GB at most. A revert restores 5.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named). (CI)
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

🤖 Generated with Claude Code

## Summary A nightly is deleted once 5 newer ones exist. With a nightly at least every hour while merges land, one can be gone within hours, too soon to compare a stable against main or bisect a regression with the builds players had. The nightly's prune now keeps the newest 20 nightlies, and also every nightly published in the last 5 days (`release.py prune --keep 20 --keep-days 5`). The workflow's comment and `docs/dev/reference/releases.md` say the same. **Blocked on [Tooling#32](https://git.magicbean.dev/MagicBeanDev/Tooling/pulls/32)**, which adds `--keep-days`. Once it merges, this PR moves `.tooling-rev` to the merged commit. Until then the pinned `release.py` doesn't know the option, so this must not merge. ## Testing **Tested:** The prune logic is tested in Tooling#32 (`tests/test_release.py`, against a fake Forgejo). This PR changes only the workflow's arguments and docs; the next nightly after merge runs it. Its "Prune the nightlies" step should list only nightlies past the newest 20 and older than 5 days as `pruned`. **Still to test:** - The first nightly after merge: read its "Prune the nightlies" step, expecting no nightly under 5 days old pruned (by hand) ## Measurements Nothing to measure: release workflow and docs. ## Risks More nightly releases kept on the forge: up to 20, or 5 days' worth at about 100 MB per AppImage plus the Windows zip, which is a few GB at most. A revert restores 5. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [ ] `mise run test` passes (any failure that also fails on `main` is named). (CI) - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
ci(release): keep the newest 20 nightlies, and every nightly from the last 5 days
Some checks failed
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website on Cloudflare (pull_request) Has been skipped
Website / Website on Cloudflare (pull_request_target) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 19s
CI / Website build and checks (pull_request) Failing after 31s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 30s
CI / Workflow lint (actionlint) (pull_request) Successful in 32s
Third-party parts / As their notes say (pull_request) Successful in 39s
PR description / Description follows the template (pull_request_target) Failing after 5m1s
00d4f75f68
Co-Authored-By: Claude Opus 5.5 <[email protected]>
HumanBean changed title from WIP: ci(release): keep the newest 20 nightlies, and every nightly from the last 5 days to ci(release): keep the newest 20 nightlies, and every nightly from the last 5 days 2026-11-23 21:02:11 +00:00
HumanBean deleted branch push-ozzoztxkpvrz 2026-11-23 21:02:22 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!2407
No description provided.