Guard g33 and g6164 staging paths

This commit is contained in:
2026-06-13 07:34:29 +08:00
parent 5f3e9757fe
commit f27793abe7
3 changed files with 97 additions and 0 deletions

View File

@@ -7012,6 +7012,18 @@
}
const g33_1Path = await writeInterpRegressionFile(interp, "g33.1", "g33.1.ngc");
const g33_1NgcFiles = [
"g33.1.ngc",
];
if (g33_1NgcFiles.length !== 1 || new Set(g33_1NgcFiles).size !== g33_1NgcFiles.length) {
throw new Error("browser_interp_g33_1_fixture_coverage: list drift");
}
const g33_1StagedNgcFiles = [
g33_1Path,
].map((path) => path.replace("/work/browser-interp/g33.1/", ""));
if (g33_1StagedNgcFiles.join(",") !== g33_1NgcFiles.join(",")) {
throw new Error("browser_interp_g33_1_staging_manifest: list drift");
}
verifyExpectedOutput(
"browser_interp_g33_1",
interp.runFile(g33_1Path),
@@ -7096,6 +7108,18 @@
}
const g6164Path = await writeInterpRegressionFile(interp, "g6164", "test.ngc");
const g6164NgcFiles = [
"test.ngc",
];
if (g6164NgcFiles.length !== 1 || new Set(g6164NgcFiles).size !== g6164NgcFiles.length) {
throw new Error("browser_interp_g6164_fixture_coverage: list drift");
}
const g6164StagedNgcFiles = [
g6164Path,
].map((path) => path.replace("/work/browser-interp/g6164/", ""));
if (g6164StagedNgcFiles.join(",") !== g6164NgcFiles.join(",")) {
throw new Error("browser_interp_g6164_staging_manifest: list drift");
}
verifyExpectedOutput(
"browser_interp_g6164",
interp.runFile(g6164Path),

View File

@@ -1947,6 +1947,21 @@ for (const badFixture of badInterpFixtures) {
}
const g33_1Path = writeInterpRegressionFile("g33.1", "g33.1.ngc");
const g33_1NgcFiles = [
"g33.1.ngc",
];
assert.deepEqual(
g33_1NgcFiles,
interpRegressionNgcFilesRecursive("g33.1"),
"interp g33.1 fixture coverage drift",
);
assert.deepEqual(
[
g33_1Path,
],
g33_1NgcFiles.map((file) => `/work/interp/g33.1/${file}`),
"interp g33.1 staging manifest drift",
);
verifyExpectedOutput(
"interp_g33_1_wasm",
interp.runFile(g33_1Path),
@@ -2033,6 +2048,21 @@ for (const goodArcFixture of goodArcFixtures) {
}
const g6164Path = writeInterpRegressionFile("g6164", "test.ngc");
const g6164NgcFiles = [
"test.ngc",
];
assert.deepEqual(
g6164NgcFiles,
interpRegressionNgcFilesRecursive("g6164"),
"interp g6164 fixture coverage drift",
);
assert.deepEqual(
[
g6164Path,
],
g6164NgcFiles.map((file) => `/work/interp/g6164/${file}`),
"interp g6164 staging manifest drift",
);
verifyExpectedOutput(
"interp_g6164_wasm",
interp.runFile(g6164Path),