feat(builder): report end-to-end build and reload progress #2680

Merged
HumanBean merged 1 commit from HumanBean/Longshot:feat/builder-progress-plan into main 2026-11-27 18:13:03 +00:00
Owner

Summary

The launcher can reach 99% while shader preparation still has minutes left because the builder reports the compiler estimate and individual stage progress separately. A launch or reload now gets a builder-owned plan and one percentage and ETA for the whole operation.

The builder announces its work before starting, uses local timing history, and revises the estimate as object-cache checks and live compile and shader progress arrive. It accounts for shader work that overlaps compilation and signals when it has spawned the game after a Play or Reload. The new JSON events are additive.

Launcher counterpart: MagicBeanDev/LongshotLauncher#304

Testing

Tested: Linux, game-free reporter and CLI tests. The tests cover plan order, compile-cache adjustments, overlapping shaders, the shader-to-launch handoff, and standalone build completion. Formatting passed. Scoped Clippy passed with the three existing needless_borrow warnings in build-driver/src/play.rs excluded.

Still to test:

  • Windows and Linux cold builds, cached rebuilds, and a game-requested reload. Check that the percentage and ETA move through shader preparation, and compare the estimates with elapsed time by hand.

Measurements

Estimate accuracy on real hardware still needs measurement. The synthetic tests verify which work appears in the total.

Risks

Initial estimates use defaults when the builder has no timing history. They can change when the builder learns how much work actually needs to run. The game-started event confirms that the game process was spawned.

Checklist

Ready for review

  • One topic on current main, with a Conventional Commit title.
  • Game-free checks passed on Linux.
  • Real-game progress and ETA checked on Windows and Linux.
  • Full mise run test suite completed.
  • Contains source, tests, and documentation only.

When it applies

  • The JSON protocol documentation is updated.
  • AI assistance is recorded in the commit.

Ready to merge

  • The tests still outstanding above have run.
## Summary The launcher can reach 99% while shader preparation still has minutes left because the builder reports the compiler estimate and individual stage progress separately. A launch or reload now gets a builder-owned plan and one percentage and ETA for the whole operation. The builder announces its work before starting, uses local timing history, and revises the estimate as object-cache checks and live compile and shader progress arrive. It accounts for shader work that overlaps compilation and signals when it has spawned the game after a Play or Reload. The new JSON events are additive. Launcher counterpart: https://git.magicbean.dev/MagicBeanDev/LongshotLauncher/pulls/304 ## Testing **Tested:** Linux, game-free reporter and CLI tests. The tests cover plan order, compile-cache adjustments, overlapping shaders, the shader-to-launch handoff, and standalone build completion. Formatting passed. Scoped Clippy passed with the three existing `needless_borrow` warnings in `build-driver/src/play.rs` excluded. **Still to test:** - Windows and Linux cold builds, cached rebuilds, and a game-requested reload. Check that the percentage and ETA move through shader preparation, and compare the estimates with elapsed time by hand. ## Measurements Estimate accuracy on real hardware still needs measurement. The synthetic tests verify which work appears in the total. ## Risks Initial estimates use defaults when the builder has no timing history. They can change when the builder learns how much work actually needs to run. The game-started event confirms that the game process was spawned. ## Checklist ### Ready for review - [x] One topic on current `main`, with a Conventional Commit title. - [x] Game-free checks passed on Linux. - [ ] Real-game progress and ETA checked on Windows and Linux. - [ ] Full `mise run test` suite completed. - [x] Contains source, tests, and documentation only. ### When it applies - [x] The JSON protocol documentation is updated. - [x] AI assistance is recorded in the commit. ### Ready to merge - [ ] The tests still outstanding above have run.
feat(builder): report a work plan and end-to-end build progress
Some checks failed
Website / Website preview, upload (pull_request_target) Has been skipped
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
CI / What the change needs (pull_request) Successful in 18s
CI / Third-party parts and guide screenshots (pull_request) Failing after 26s
PR description / Title and description (pull_request_target) Failing after 20s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 2m27s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 3m47s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 3m25s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 3m4s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 3m44s
CI / Website build and checks (pull_request) Successful in 4m12s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 7m49s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Successful in 13m24s
ab3de7a4d7
Assisted-by: OpenAI Codex
Member

Possibly related, for context:

  • PR #1830 WIP: fix(vk): report the shader preparation countdown to builders — Open renderer shader ETA producer; may overlap progress-event integration
  • issue #2011 Install: shader preparation takes over 7 hours on Intel Arc iGPU — Open report of build stuck at 99% during shader preparation
Possibly related, for context: - PR #1830 WIP: fix(vk): report the shader preparation countdown to builders — Open renderer shader ETA producer; may overlap progress-event integration - issue #2011 Install: shader preparation takes over 7 hours on Intel Arc iGPU — Open report of build stuck at 99% during shader preparation
HumanBean changed title from WIP: feat(builder): report end-to-end build and reload progress to feat(builder): report end-to-end build and reload progress 2026-11-27 18:12:54 +00:00
HumanBean deleted branch feat/builder-progress-plan 2026-11-27 18:13:04 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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!2680
No description provided.