fix(e2e): isolate upgrade survivor matrix artifacts

This commit is contained in:
Vincent Koc
2026-05-01 00:35:29 -07:00
parent 75b7ad2784
commit c48c3ecbc7
2 changed files with 10 additions and 0 deletions

View File

@@ -168,6 +168,7 @@ export function expandUpgradeSurvivorBaselineLanes(poolLanes, rawBaselineSpecs,
const suffix = suffixParts.join("-");
const name = suffix ? `${poolLane.name}-${suffix}` : poolLane.name;
const commandPrefix = [
`OPENCLAW_UPGRADE_SURVIVOR_ARTIFACT_DIR="$PWD/.artifacts/upgrade-survivor/${name}"`,
baselineSpec ? `OPENCLAW_UPGRADE_SURVIVOR_BASELINE_SPEC=${shellQuote(baselineSpec)}` : "",
scenario ? `OPENCLAW_UPGRADE_SURVIVOR_SCENARIO=${shellQuote(scenario)}` : "",
]

View File

@@ -382,6 +382,9 @@ describe("scripts/lib/docker-e2e-plan", () => {
),
}),
]);
expect(plan.lanes[0]?.command).toContain(
'OPENCLAW_UPGRADE_SURVIVOR_ARTIFACT_DIR="$PWD/.artifacts/upgrade-survivor/published-upgrade-survivor-2026.4.29"',
);
});
it("expands the published upgrade survivor lane across scenarios", () => {
@@ -409,6 +412,12 @@ describe("scripts/lib/docker-e2e-plan", () => {
}),
]),
);
expect(
plan.lanes.find((lane) => lane.name === "published-upgrade-survivor-2026.4.29-tilde-log-path")
?.command,
).toContain(
'OPENCLAW_UPGRADE_SURVIVOR_ARTIFACT_DIR="$PWD/.artifacts/upgrade-survivor/published-upgrade-survivor-2026.4.29-tilde-log-path"',
);
});
it("expands reported upgrade issue scenarios", () => {