ci: fold parity into QA release validation

This commit is contained in:
clawsweeper
2026-05-02 19:48:34 +00:00
parent 05162188a1
commit 3482654058

View File

@@ -58,6 +58,7 @@ function validateUniqueLanes(label, lanes) {
}
function validateLane(label, lane) {
const resources = laneResources(lane);
if (!lane.name || typeof lane.name !== "string") {
errors.push(`${label}: Docker E2E lane is missing a string name`);
}
@@ -70,7 +71,7 @@ function validateLane(label, lane) {
`${label}: Docker E2E lane '${lane.name}' has invalid image kind '${lane.e2eImageKind}'`,
);
}
if (lane.live && lane.e2eImageKind) {
if (lane.live && lane.e2eImageKind && !resources.includes("npm")) {
errors.push(`${label}: live Docker E2E lane '${lane.name}' must not require a package image`);
}
if (!lane.live && !lane.e2eImageKind) {
@@ -79,7 +80,7 @@ function validateLane(label, lane) {
if (laneWeight(lane) < 1) {
errors.push(`${label}: Docker E2E lane '${lane.name}' must have positive weight`);
}
if (!laneResources(lane).includes("docker")) {
if (!resources.includes("docker")) {
errors.push(`${label}: Docker E2E lane '${lane.name}' must include the docker resource`);
}