ci: shard release live validation

This commit is contained in:
Peter Steinberger
2026-04-27 14:24:00 +01:00
parent f6bda8d36b
commit 2243a68a1d
11 changed files with 324 additions and 13 deletions

View File

@@ -41,7 +41,8 @@ describe("scripts/lib/docker-e2e-plan", () => {
package: true,
});
expect(plan.credentials).toEqual(["anthropic", "openai"]);
expect(plan.lanes.map((lane) => lane.name)).toContain("install-e2e");
expect(plan.lanes.map((lane) => lane.name)).toContain("install-e2e-openai");
expect(plan.lanes.map((lane) => lane.name)).toContain("install-e2e-anthropic");
expect(plan.lanes.map((lane) => lane.name)).toContain("mcp-channels");
expect(plan.lanes.map((lane) => lane.name)).toContain("bundled-channel-feishu");
expect(plan.lanes.map((lane) => lane.name)).toContain("bundled-channel-update-acpx");
@@ -166,6 +167,24 @@ describe("scripts/lib/docker-e2e-plan", () => {
]);
});
it("maps installer E2E to provider-specific package install lanes", () => {
const selectedLaneNames = parseLaneSelection("install-e2e");
const plan = planFor({ selectedLaneNames });
expect(selectedLaneNames).toEqual(["install-e2e-openai", "install-e2e-anthropic"]);
expect(plan.lanes).toEqual([
expect.objectContaining({
command: expect.stringContaining("OPENCLAW_E2E_MODELS=openai"),
name: "install-e2e-openai",
}),
expect.objectContaining({
command: expect.stringContaining("OPENCLAW_E2E_MODELS=anthropic"),
name: "install-e2e-anthropic",
}),
]);
expect(plan.credentials).toEqual(["anthropic", "openai"]);
});
it("maps bundled plugin install/uninstall to package-backed shards", () => {
const selectedLaneNames = parseLaneSelection("bundled-plugin-install-uninstall");
const plan = planFor({ selectedLaneNames });