ci: accept legacy bundled docker lane

This commit is contained in:
Peter Steinberger
2026-04-27 07:31:08 +01:00
parent 4bca42d933
commit 67e6410e0f
2 changed files with 17 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ import { describe, expect, it } from "vitest";
import {
DEFAULT_LIVE_RETRIES,
RELEASE_PATH_PROFILE,
parseLaneSelection,
resolveDockerE2ePlan,
} from "../../scripts/lib/docker-e2e-plan.mjs";
@@ -97,6 +98,19 @@ describe("scripts/lib/docker-e2e-plan", () => {
});
});
it("maps the legacy bundled channel deps lane to the split compat lane", () => {
const selectedLaneNames = parseLaneSelection("bundled-channel-deps");
const plan = planFor({ selectedLaneNames });
expect(selectedLaneNames).toEqual(["bundled-channel-deps-compat"]);
expect(plan.lanes).toEqual([
expect.objectContaining({
imageKind: "bare",
name: "bundled-channel-deps-compat",
}),
]);
});
it("rejects unknown selected lanes with the available lane names", () => {
expect(() => planFor({ selectedLaneNames: ["missing-lane"] })).toThrow(
/OPENCLAW_DOCKER_ALL_LANES unknown lane\(s\): missing-lane/u,