fix(agent): keep Python-launched clang on the work drive #51
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!51
Loading…
Reference in a new issue
No description provided.
Delete branch "futondestroyer/Beanstalk-contributions:codex/win-clang-prefix"
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?
Windows base builds still fail the compiler check after PR 47. On this RTX 4070 / i7-13700F PC, a game-free AppContainer test shows clang --version works and CCC_OVERRIDE_OPTIONS is present, but an actual compile/link exits 1 with the real-path Permission denied message. Putting -no-canonical-prefixes in the driver's actual argv makes the same program compile, link and run.
Change
Extend the existing agent-owned managed-Python sandbox module to insert -no-canonical-prefixes before Python launches a known clang driver in LONGSHOT_MINGW/bin on BEANSTALK_WORK_DRIVE. Clang decides canonical prefixes before reading the environment override; early argv keeps InstalledDir, resources and child tools on the accessible drive.
The hook preserves the Popen class and original constructor options, does not mutate caller argv, and does not add the option twice. It handles list/tuple commands and executable overrides. Shell/string commands, bare PATH names, other programs/toolchains and off-drive paths are unchanged. The Windows/sandbox import gate and managed-Python-only installation remain in force. No ACL, capability, signature, approval or upload rule changes.
Validation
Only made-up sources and executables are used. The new module is imported only in the probe interpreter; it has not been installed into the live worker or written into its toolchain. Native programs launching their own clang drivers without the early option are outside this Python-launch fix and still need verification. A full main base build and gameplay acceptance remain for the next normal approved farm run after rollout. PR 815 has not been retried again during this investigation.
Latest farm failure used for diagnosis: https://beanstalk.magicbean.dev/reports/rp_d3667d4312a3f2db . The same compiler preflight stopped the last PR 815 run: https://beanstalk.magicbean.dev/reports/rp_8f7f22a4b11f9ab6 . Further details: docs/windows-clang.md.