mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 02:51:39 +00:00
fix(ci): bound qa-profile-evidence git fetch operations with timeout (#110282)
* fix(ci): bound qa-profile-evidence git fetch operations with timeout * fix(ci): bound qa-profile-evidence git fetch operations with timeout ci: retrigger checks * test(ci): guard QA evidence fetch timeouts Co-authored-by: wanyongstar <wan.yong@xydigit.com> --------- Co-authored-by: Peter Steinberger <steipete@gmail.com> Co-authored-by: Peter Steinberger <peter@steipete.me>
This commit is contained in:
@@ -4317,6 +4317,25 @@ printf '%s\n' "\${CURL_SUCCESS_IP:-203.0.113.7}"
|
||||
},
|
||||
);
|
||||
|
||||
it("bounds QA profile selected-ref fetches", () => {
|
||||
const validateSelectedRef = expectDefined(
|
||||
readQaProfileEvidenceWorkflow().jobs.validate_selected_ref.steps.find(
|
||||
(step: WorkflowStep) => step.name === "Validate selected ref",
|
||||
),
|
||||
"QA profile selected-ref validation step",
|
||||
);
|
||||
const gitFetchLines = validateSelectedRef.run
|
||||
.split("\n")
|
||||
.filter((line: string) => line.includes("git fetch"));
|
||||
|
||||
expect(gitFetchLines).toHaveLength(2);
|
||||
expect(
|
||||
gitFetchLines.every((line: string) =>
|
||||
line.trimStart().startsWith("timeout --signal=TERM --kill-after=10s 120s git fetch"),
|
||||
),
|
||||
).toBe(true);
|
||||
});
|
||||
|
||||
it("keeps maturity scorecard generated QA evidence handoff strict", () => {
|
||||
const maturityWorkflow = readMaturityScorecardWorkflow();
|
||||
const qaEvidenceWorkflow = readQaProfileEvidenceWorkflow();
|
||||
|
||||
Reference in New Issue
Block a user