mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:20:43 +00:00
ci: fold parity into QA release validation
This commit is contained in:
@@ -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`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user