Guard good arc direct-file staging

This commit is contained in:
2026-06-13 09:05:22 +08:00
parent 21c70382b2
commit 0ea8402247
3 changed files with 46 additions and 13 deletions

View File

@@ -7177,10 +7177,9 @@
if (goodArcFixtures.length !== 6 || new Set(goodArcFixtures.map((fixture) => fixture.file)).size !== goodArcFixtures.length) {
throw new Error("browser_interp_good_fixture_coverage: list drift");
}
const goodArcStagedNgcFiles = [];
for (const goodArcFixture of goodArcFixtures) {
const goodArcPath = await writeInterpRegressionFile(interp, "good", goodArcFixture.file);
goodArcStagedNgcFiles.push(goodArcPath);
assertInterpRegressionFileStaging("good", goodArcFixture.file, goodArcPath);
verifyExpectedOutput(
`browser_interp_good_arc_${goodArcFixture.name}`,
interp.runFile(goodArcPath),
@@ -7196,10 +7195,6 @@
].join("\n"),
);
}
const goodArcStagedRelativeNgcFiles = goodArcStagedNgcFiles.map((path) => path.replace("/work/browser-interp/good/", ""));
if (goodArcStagedRelativeNgcFiles.join(",") !== goodArcFixtures.map((fixture) => fixture.file).join(",")) {
throw new Error("browser_interp_good_staging_manifest: list drift");
}
const g6164Path = await writeInterpRegressionFile(interp, "g6164", "test.ngc");
const g6164NgcFiles = [