From 7f52953a8ff677af7d6da8be7f2266eb43a1dca3 Mon Sep 17 00:00:00 2001 From: Codex Date: Tue, 2 Jun 2026 12:33:46 +0000 Subject: [PATCH] fix: accept v02 docs-only pipeline status --- scripts/src/hwlab-g14.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/src/hwlab-g14.ts b/scripts/src/hwlab-g14.ts index a8730264..be5de5bd 100644 --- a/scripts/src/hwlab-g14.ts +++ b/scripts/src/hwlab-g14.ts @@ -1301,7 +1301,7 @@ function v02TargetValidation(input: { .map((item) => [String(item.serviceId), stringOrNull(item.sourceCommit) ?? stringOrNull(item.artifactSourceCommit)])); const rolloutServices = stringArray(input.planArtifacts.rolloutServices) .filter((serviceId) => serviceId === "hwlab-cloud-api" || serviceId === "hwlab-cloud-web"); - const requiredRuntimeServices = rolloutServices.length > 0 ? rolloutServices : ["hwlab-cloud-api"]; + const requiredRuntimeServices = rolloutServices; const recentItems = Array.isArray(input.recentPipelineRuns.items) ? input.recentPipelineRuns.items.map((item) => record(item)) : []; @@ -1349,7 +1349,9 @@ function v02TargetValidation(input: { summary: failures.length === 0 ? superseded ? `target ${input.targetMode} completed for ${shortSha(sourceCommit ?? "")}; runtime now reflects newer v0.2 PipelineRun` - : `target ${input.targetMode} validation passed for ${shortSha(sourceCommit ?? "")}` + : requiredRuntimeServices.length === 0 + ? `target ${input.targetMode} validation passed for ${shortSha(sourceCommit ?? "")}; no runtime service rollout required` + : `target ${input.targetMode} validation passed for ${shortSha(sourceCommit ?? "")}` : `target ${input.targetMode} validation failed with ${failures.length} issue(s)`, sourceCommit, pipelineRun: input.pipelineRun === null @@ -1481,7 +1483,9 @@ export function v02CommitAlignment(input: { workspaceWarnings, runtimeWarnings, summary: aligned - ? `v0.2 CI/CD source, mirror, PipelineRun, and runtime align with ${shortSha(expectedSourceHead ?? "")}` + ? apiRevisionRequired + ? `v0.2 CI/CD source, mirror, PipelineRun, and cloud-api runtime align with ${shortSha(expectedSourceHead ?? "")}` + : `v0.2 CI/CD source, mirror, and PipelineRun align with ${shortSha(expectedSourceHead ?? "")}; cloud-api runtime rollout not required` : `v0.2 CI/CD alignment state=${state}; staleReasons=${staleReasons.join(",")}`, }; }