test: allow qa parity release heap

This commit is contained in:
Tideclaw
2026-06-01 16:32:35 +00:00
parent 6fda5abfb5
commit 9836feba20

View File

@@ -1115,8 +1115,13 @@ describe("package artifact reuse", () => {
for (const [jobName, job] of Object.entries(jobs)) {
for (const step of job.steps ?? []) {
if (step.run === "pnpm build") {
const expectedHeap =
workflowPath === RELEASE_CHECKS_WORKFLOW &&
jobName === "qa_lab_runtime_parity_release_checks"
? "12288"
: "8192";
expect(step.env, `${workflowPath}:${jobName}:${step.name}`).toEqual({
NODE_OPTIONS: "--max-old-space-size=8192",
NODE_OPTIONS: `--max-old-space-size=${expectedHeap}`,
});
}
}