fix(ci): budget maturity evidence runs (#111980)

This commit is contained in:
Dallin Romney
2026-07-21 10:54:37 +09:00
committed by GitHub
parent 17643f3850
commit d4deddb6ed
2 changed files with 9 additions and 1 deletions
+2 -1
View File
@@ -197,7 +197,7 @@ jobs:
name: Generate QA profile evidence
needs: validate_selected_ref
runs-on: blacksmith-8vcpu-ubuntu-2404
timeout-minutes: ${{ inputs.qa_profile == 'all' && 240 || 60 }}
timeout-minutes: ${{ (inputs.qa_profile == 'all' || inputs.qa_profile == 'release') && 240 || 60 }}
permissions:
contents: read
outputs:
@@ -303,6 +303,7 @@ jobs:
pnpm openclaw qa run \
--repo-root . \
--qa-profile "${QA_PROFILE}" \
--fast \
--output-dir "${output_dir}" || qa_exit_code=$?
echo "qa_exit_code=${qa_exit_code}" >> "$GITHUB_OUTPUT"
+7
View File
@@ -4616,6 +4616,9 @@ printf '%s\n' "\${CURL_SUCCESS_IP:-203.0.113.7}"
expect(qaEvidenceWorkflow.on.workflow_dispatch.inputs.qa_profile).not.toHaveProperty("options");
expect(qaEvidenceWorkflow.on.workflow_dispatch.inputs.qa_profile.default).toBe("all");
expect(qaEvidenceWorkflow.on.workflow_call.inputs.qa_profile.type).toBe("string");
expect(qaRunJob["timeout-minutes"]).toBe(
"${{ (inputs.qa_profile == 'all' || inputs.qa_profile == 'release') && 240 || 60 }}",
);
const validateProfileStep = qaRunJob.steps.find(
(step: WorkflowStep) => step.name === "Validate QA profile input",
);
@@ -4627,6 +4630,10 @@ printf '%s\n' "\${CURL_SUCCESS_IP:-203.0.113.7}"
(step: WorkflowStep) => step.name === "Ensure Playwright Chromium",
);
expect(ensurePlaywrightStep.run).toBe("node scripts/ensure-playwright-chromium.mjs");
const runProfileStep = qaRunJob.steps.find(
(step: WorkflowStep) => step.name === "Run QA profile",
);
expect(runProfileStep.run).toContain("--fast");
expect(generateJob.needs).toEqual(["validate_selected_ref", "publisher_preflight"]);
expect(generateJob.if.replace(/\s+/gu, " ")).toBe(
"${{ always() && needs.validate_selected_ref.result == 'success' && (!inputs.publish_pull_request || needs.publisher_preflight.result == 'success') && inputs.qa_evidence_run_id == '' }}",