fix(builder): a shaders-only reason prepares the shaders alone, and a removed copy keys as the same path #2766
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2766
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:fix/builder-ensure-built-followup"
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
Follow-up to #2762. Its own tests found three bugs after it merged:
build-driver/src/play.rsensure_builtnever setBuildOptions::shaders_only. When the only reason to rebuild was the shaders, the builder ran a full update. It now setso.shaders_only = why == RebuildReason::Shadersand prepares the shaders alone. This is one cause of players seeing the game "always compiling".play.rsstable_path, when the .nup is gone, the key fell back to another spelling of the path, with..kept. A removed copy was therefore reported as a profile change instead of a game change. It now canonicalises the parent folder and joins the file name.devgave the wrong error. Inlongshot-builder/src/main.rsparse,image --game g --work wwithoutdevfailed on the dev-only--workflag before saying it is a developer's command. Developer commands other thanbuildnow get that message first.Read first:
ensure_builtandstable_pathinplay.rs.Testing
Tested:
cargo test --lockedfor the builder workspace passes: all 71 test groups, run in the queue in build mode. A smoke test on Linux with an RTX 3090 (driver 620.70.06):build --profiletook 93.9 s. A secondbuildtook 0.01 s:fast check: current, with no compile and no shader prep.play --profileruns went straight togame_readywith no rebuild and closed cleanly.These game runs happened while the fixes were being made, so they may predate the last of them.
Still to test:
playwith an up-to-date game, then delete only the prepared-shader receipt andplayagain. Expect shader preparation alone, with no compile (by hand).build(by hand).Measurements
Nothing to measure: these fix what triggers a rebuild, not how fast one runs. The smoke timings are under Testing.
Risks
Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named). Unticked: only the builder'scargo testran, not the wholemise run test.main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
mainand passes here. These are #2762's owncargo testcases.Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.🤖 Generated with Claude Code
Possibly related, for context:
WIP: fix(builder): a shaders-only reason prepares the shaders alone, and a removed copy keys as the same pathto fix(builder): a shaders-only reason prepares the shaders alone, and a removed copy keys as the same path