From fcb854e9de8859dfdf29cc46dc3848d7f5153aba Mon Sep 17 00:00:00 2001 From: Eyejoker Date: Sun, 29 Mar 2026 19:16:23 +0900 Subject: [PATCH] fix: move tmpfs to /tmp instead of inside read-only mount --- src/container-runner.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/container-runner.ts b/src/container-runner.ts index 810ae87..b86cc9f 100644 --- a/src/container-runner.ts +++ b/src/container-runner.ts @@ -188,11 +188,12 @@ function buildContainerArgs( } } - // tmpfs overlays for test runner caches (writable, ephemeral) - args.push(...tmpfsMountArgs('/workspace/project/node_modules/.vitest')); - args.push(...tmpfsMountArgs('/workspace/project/node_modules/.cache')); - args.push(...tmpfsMountArgs('/workspace/project/coverage')); + // Writable tmpfs for test runners and temp files. + // Cannot mount tmpfs inside :ro mount, so redirect caches via env vars. args.push(...tmpfsMountArgs('/tmp')); + args.push('-e', 'VITEST_CACHE_DIR=/tmp/.vitest'); + args.push('-e', 'JEST_CACHE_DIR=/tmp/.jest'); + args.push('-e', 'npm_config_cache=/tmp/.npm'); args.push(CONTAINER_IMAGE);