feat(agent): keep older main bases within the disk budget, by commit and build options #96
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!96
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Beanstalk:feat/kept-bases"
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?
Why
A tester kept one main base per build-option set and rebuilt it in place whenever a job needed another main commit. With PRs on different main commits in the queue, the same PC rebuilt main back and forth. The ask: keep main builds by commit and build flags, share them across PRs, and optimize the cache within the disk space.
What changed
bases/main@<commit 12>(per build variant,bases/main-<variant>-<hash>@<commit>) if it fits. That's a rename, so nothing is copied. It fits when:disk_budget_gb;Workspace.KeepBudgetBytes,KeepFreeBytes).Only a whole base is kept; an unfinished one is rebuilt in place as before.
work/, so only what changed compiles, and seeds its shader caches from the kept base'sgame/, read in place.baseline.ref = "pr", #95): uses any kept base in the PR's history.KeptBasesOf).Workspace's folder map.Tests
base.json);EnsureBaseAsync: the kept base becomes active with no build, and the old active one is kept.work/. It happens on testers once main moves while they're on the next nightly.