Guard small single-file staging

This commit is contained in:
2026-06-13 09:16:07 +08:00
parent be9fd7e17a
commit a6baa14ddf
3 changed files with 56 additions and 37 deletions

View File

@@ -7101,12 +7101,7 @@
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");
}
assertInterpRegressionFileStaging("g33.1", "g33.1.ngc", g33_1Path);
verifyExpectedOutput(
"browser_interp_g33_1",
interp.runFile(g33_1Path),
@@ -7198,12 +7193,7 @@
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");
}
assertInterpRegressionFileStaging("g6164", "test.ngc", g6164Path);
verifyExpectedOutput(
"browser_interp_g6164",
interp.runFile(g6164Path),
@@ -8578,12 +8568,11 @@
if (g52RegressionFiles.length !== 1 || new Set(g52RegressionFiles).size !== g52RegressionFiles.length) {
throw new Error("browser_interp_g52_fixture_coverage: list drift");
}
const g52StagedNgcFiles = [
assertInterpRegressionFileStaging(
"g52/g52-g92-interaction",
"g52-g92-interaction.ngc",
g52G92InteractionPath,
].map((path) => path.replace("/work/browser-interp/g52/", ""));
if (g52StagedNgcFiles.join(",") !== g52RegressionFiles.join(",")) {
throw new Error("browser_interp_g52_staging_manifest: list drift");
}
);
verifyExpectedOutput(
"browser_interp_g52_g92_interaction",
interp.runFile(g52G92InteractionPath),

View File

@@ -2068,13 +2068,7 @@ assert.deepEqual(
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",
);
assertInterpRegressionFileStaging("g33.1", "g33.1.ngc", g33_1Path);
verifyExpectedOutput(
"interp_g33_1_wasm",
interp.runFile(g33_1Path),
@@ -2170,13 +2164,7 @@ assert.deepEqual(
interpRegressionNgcFilesRecursive("g6164"),
"interp g6164 fixture coverage drift",
);
assert.deepEqual(
[
g6164Path,
],
g6164NgcFiles.map((file) => `/work/interp/g6164/${file}`),
"interp g6164 staging manifest drift",
);
assertInterpRegressionFileStaging("g6164", "test.ngc", g6164Path);
verifyExpectedOutput(
"interp_g6164_wasm",
interp.runFile(g6164Path),
@@ -3530,12 +3518,10 @@ assert.deepEqual(
interpRegressionNgcFilesRecursive("g52"),
"interp g52 fixture coverage drift",
);
assert.deepEqual(
[
g52G92InteractionPath,
],
g52RegressionFiles.map((file) => `/work/interp/g52/${file}`),
"interp g52 staging manifest drift",
assertInterpRegressionFileStaging(
"g52/g52-g92-interaction",
"g52-g92-interaction.ngc",
g52G92InteractionPath,
);
const g52G92InteractionRun = runWithCapturedPrints(() =>
interp.runFile(g52G92InteractionPath),