feat: offer a PC first the jobs whose base it already has #105
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!105
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Beanstalk:feat/base-affinity"
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?
A PC builds
mainagain for most jobs: 144 of 183 in the last 14 days (about 13 minutes each warm, 65 cold), since a job's base is its PR's merge base. 100 of those 144 builds were of a base another PC had already built, so sending each job where its base already is saves most of them. (Buildingmain's head ahead of time would not: only 27 of the 144 were for the head; the median was 9 commits, 5 hours, behind.)What changed
bases, the commits whose default base the PC holds whole (the active one, then the kept ones by last use, at most 8;Workspace.BasesHeld, read only). They are sent again after each job, as any change to the capabilities.check_capstakesbases(a list of at most 8 commits);offers_forreads each job's base (commits.base_sha, a run'sbaseline_sha), andrankputs a job whose base the agent holds after priority, the rarer hardware and the more specific target, and before age. An agent that sends no bases is ordered as before.docs/protocol.md,docs/architecture.mdanddocs/using.mdsay so.Tested
test_scheduler.py: the new order inrank,offers_forwith and without held bases, andbasesrefused when not commits.DataFolderChecks:BasesHeld(the active base, kept ones by last use; none being built, without a game folder, or a variant's).🤖 Generated with Claude Code
WIP: feat: offer a PC first the jobs whose base it already hasto feat: offer a PC first the jobs whose base it already has