From fbe41fbdfc986c676604e8242d65934fb96fd47d Mon Sep 17 00:00:00 2001 From: "clawsweeper[bot]" <274271284+clawsweeper[bot]@users.noreply.github.com> Date: Wed, 29 Apr 2026 14:08:07 -0700 Subject: [PATCH] fix(ci): Found one low-severity diagnostic bug in the new Full Release Val (#74513) Co-authored-by: openclaw-clawsweeper[bot] <280122609+openclaw-clawsweeper[bot]@users.noreply.github.com> --- .github/workflows/full-release-validation.yml | 11 +++++------ test/scripts/package-acceptance-workflow.test.ts | 6 +++++- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/full-release-validation.yml b/.github/workflows/full-release-validation.yml index fe4ab872f7f..e2a7a88af00 100644 --- a/.github/workflows/full-release-validation.yml +++ b/.github/workflows/full-release-validation.yml @@ -652,16 +652,15 @@ jobs: echo echo "### Longest queues: ${label}" echo - gh run view "$run_id" --json createdAt,jobs --jq ' + gh api --paginate "repos/${GITHUB_REPOSITORY}/actions/runs/${run_id}/jobs?per_page=100" --jq ".jobs[] | @json" | jq -sr ' def ts: fromdateiso8601; - .createdAt as $createdAt | "| Job | Result | Queue minutes | Run minutes |", "| --- | --- | ---: | ---: |", - ([.jobs[] - | select(.startedAt != "0001-01-01T00:00:00Z") + ([.[] + | select(.created_at != null and .started_at != null) | . + { - queueMin: ((((.startedAt | ts) - ($createdAt | ts)) / 60) * 10 | round / 10), - durationMin: (if .completedAt == "0001-01-01T00:00:00Z" then null else ((((.completedAt | ts) - (.startedAt | ts)) / 60) * 10 | round / 10) end) + queueMin: ((((.started_at | ts) - (.created_at | ts)) / 60) * 10 | round / 10), + durationMin: (if .completed_at == null then null else ((((.completed_at | ts) - (.started_at | ts)) / 60) * 10 | round / 10) end) } | select(.queueMin > 0) | {name, conclusion, queueMin, durationMin}] diff --git a/test/scripts/package-acceptance-workflow.test.ts b/test/scripts/package-acceptance-workflow.test.ts index 639673649a4..b324334b609 100644 --- a/test/scripts/package-acceptance-workflow.test.ts +++ b/test/scripts/package-acceptance-workflow.test.ts @@ -410,6 +410,10 @@ describe("package artifact reuse", () => { expect(workflow).toContain("### Slowest jobs: ${label}"); expect(workflow).toContain("### Longest queues: ${label}"); expect(workflow).toContain("| Job | Result | Queue minutes | Run minutes |"); - expect(workflow).toContain('gh run view "$run_id" --json createdAt,jobs'); + expect(workflow).toContain( + 'gh api --paginate "repos/${GITHUB_REPOSITORY}/actions/runs/${run_id}/jobs?per_page=100"', + ); + expect(workflow).toContain("(.started_at | ts) - (.created_at | ts)"); + expect(workflow).not.toContain('gh run view "$run_id" --json createdAt,jobs'); }); });