fix: show targeted cleanup age guard
This commit is contained in:
@@ -480,6 +480,12 @@ assertCondition(
|
||||
&& sourceText.includes("protected-latest-pipelinerun"),
|
||||
"control-plane cleanup-runs must protect the latest PipelineRun per lane by default",
|
||||
);
|
||||
assertCondition(
|
||||
sourceText.includes("selectedReason: ageMinutes === null ? \"missing-creation-timestamp\" : \"below-min-age\"")
|
||||
&& sourceText.includes("target-pipelinerun-not-found-or-not-terminal")
|
||||
&& sourceText.indexOf("const target = terminalRuns.find((item) => item.name === targetPipelineRun)") < sourceText.indexOf("target-pipelinerun-not-found-or-not-terminal"),
|
||||
"targeted cleanup-runs must report below-min-age terminal PipelineRuns instead of hiding them as not found",
|
||||
);
|
||||
assertCondition(
|
||||
hwlabHelpUsage.some((line) => line.includes("hwlab nodes control-plane cleanup-runs --node G14 --lane v03 --pipeline-run"))
|
||||
&& hwlabHelpUsage.some((line) => line.includes("hwlab nodes control-plane cleanup-runs --node G14 --lane v03 --source-commit"))
|
||||
|
||||
Reference in New Issue
Block a user