Guard more earlier direct-file staging

This commit is contained in:
2026-06-13 09:35:23 +08:00
parent 6a64219533
commit a773c2e633
3 changed files with 59 additions and 65 deletions

View File

@@ -6504,12 +6504,7 @@
if (subsFollowMainNgcFiles.length !== 1 || new Set(subsFollowMainNgcFiles).size !== subsFollowMainNgcFiles.length) {
throw new Error("browser_interp_subs_follow_main_fixture_coverage: list drift");
}
const subsFollowMainStagedNgcFiles = [
subsFollowMainPath,
].map((path) => path.replace("/work/browser-interp/subs-follow-main/", ""));
if (subsFollowMainStagedNgcFiles.join(",") !== subsFollowMainNgcFiles.join(",")) {
throw new Error("browser_interp_subs_follow_main_staging_manifest: list drift");
}
assertInterpRegressionFileStaging("subs-follow-main", "test.ngc", subsFollowMainPath);
verifyExpectedOutput(
"browser_interp_subs_follow_main",
interp.runFile(subsFollowMainPath),
@@ -6534,12 +6529,7 @@
if (fractionalLinenumbersNgcFiles.length !== 1 || new Set(fractionalLinenumbersNgcFiles).size !== fractionalLinenumbersNgcFiles.length) {
throw new Error("browser_interp_fractional_linenumbers_fixture_coverage: list drift");
}
const fractionalLinenumbersStagedNgcFiles = [
fractionalLinenumbersPath,
].map((path) => path.replace("/work/browser-interp/fractional-linenumbers/", ""));
if (fractionalLinenumbersStagedNgcFiles.join(",") !== fractionalLinenumbersNgcFiles.join(",")) {
throw new Error("browser_interp_fractional_linenumbers_staging_manifest: list drift");
}
assertInterpRegressionFileStaging("fractional-linenumbers", "test.ngc", fractionalLinenumbersPath);
verifyExpectedOutput(
"browser_interp_fractional_linenumbers",
interp.runFile(fractionalLinenumbersPath),
@@ -6565,12 +6555,7 @@
if (crazyPathsNgcFiles.length !== 1 || new Set(crazyPathsNgcFiles).size !== crazyPathsNgcFiles.length) {
throw new Error("browser_interp_crazy_paths_fixture_coverage: list drift");
}
const crazyPathsStagedNgcFiles = [
crazyPathsPath,
].map((path) => path.replace("/work/browser-interp/crazy-paths/", ""));
if (crazyPathsStagedNgcFiles.join(",") !== crazyPathsNgcFiles.join(",")) {
throw new Error("browser_interp_crazy_paths_staging_manifest: list drift");
}
assertInterpRegressionFileStaging("crazy-paths", "test.ngc", crazyPathsPath);
verifyExpectedOutput(
"browser_interp_crazy_paths",
interp.runFile(crazyPathsPath),
@@ -6667,12 +6652,7 @@
if (namedparamBug424NgcFiles.length !== 1 || new Set(namedparamBug424NgcFiles).size !== namedparamBug424NgcFiles.length) {
throw new Error("browser_interp_namedparam_bug424_fixture_coverage: list drift");
}
const namedparamBug424StagedNgcFiles = [
namedparamBug424Path,
].map((path) => path.replace("/work/browser-interp/namedparam-bug424/", ""));
if (namedparamBug424StagedNgcFiles.join(",") !== namedparamBug424NgcFiles.join(",")) {
throw new Error("browser_interp_namedparam_bug424_staging_manifest: list drift");
}
assertInterpRegressionFileStaging("namedparam-bug424", "test.ngc", namedparamBug424Path);
verifyExpectedOutput(
"browser_interp_namedparam_bug424",
interp.runFile(namedparamBug424Path),
@@ -6700,12 +6680,7 @@
if (flowsnakeNgcFiles.length !== 1 || new Set(flowsnakeNgcFiles).size !== flowsnakeNgcFiles.length) {
throw new Error("browser_interp_flowsnake_fixture_coverage: list drift");
}
const flowsnakeStagedNgcFiles = [
flowsnakePath,
].map((path) => path.replace("/work/browser-interp/flowsnake/", ""));
if (flowsnakeStagedNgcFiles.join(",") !== flowsnakeNgcFiles.join(",")) {
throw new Error("browser_interp_flowsnake_staging_manifest: list drift");
}
assertInterpRegressionFileStaging("flowsnake", "flowsnake.ngc", flowsnakePath);
verifyExpectedOutput(
"browser_interp_flowsnake",
interp.runFile(flowsnakePath),