mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:10:45 +00:00
fix(test): keep Open WebUI live lane image-free
This commit is contained in:
@@ -157,10 +157,9 @@ export const mainLanes = [
|
||||
weight: 3,
|
||||
},
|
||||
),
|
||||
lane("openwebui", "OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:openwebui", {
|
||||
e2eImageKind: "functional",
|
||||
live: true,
|
||||
resources: ["live", "live:openai", "service"],
|
||||
liveLane("openwebui", "OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:openwebui", {
|
||||
provider: "openai",
|
||||
resources: ["service"],
|
||||
timeoutMs: OPENWEBUI_TIMEOUT_MS,
|
||||
weight: 5,
|
||||
}),
|
||||
@@ -583,10 +582,9 @@ const legacyReleasePathChunks = {
|
||||
};
|
||||
|
||||
function openWebUILane() {
|
||||
return lane("openwebui", "OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:openwebui", {
|
||||
e2eImageKind: "functional",
|
||||
live: true,
|
||||
resources: ["live", "live:openai", "service"],
|
||||
return liveLane("openwebui", "OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:openwebui", {
|
||||
provider: "openai",
|
||||
resources: ["service"],
|
||||
timeoutMs: OPENWEBUI_TIMEOUT_MS,
|
||||
weight: 5,
|
||||
});
|
||||
|
||||
@@ -472,7 +472,7 @@ describe("scripts/lib/docker-e2e-plan", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("plans Open WebUI as a functional-image lane with OpenAI credentials", () => {
|
||||
it("plans Open WebUI as a live-only lane with OpenAI credentials", () => {
|
||||
const plan = planFor({
|
||||
includeOpenWebUI: true,
|
||||
selectedLaneNames: ["openwebui"],
|
||||
@@ -481,16 +481,17 @@ describe("scripts/lib/docker-e2e-plan", () => {
|
||||
expect(plan.credentials).toEqual(["openai"]);
|
||||
expect(plan.lanes).toEqual([
|
||||
expect.objectContaining({
|
||||
imageKind: "functional",
|
||||
imageKind: undefined,
|
||||
live: true,
|
||||
name: "openwebui",
|
||||
resources: expect.arrayContaining(["docker", "live", "live:openai", "service"]),
|
||||
}),
|
||||
]);
|
||||
expect(plan.needs).toMatchObject({
|
||||
functionalImage: true,
|
||||
e2eImage: false,
|
||||
functionalImage: false,
|
||||
liveImage: true,
|
||||
package: true,
|
||||
package: false,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user