fix(agent): main's tools.lock as longshot-builder reads it, not as we guess it #183
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!183
Loading…
Reference in a new issue
No description provided.
Delete branch "omgitsgela/Beanstalk:fix/agent-reads-tools-lock-as-lock-rs-does"
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?
Every PC of the test farm has refused its build since 3 Dec 2026, before any scenario ran. The agent rebuilt each tool's store URL from the tool's own name, and Longshot's
tools.lockrenamed the toolsdl2tosdlthat day while the store's package kept its old name. Longshot's own reader,builder/crates/build-tools/src/lock.rs, takes the file from whatever package it sits in: the agent was stricter than the code it says it mirrors.What the file asked and the agent refused
tool sdl 2.32.10 linux-x64 … tools/sdl - …/generic/sdl2-linux-x64/2.32.10/09c8eb7a…-sdl.tar.zst. The package kept its old name when MagicBeanDev/Longshot#2822 renamed the tool (d984fd704, 3 Dec 2026 05:48 UTC). The last scheduled run that built wasnightly-981 vs nightly-1000; the next,nightly-1007 vs nightly-1022, reported "All nine PCs encountered the same tools.lock SDL URL error on main before any scenarios ran", and the run after that, all nine again..tar.xz, a.tar.gz, and glslang's Windows.zip. The agent required.tar.zstand Longshot's store for every line.rustc,cargo,rust-std, one dest, consecutive lines), which lock.rs reads as one tool with several parts and this agent refused as "rust for linux-x64 twice". Both of the last two would have stopped the farm the moment the SDL line was fixed.Builder.ToolVarsstill asked for the Linux SDL attools/sdl2, so even a build that got past the parse would have had noLONGSHOT_SDL2. main's tool is attools/sdl, and build-driver'stools/mod.rsnames it the same way.What changed
ParseBuilderreads a URL the waylock.rsdoes: the store's place, or the one upstream place allowed for that tool; plain path names; one archive kind per line; and a tool of the store has its edge's copy then the store's own first, each naming the line's version and pinned SHA-256. What the package is called is nobody's business: main's Windowsheaderssit in a package namedcpm-linux-x64.lock.rsgroups them. The upstream tools still validate and are still not the agent's to fetch: longshot-builder takes its toolchain's tools from their own projects, Rust through main'sscripts/renhdrum.py.Builder.ToolVars:("linux-x64", "sdl", "LONGSHOT_SDL2").tools.lockwhen a Longshot checkout is beside this one (LONGSHOT_CHECKOUT), in both readers.How it was tested
python -I agent/tests/test_agent_core.py --dotnet ~/dotnet/dotnet --strict: 3136 checks withLONGSHOT_CHECKOUTpointed at a checkout of main, 3125 without it, which is what CI runs; the six python tests pass.dotnet build agent/App/Beanstalk.Agent.csproj -c Release -warnaserror: no warnings. Nothing was run on a farm PC.The new cases are main's own lines rather than invented ones:
sdlpublished insdl2-linux-x64, Windowsheadersincpm-linux-x64, Rust's three archives, glslang's.tar.gzand its Windows.zip, and that a store archive stays a.tar.zst. Against main's real file the checks require: every store line of that system is installed and no others,sdlattools/sdl, Rust and glslang absent from what the agent fetches, and every tool a build takes a variable from present under the name the build asks it by. That last one is what was quietly wrong on the Linux side.Not tested
No farm PC has run this, and no farm job can until it merges: the proof is the next scheduled run building at all. Until then every job fails exactly as before, on any PC, for any plan.
Two things left as they were
The agent still installs one archive per tool, its whole dest. Only Rust is several archives today and Rust is upstream's, so nothing needs more; if a tool of the store ever is,
ParseBuildernow says so plainly rather than unpacking two into one folder.WindowsTools.Parse, the reader for the pre-#2286 Windows game tools, has no caller left in the agent, only tests, and its real-checkout check asked forpython,emsdk,cpm,wgpu-nativeandthird_party, which main's lock no longer carries. I pointed that check at the reader builds actually use; whetherParseitself should go is your call.