fix(agent): the Windows sandbox lists the folders above its data folder, so lld's start from the real path is not refused #165
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!165
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Beanstalk:fix/windows-list-above-data"
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?
nightly-281's Windows reports (rp_5d08c3f82bfda42e, rp_2e67d146d96578ef) carry the builder's own
build_report, and itswhynames the path lld was started from:<home>/AppData/Local/<user>/data/builder/tools/tools/llvm-mingw/bin/ld.lld: Permission denied: the real folder, not the work drive. Two facts since #161 explain why #156, #161 and the probe's plain link (which works from the drive) did not help the game's link:CCC_OVERRIDE_OPTIONS(andCOMPILER_PATH, …) from every compiler and linker it runs (build-compile/src/toolchain.rs,UNKEYED_ENV), so neither-Bnor--ld-pathever reached the link, and clang starts lld from the real folder.GetLongPathNameWon its own path) looks up every component of that path that could be an 8.3 name, which lists its parent; the sandbox can list none ofC:\Users\<user>,AppData,Local, … (Longshot #910).Fix (the owner chose this over keeping on diagnosing or moving the tools):
WinDrive.Abovenames the folders above the data folder, from the drive's root down (not the root, not the data folder:C:\Users, the profile,AppData,Local, the folder Beanstalk lives in) andWindowsSandbox.Preparegives each a listing of itself alone (WinAccess.List: its own entries; no file's data; nothing inherited; not the files, not the folders beneath), as the drive's root already has. One the agent does not own (C:\Users) is left as it is (the grant fails quietly). The grants go in the ledger, so the runner account's removal takes them back.What this lets a build's scripts see: the names of what is directly inside those folders (accounts in
C:\Usersif its listing is allowed already, the profile's folders such as Documents and Downloads, the programs' folders inAppData\Local), never what is in them. docs/windows-clang.md says so.Not built or run here (this PC's rules).
🤖 Generated with Claude Code