fix(agent): the game files are copied into the agent's folder when the Windows sandbox can't be let read them #170
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!170
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Beanstalk:fix/game-copy"
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
On Windows, when this account can't change the permissions of the player's game files, the agent copies them once into
<data>\builder\game-copy\and every build reads the copy.Why
The farm's Windows testers failed with
SetNamedSecurityInfoW (<game files>: the agent must own the folder, or be let change its permissions): error 5, and since #169 withgame_not_found. The coordinator's database shows this is one tester,agent-65553b: 77 failed tries in 36 hours (nightly-289), more than any other error. The sandbox is let read the game by a permission on the files, and only an owner (or someone let change permissions) can give one: a file another account owns, a drive without permissions, a network share.How
PrepareBuilderGameAsync(run first in every job) checks, on Windows only, that the game files' own permissions can be written back (the same callWinAcl.Applymakes). If not,GameCopyAsynccopies the .nup (or the dump's folder) togame-copy/, kept while it has the same size and time, andGameSource()names the copy, so every command that reads the game files is given it. The agent owns the copy, so the grant works. An earlier copy of another file is removed.Not run locally
Not built or run on this PC (no local Beanstalk runs): CI's "Agent build and checks" compiles it and runs
BuilderChecks, which now covers the copy helper. The Windows-only probe has no test on Linux CI; the next farm run onagent-65553bis the check.🤖 Generated with Claude Code