feat(release): prune --keep-days, a nightly younger than that is kept past the newest --keep #32
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/Tooling!32
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Tooling:push-lomqllytqoyw"
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?
Summary
release.py prune --keep Ndeleted every nightly past the newest N. Longshot passes 5, and nightlies come out up to once an hour, so a nightly could be gone within hours: too soon to compare a stable against main or bisect a regression.prunenow takes--keep-days D(default 0, which keeps today's behaviour): a nightly past the newest N is kept while it is younger than D days, by itspublished_at(elsecreated_at). A nightly that reports no date is kept. Drafts and stables are handled as before.nightly_age's date reading is nowage_of, shared by both.Longshot will pass
--keep 20 --keep-days 5in a follow-up that moves.tooling-revto this commit.Testing
Tested: a new test in
tests/test_release.pyrunsprune --keep 2 --keep-days 5against the fake Forgejo. Eight nightlies, 1 to 8 days old, plus one with no date: the two newest are kept, then those under 5 days, then the one with no date; the 5-day-old and older ones go, and the stable stays. Not run on this PC; CI runs it.Still to test: None
🤖 Generated with Claude Code
WIP: feat(release): prune --keep-days, a nightly younger than that is kept past the newest --keepto feat(release): prune --keep-days, a nightly younger than that is kept past the newest --keep