fix: accept v02 docs-only pipeline status
This commit is contained in:
@@ -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(",")}`,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user