




















@@ -5,6 +5,7 @@ import {
55parseLaneSelection,
66resolveDockerE2ePlan,
77} from "../../scripts/lib/docker-e2e-plan.mjs";
8+import { BUNDLED_PLUGIN_INSTALL_UNINSTALL_SHARDS } from "../../scripts/lib/docker-e2e-scenarios.mjs";
89910const orderLanes = <T>(lanes: T[]) => lanes;
1011@@ -47,7 +48,7 @@ describe("scripts/lib/docker-e2e-plan", () => {
4748expect(plan.lanes.map((lane) => lane.name)).toContain("bundled-channel-feishu");
4849expect(plan.lanes.map((lane) => lane.name)).toContain("bundled-channel-update-acpx");
4950expect(plan.lanes.map((lane) => lane.name)).toContain("bundled-plugin-install-uninstall-0");
50-expect(plan.lanes.map((lane) => lane.name)).toContain("bundled-plugin-install-uninstall-7");
51+expect(plan.lanes.map((lane) => lane.name)).toContain("bundled-plugin-install-uninstall-23");
5152expect(plan.lanes.filter((lane) => lane.name === "install-e2e-openai")).toHaveLength(1);
5253expect(
5354plan.lanes.filter((lane) => lane.name === "bundled-plugin-install-uninstall-0"),
@@ -119,6 +120,26 @@ describe("scripts/lib/docker-e2e-plan", () => {
119120profile: RELEASE_PATH_PROFILE,
120121releaseChunk: "plugins-runtime-install-d",
121122});
123+const pluginsRuntimeInstallE = planFor({
124+includeOpenWebUI: true,
125+profile: RELEASE_PATH_PROFILE,
126+releaseChunk: "plugins-runtime-install-e",
127+});
128+const pluginsRuntimeInstallF = planFor({
129+includeOpenWebUI: true,
130+profile: RELEASE_PATH_PROFILE,
131+releaseChunk: "plugins-runtime-install-f",
132+});
133+const pluginsRuntimeInstallG = planFor({
134+includeOpenWebUI: true,
135+profile: RELEASE_PATH_PROFILE,
136+releaseChunk: "plugins-runtime-install-g",
137+});
138+const pluginsRuntimeInstallH = planFor({
139+includeOpenWebUI: true,
140+profile: RELEASE_PATH_PROFILE,
141+releaseChunk: "plugins-runtime-install-h",
142+});
122143const bundledChannelsCore = planFor({
123144includeOpenWebUI: true,
124145profile: RELEASE_PATH_PROFILE,
@@ -190,18 +211,42 @@ describe("scripts/lib/docker-e2e-plan", () => {
190211expect(pluginsRuntimeInstallA.lanes.map((lane) => lane.name)).toEqual([
191212"bundled-plugin-install-uninstall-0",
192213"bundled-plugin-install-uninstall-1",
214+"bundled-plugin-install-uninstall-2",
193215]);
194216expect(pluginsRuntimeInstallB.lanes.map((lane) => lane.name)).toEqual([
195-"bundled-plugin-install-uninstall-2",
196217"bundled-plugin-install-uninstall-3",
197-]);
198-expect(pluginsRuntimeInstallC.lanes.map((lane) => lane.name)).toEqual([
199218"bundled-plugin-install-uninstall-4",
200219"bundled-plugin-install-uninstall-5",
201220]);
202-expect(pluginsRuntimeInstallD.lanes.map((lane) => lane.name)).toEqual([
221+expect(pluginsRuntimeInstallC.lanes.map((lane) => lane.name)).toEqual([
203222"bundled-plugin-install-uninstall-6",
204223"bundled-plugin-install-uninstall-7",
224+"bundled-plugin-install-uninstall-8",
225+]);
226+expect(pluginsRuntimeInstallD.lanes.map((lane) => lane.name)).toEqual([
227+"bundled-plugin-install-uninstall-9",
228+"bundled-plugin-install-uninstall-10",
229+"bundled-plugin-install-uninstall-11",
230+]);
231+expect(pluginsRuntimeInstallE.lanes.map((lane) => lane.name)).toEqual([
232+"bundled-plugin-install-uninstall-12",
233+"bundled-plugin-install-uninstall-13",
234+"bundled-plugin-install-uninstall-14",
235+]);
236+expect(pluginsRuntimeInstallF.lanes.map((lane) => lane.name)).toEqual([
237+"bundled-plugin-install-uninstall-15",
238+"bundled-plugin-install-uninstall-16",
239+"bundled-plugin-install-uninstall-17",
240+]);
241+expect(pluginsRuntimeInstallG.lanes.map((lane) => lane.name)).toEqual([
242+"bundled-plugin-install-uninstall-18",
243+"bundled-plugin-install-uninstall-19",
244+"bundled-plugin-install-uninstall-20",
245+]);
246+expect(pluginsRuntimeInstallH.lanes.map((lane) => lane.name)).toEqual([
247+"bundled-plugin-install-uninstall-21",
248+"bundled-plugin-install-uninstall-22",
249+"bundled-plugin-install-uninstall-23",
205250]);
206251expect(bundledChannelsCore.lanes.map((lane) => lane.name)).toEqual([
207252"plugin-update",
@@ -274,7 +319,7 @@ describe("scripts/lib/docker-e2e-plan", () => {
274319expect.arrayContaining([
275320"plugins",
276321"bundled-plugin-install-uninstall-0",
277-"bundled-plugin-install-uninstall-7",
322+"bundled-plugin-install-uninstall-23",
278323"openwebui",
279324]),
280325);
@@ -468,9 +513,12 @@ describe("scripts/lib/docker-e2e-plan", () => {
468513const plan = planFor({ selectedLaneNames });
469514470515expect(selectedLaneNames).toEqual(
471-Array.from({ length: 8 }, (_, index) => `bundled-plugin-install-uninstall-${index}`),
516+Array.from(
517+{ length: BUNDLED_PLUGIN_INSTALL_UNINSTALL_SHARDS },
518+(_, index) => `bundled-plugin-install-uninstall-${index}`,
519+),
472520);
473-expect(plan.lanes).toHaveLength(8);
521+expect(plan.lanes).toHaveLength(BUNDLED_PLUGIN_INSTALL_UNINSTALL_SHARDS);
474522expect(plan.lanes[0]).toEqual(
475523expect.objectContaining({
476524command: expect.stringContaining("OPENCLAW_BUNDLED_PLUGIN_SWEEP_INDEX=0"),
@@ -480,12 +528,12 @@ describe("scripts/lib/docker-e2e-plan", () => {
480528resources: expect.arrayContaining(["docker", "npm"]),
481529}),
482530);
483-expect(plan.lanes[7]).toEqual(
531+expect(plan.lanes[23]).toEqual(
484532expect.objectContaining({
485-command: expect.stringContaining("OPENCLAW_BUNDLED_PLUGIN_SWEEP_INDEX=7"),
533+command: expect.stringContaining("OPENCLAW_BUNDLED_PLUGIN_SWEEP_INDEX=23"),
486534imageKind: "functional",
487535live: false,
488-name: "bundled-plugin-install-uninstall-7",
536+name: "bundled-plugin-install-uninstall-23",
489537resources: expect.arrayContaining(["docker", "npm"]),
490538}),
491539);
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。