fix: harden cross-platform release builds

Skip direct POSIX entrypoint execution on Windows CI and prevent test-support modules from entering clean build or npm package output.
This commit is contained in:
Federico Jaramillo Martinez
2026-07-11 20:30:51 +02:00
parent bc6718a7e2
commit dfab743a71
4 changed files with 119 additions and 4 deletions
+4 -1
View File
@@ -10,7 +10,10 @@ const execFile = promisify(execFileCallback);
const repoRoot = resolve(dirname(fileURLToPath(import.meta.url)), "..", "..");
describe("pi-web-docker entrypoint", () => {
it("streams detached helper logs inline after scheduling runtime updates", async () => {
// The entrypoint intentionally supports POSIX hosts, so Windows CI cannot execute it directly.
const posixHostIt = it.skipIf(process.platform === "win32");
posixHostIt("streams detached helper logs inline after scheduling runtime updates", async () => {
const tempDir = await mkdtemp(join(tmpdir(), "pi-web-docker-entrypoint-"));
try {
const runtimeRoot = join(tempDir, "runtime");