fix(test): skip Open WebUI in no-live Docker plans

This commit is contained in:
Vincent Koc
2026-05-03 19:23:28 -07:00
parent ac00d7882a
commit 0b6db06d7d
2 changed files with 19 additions and 3 deletions

View File

@@ -157,7 +157,10 @@ export const mainLanes = [
weight: 3,
},
),
serviceLane("openwebui", "OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:openwebui", {
lane("openwebui", "OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:openwebui", {
e2eImageKind: "functional",
live: true,
resources: ["live", "live:openai", "service"],
timeoutMs: OPENWEBUI_TIMEOUT_MS,
weight: 5,
}),
@@ -580,7 +583,10 @@ const legacyReleasePathChunks = {
};
function openWebUILane() {
return serviceLane("openwebui", "OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:openwebui", {
return lane("openwebui", "OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:openwebui", {
e2eImageKind: "functional",
live: true,
resources: ["live", "live:openai", "service"],
timeoutMs: OPENWEBUI_TIMEOUT_MS,
weight: 5,
});

View File

@@ -482,16 +482,26 @@ describe("scripts/lib/docker-e2e-plan", () => {
expect(plan.lanes).toEqual([
expect.objectContaining({
imageKind: "functional",
live: false,
live: true,
name: "openwebui",
resources: expect.arrayContaining(["docker", "live", "live:openai", "service"]),
}),
]);
expect(plan.needs).toMatchObject({
functionalImage: true,
liveImage: true,
package: true,
});
});
it("excludes Open WebUI from skip-live Docker all plans", () => {
const plan = planFor({
liveMode: "skip",
});
expect(plan.lanes.map((lane) => lane.name)).not.toContain("openwebui");
});
it("surfaces Docker lane test-state scenarios in plan JSON", () => {
const plan = planFor({
selectedLaneNames: [