mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 10:16:44 +00:00
fix(ci): budget maturity evidence runs (#111980)
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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 == '' }}",
|
||||
|
||||
Reference in New Issue
Block a user