fix: bind private temp storage for read-only late-slope runs

This commit is contained in:
Joseph Doherty
2026-11-10 18:18:11 -05:00
parent 351edb0a86
commit 681e1c1a9b
5 changed files with 58 additions and 8 deletions
@@ -51,8 +51,12 @@ python3 "$bundle/tools/launch.py" --bundle "$bundle" \
Root owns launch after review of the exact bundle receipt and controls. The
bundled launcher uses the pinned Unix endpoint, immutable image, network-none
container, read-only root filesystem and read-only application and tools mounts.
A fresh private task directory holds results and fixture files. The two
descriptor controls must execute successfully before the canonical test starts. The launcher verifies
A fresh private task directory holds results and fixture files. The launcher
creates its temporary subdirectory with mode `0700` and binds the same storage
at `/tmp` for NuGet's named mutex. `TMPDIR` continues to point at `/task/tmp`.
The container checks both paths identify the same private directory before
starting VSTest. The two descriptor controls must execute successfully before
the canonical test starts. The launcher verifies
the actual test process's apphost, mapped CLR and CLR hash. Its outer deadline
is 7,440 seconds, with cleanup limited to the uniquely labeled container.