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>
This commit is contained in:
clawsweeper[bot]
2026-04-29 14:08:07 -07:00
committed by GitHub
parent 296d07c22f
commit fbe41fbdfc
2 changed files with 10 additions and 7 deletions

View File

@@ -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}]

View File

@@ -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');
});
});