fix(ci): reject malformed targeted docker group size

This commit is contained in:
Vincent Koc
2026-06-02 21:18:52 +02:00
parent c208a10619
commit 36a596aa9f
2 changed files with 17 additions and 12 deletions
@@ -65,4 +65,19 @@ describe("scripts/plan-targeted-docker-lane-groups", () => {
{ docker_lanes: "published-upgrade-survivor", label: "published-upgrade-survivor" },
]);
});
it("rejects malformed group size values", () => {
expect(() =>
planTargetedDockerLaneGroups({
groupSize: "2x",
lanes: "doctor-switch update-channel-switch",
}),
).toThrow("groupSize must be a positive integer");
expect(() =>
planTargetedDockerLaneGroups({
groupSize: 0,
lanes: "doctor-switch update-channel-switch",
}),
).toThrow("groupSize must be a positive integer");
});
});