mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:30:44 +00:00
fix(test): skip Open WebUI in no-live Docker plans
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user