diff --git a/tests/integration/security-followup-archive.test.ts b/tests/integration/security-followup-archive.test.ts index 837863c6..b0f7c233 100644 --- a/tests/integration/security-followup-archive.test.ts +++ b/tests/integration/security-followup-archive.test.ts @@ -21,6 +21,9 @@ import { } from "../../scripts/lib/fixture-node-modules.ts"; import { selectRepositoryPaths } from "../../scripts/lib/repository-layout.ts"; +/** The temporary file of an atomic write: `...tmp`. */ +const IN_FLIGHT_WRITE = /^\..+\.tmp$/u; + it( "builds a real candidate assessment and passes the default archived verifier from the captured archive", async () => { @@ -36,8 +39,13 @@ it( return !selectRepositoryPaths("supply-chain-fixture-skip").includes(first ?? ""); }, }); + // Other test files write their receipts under artifacts/ while this one + // copies it: a temporary file of an atomic write (...tmp) was + // renamed between the listing and the copy, and the copy failed with + // ENOENT (FE-GATE-007 on desktop, 2026-11-12). It is never evidence. await cp(path.join(sourceRoot, "artifacts"), path.join(fixtureRoot, "artifacts"), { recursive: true, + filter: (source) => !IN_FLIGHT_WRITE.test(path.basename(source)), }); await rm(path.join(fixtureRoot, "artifacts/release"), { recursive: true,