Guard rotation staging paths

This commit is contained in:
2026-06-13 08:00:35 +08:00
parent 5f1d885d36
commit 10cae98a9e
3 changed files with 59 additions and 0 deletions

View File

@@ -7386,6 +7386,14 @@
}
const rotationG53Path = await writeInterpRegressionFile(interp, "rotation/g53", "g53.ngc");
const rotationStagedNgcFiles = [
rotationAbsPtsPath,
rotationG28Path,
rotationG53Path,
].map((path) => path.replace("/work/browser-interp/rotation/", ""));
if (rotationStagedNgcFiles.join(",") !== rotationRegressionFiles.join(",")) {
throw new Error("browser_interp_rotation_staging_manifest: list drift");
}
const rotationG53Output = interp.runFile(rotationG53Path);
verifyExpectedOutput(
"browser_interp_rotation_g53",

View File

@@ -2344,6 +2344,15 @@ assert.match(
);
const rotationG53Path = writeInterpRegressionFile("rotation/g53", "g53.ngc");
assert.deepEqual(
[
rotationAbsPtsPath,
rotationG28Path,
rotationG53Path,
],
rotationRegressionFiles.map((file) => `/work/interp/rotation/${file}`),
"interp rotation staging manifest drift",
);
const rotationG53Output = interp.runFile(rotationG53Path);
verifyExpectedOutput(
"interp_rotation_g53_wasm",