fix: move tmpfs to /tmp instead of inside read-only mount

This commit is contained in:
Eyejoker
2026-03-29 19:16:23 +09:00
parent c78c97cff7
commit fcb854e9de

View File

@@ -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);