fix(agent): Rust prefetch imports the deleted renhdrum helper #184
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Beanstalk#184
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
What fails
Beanstalk's Rust prefetch stops with
ModuleNotFoundError: No module named 'renhdrum'before building either side of these approved Longshot jobs:The jobs share Longshot base
8c058ddbb91b4eacc261682bb931bcb69ef4a6f6. Longshot #3044 moved the Rust bootstrap toscripts/rust_toolchain.py, which takes its pins fromtools.lock. Beanstalk nightly 303 still importsrenhdrumunconditionally. Beanstalk #183 fixed the earliertools.lockparser error.Expected behavior
The worker should prefetch Rust and crate archives using the helper in the pinned trusted base, keeping legacy Longshot pins supported and the sandboxed builds offline. The legacy import and the replacement helper were checked against exact source snapshots without running a game or fetching dependencies. On the Farm base, the legacy import fails and the replacement helper reads Rust 1.99.1 and 717 checksum-pinned crates.
Retry the existing approved hardware jobs once a compatible signed agent is on those workers and the intended base passes a game-free prefetch check.
Checked: this looks like a valid bug, and its cause is visible in the code.
The agent unconditionally imports
renhdrumduring Rust prefetch. If the pinned Longshot base no longer contains that module, prefetch fails before the build, as reported. I could not inspect the Longshot base or the linked job logs in this checkout, so I could not independently verify their contents or the reported crate count.For maintainers
Longshot PR #3044 merged 2026-12-04 and removed
scripts/renhdrum.py; its first release is nightly-1080-ca830e89. Beanstalk PR #183 merged 2026-12-05 and fixes tools.lock parsing, but its description states Rust fetching still usesscripts/renhdrum.py. Current Beanstalk code references that old path inagent/Core/WorkspaceBuilder.cs(Rust fetch) and its comments/tests;agent/Core/Workspace.csreads the old helper at a pinned commit. The new issue supplies the exact base SHA, affected farm job links and error, and reports that snapshots were checked without running game/dependency fetches.Blame attributes the unconditional import to
ab08da84. The checked-out HEAD is nightly-303'sadde94bc, and there are no changes to the two workspace files since that tag. The local history contains the #183 merge, but it is not in this checkout's HEAD. Check both prefetch and Rust pin comparison when adding support for the replacement helper; retain compatibility with older bases and the offline sandbox.Seen in the code:
renhdrumfrom the checkout'sscriptsdirectory.renhdrumfor the toolchain and crate metadata.scripts/renhdrum.pypath at each commit.Automated triage by BeanBot (gpt-6-luna). Nothing was run; a maintainer decides.
@review