From 553c5dd1a896cd2b0db118ec2046dfdbcacdc466 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 9 May 2026 10:24:20 +0100 Subject: [PATCH] test: tighten docker e2e chunk alias assertions --- test/scripts/docker-e2e-plan.test.ts | 48 ++++++++++++++++++---------- 1 file changed, 31 insertions(+), 17 deletions(-) diff --git a/test/scripts/docker-e2e-plan.test.ts b/test/scripts/docker-e2e-plan.test.ts index 4ca006c1518..84993a73ad2 100644 --- a/test/scripts/docker-e2e-plan.test.ts +++ b/test/scripts/docker-e2e-plan.test.ts @@ -361,24 +361,38 @@ describe("scripts/lib/docker-e2e-plan", () => { releaseChunk: "plugins-integrations", }); - expect(packageUpdate.lanes.map((lane) => lane.name)).toEqual( - expect.arrayContaining([ - "install-e2e-openai", - "install-e2e-anthropic", - "update-channel-switch", - ]), - ); - expect(pluginsRuntime.lanes.map((lane) => lane.name)).toEqual( - expect.arrayContaining([ - "plugins", - "bundled-plugin-install-uninstall-0", - "bundled-plugin-install-uninstall-23", - "openwebui", - ]), - ); - expect(legacy.lanes.map((lane) => lane.name)).toEqual( - expect.arrayContaining(["plugins", "bundled-plugin-install-uninstall-0", "openwebui"]), + const bundledPluginSweepLanes = Array.from( + { length: BUNDLED_PLUGIN_INSTALL_UNINSTALL_SHARDS }, + (_, index) => `bundled-plugin-install-uninstall-${index}`, ); + + expect(packageUpdate.lanes.map((lane) => lane.name)).toEqual([ + "install-e2e-openai", + "install-e2e-anthropic", + "npm-onboard-channel-agent", + "npm-onboard-discord-channel-agent", + "npm-onboard-slack-channel-agent", + "doctor-switch", + "update-channel-switch", + "upgrade-survivor", + "published-upgrade-survivor", + "update-restart-auth", + ]); + expect(pluginsRuntime.lanes.map((lane) => lane.name)).toEqual([ + "plugins", + ...bundledPluginSweepLanes, + "cron-mcp-cleanup", + "openai-web-search-minimal", + "openwebui", + ]); + expect(legacy.lanes.map((lane) => lane.name)).toEqual([ + "plugins", + ...bundledPluginSweepLanes, + "cron-mcp-cleanup", + "openai-web-search-minimal", + "plugin-update", + "openwebui", + ]); }); it("expands the published upgrade survivor lane across deduped baselines", () => {