Guard final INI context staging paths

This commit is contained in:
2026-06-13 12:10:32 +08:00
parent d5ac4b68dd
commit 45ac3cb8b2
3 changed files with 66 additions and 45 deletions

View File

@@ -7603,14 +7603,11 @@
if (owordUnwindNgcFiles.length !== 2 || new Set(owordUnwindNgcFiles).size !== owordUnwindNgcFiles.length) {
throw new Error("browser_interp_oword_unwind_fixture_coverage: list drift");
}
const owordUnwindStagedNgcFiles = owordUnwindPlan.files
.map((file) => file.sourceRel)
.filter((sourceRel) => sourceRel.endsWith(".ngc"))
.map((sourceRel) => sourceRel.replace("tests/interp/oword-unwind/", ""))
.sort();
if (owordUnwindStagedNgcFiles.join(",") !== owordUnwindNgcFiles.join(",")) {
throw new Error("browser_interp_oword_unwind_staging_manifest: list drift");
}
assertInterpIniContextNgcStaging(
"oword-unwind",
owordUnwindNgcFiles,
owordUnwindPlan,
);
verifyExpectedOutput(
"browser_interp_oword_unwind",
interp.runFileWithIniContinueOnError(
@@ -7637,14 +7634,11 @@
if (abortHotCommentNgcFiles.length !== 1 || new Set(abortHotCommentNgcFiles).size !== abortHotCommentNgcFiles.length) {
throw new Error("browser_interp_abort_hot_comment_fixture_coverage: list drift");
}
const abortHotCommentStagedNgcFiles = abortHotCommentPlan.files
.map((file) => file.sourceRel)
.filter((sourceRel) => sourceRel.endsWith(".ngc"))
.map((sourceRel) => sourceRel.replace("tests/interp/abort-hot-comment/", ""))
.sort();
if (abortHotCommentStagedNgcFiles.join(",") !== abortHotCommentNgcFiles.join(",")) {
throw new Error("browser_interp_abort_hot_comment_staging_manifest: list drift");
}
assertInterpIniContextNgcStaging(
"abort-hot-comment",
abortHotCommentNgcFiles,
abortHotCommentPlan,
);
verifyExpectedOutput(
"browser_interp_abort_hot_comment",
interp.runFileWithIniContinueOnError(
@@ -7668,14 +7662,11 @@
if (m19NgcFiles.length !== 1 || new Set(m19NgcFiles).size !== m19NgcFiles.length) {
throw new Error("browser_interp_m19_fixture_coverage: list drift");
}
const m19StagedNgcFiles = m19Plan.files
.map((file) => file.sourceRel)
.filter((sourceRel) => sourceRel.endsWith(".ngc"))
.map((sourceRel) => sourceRel.replace("tests/interp/m19/", ""))
.sort();
if (m19StagedNgcFiles.join(",") !== m19NgcFiles.join(",")) {
throw new Error("browser_interp_m19_staging_manifest: list drift");
}
assertInterpIniContextNgcStaging(
"m19",
m19NgcFiles,
m19Plan,
);
verifyExpectedOutput(
"browser_interp_m19",
interp.runFileWithIni(m19Plan.programPath, m19Plan.iniPath),

View File

@@ -2579,14 +2579,10 @@ assert.deepEqual(
interpRegressionNgcFilesRecursive("oword-unwind"),
"interp oword-unwind fixture coverage drift",
);
assert.deepEqual(
owordUnwindPlan.files
.map((file) => file.sourceRel)
.filter((sourceRel) => sourceRel.endsWith(".ngc"))
.map((sourceRel) => sourceRel.replace("tests/interp/oword-unwind/", ""))
.sort(),
assertInterpIniContextNgcStaging(
"oword-unwind",
owordUnwindNgcFiles,
"interp oword-unwind staging manifest drift",
owordUnwindPlan,
);
verifyExpectedOutput(
"interp_oword_unwind_wasm",
@@ -2616,14 +2612,10 @@ assert.deepEqual(
interpRegressionNgcFilesRecursive("abort-hot-comment"),
"interp abort-hot-comment fixture coverage drift",
);
assert.deepEqual(
abortHotCommentPlan.files
.map((file) => file.sourceRel)
.filter((sourceRel) => sourceRel.endsWith(".ngc"))
.map((sourceRel) => sourceRel.replace("tests/interp/abort-hot-comment/", ""))
.sort(),
assertInterpIniContextNgcStaging(
"abort-hot-comment",
abortHotCommentNgcFiles,
"interp abort-hot-comment staging manifest drift",
abortHotCommentPlan,
);
verifyExpectedOutput(
"interp_abort_hot_comment_wasm",
@@ -2650,14 +2642,10 @@ assert.deepEqual(
interpRegressionNgcFilesRecursive("m19"),
"interp m19 fixture coverage drift",
);
assert.deepEqual(
m19Plan.files
.map((file) => file.sourceRel)
.filter((sourceRel) => sourceRel.endsWith(".ngc"))
.map((sourceRel) => sourceRel.replace("tests/interp/m19/", ""))
.sort(),
assertInterpIniContextNgcStaging(
"m19",
m19NgcFiles,
"interp m19 staging manifest drift",
m19Plan,
);
verifyExpectedOutput(
"interp_m19_wasm",