mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:40:44 +00:00
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:
11
.github/workflows/full-release-validation.yml
vendored
11
.github/workflows/full-release-validation.yml
vendored
@@ -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}]
|
||||
|
||||
@@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user