Windows AppContainer: Python private temporary directories exclude the package SID #35
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#35
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?
Failure
A Windows AppContainer worker on official nightly-56-bd292bbd accepted the tester-specific PR 815 ticket successfully, then failed before compiling the shared main base. No gameplay or RT measurements occurred.
Farm report: https://beanstalk.magicbean.dev/reports/rp_c19169027a9a2c13
Retry request: MagicBeanDev/Longshot#815 (comment)
The new build log from PR 28 shows nx2/make_game.py check_mingw entering tempfile.TemporaryDirectory(), then failing to open t.c inside the newly created directory. Cleanup also fails to list/chmod that directory. This is distinct from the parent-stat error fixed by PR 25 and the tester-ticket error fixed by PR 31.
Game-free reproduction and ACL evidence
Managed Python 3.14.7, Windows 10.0.26300, agent AppContainer with no capabilities. Inside an already granted writable fixture directory:
Python documents the Windows-specific owner/administrator ACL applied for mode 0o700: https://docs.python.org/3.14/library/os.html#os.mkdir. The observed protected ACL excludes the package SID needed for AppContainer access.
Additional temp-path observation
PR 28's diagnostic also shows TEMP/TMP arriving in Python as a redirected package AC/Temp path beneath the synthetic job home. That path and the local Temp fallback do not exist. Python falls back to the writable source checkout, where ordinary file/directory probes pass, but a private TemporaryDirectory immediately becomes unusable as above. Creating a valid temp root alone should not be assumed to resolve the protected-child-ACL issue; both need regression coverage.
Required acceptance
A safe fix should preserve the no-network AppContainer and private work/profile boundaries, cover private tempfile directory create/write/cleanup in a real AppContainer (not only ordinary mkdir), and complete the base build through a normal approved farm ticket. Do not work around this by granting the drive/profile broadly, disabling the sandbox or downgrading to an unpatched Python.
Only made-up local fixture files were used for the reproduction. The worker remains on the official signed release with its visible GUI and testing enabled; no permission workaround was installed.