fix(builder): estimate warm rebuilds from actual work #2687
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
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/Longshot!2687
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:fix/builder-warm-eta"
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
An incremental rebuild can finish in seconds while its ETA still includes several minutes for shaders that the builder will reuse. The overall percentage also used forecasted time for stages that had already finished much faster.
The builder checks the existing shader cache when it plans a rebuild and verifies the cache again after installing the rebuilt files. It calculates overall progress from elapsed time and the remaining forecast. It starts sending a numeric ETA after at least ten seconds and enough evidence for the active stage. The existing JSON Lines format keeps its numeric
secondsfield, with zero indicating that timing is unavailable.Testing
Tested: On CachyOS, the game-free build-core and build-driver suites, shared shader preparation integration test, and CLI plan test passed. The regression fixtures failed before the fixes and now cover warm and cold cache plans, estimated progress, and ETA readiness. An isolated real build reported a warm cache and emitted its ETA during compile.
Still to test:
Measurements
In the reported run, a six-minute estimate appeared during a rebuild that completed in 18.9 seconds and reused its shaders. The game-free regression covers the missing cache budget and verifies that it returns when the renderer changes. The timing changes do not change the amount of build work.
Risks
A shader cache that looks reusable at plan time can be invalidated by the rebuilt renderer. The shader stage checks the installed files and restores its forecast when preparation is required.
Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named).main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
mainand passes here.Assisted-by:/Co-Authored-By:trailers.Ready to merge
WIP: fix(builder): estimate warm rebuilds from actual workto fix(builder): estimate warm rebuilds from actual workHumanBean referenced this pull request2026-11-27 20:40:53 +00:00