Repository navigation
fix(ci): retry FRV job listings with smaller pages after GitHub 5xx - #171952
Conversation
|
ClawSweeper reviews are opt-in for maintainers. If a review is required, finish the work and validation first, then comment |
|
@clawsweeper review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR retries complete FRV job listings with smaller pages after GitHub HTTP 5xx responses. Example: GitHub run 38517205342, attempt 2, contains 239 jobs.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR addresses a demonstrated FRV failure still present on main, resolves both prior findings, and has no remaining actionable defect identified. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherFRV controllers, state collectors, and release verification consume GitHub Actions job inventories to assess exact workflow attempts and compose release evidence. flowchart TD
A[FRV controller] --> D[Shared listing fallback]
B[Decision and Drain collectors] --> D
C[Strict release verifier] --> D
D --> E[GitHub Actions job API]
E --> F[Complete job inventory]
F --> G[Existing evidence validation]
Technical reviewBest possible solution: Land the shared fallback through the normal merge gates while coordinating the overlapping pagination work. Do we have a high-confidence way to reproduce the issue? Current main repeatedly requests the failing 100-job listing; the supplied live API evidence identifies the affected attempt and confirms smaller pages succeed, although this review ran no reproduction. Is this the best way to solve the issue? The shared fallback addresses the observed transport failure across controller, collectors, and verifier while retaining existing evidence checks and healthy-path requests. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b12bdb3d21f2. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +122, Other +61. Total +183 across 7 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (2 earlier review cycles)Reviewed October 14, 2026, 4:36 AM ET / 08:36 UTC (Revision 3). |
|
@clawsweeper review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper review |
|
🦞👀 Re-review progress:
|
…171952) * fix(ci): retry FRV job listings with smaller pages after GitHub 5xx * fix(ci): apply job listing page fallback to the strict FRV verifier * fix(ci): keep the strict verifier job ceiling at 1,000 after page fallback (cherry picked from commit 5584b16) Backport note: release/2026.10.5 keeps separate findParentJobsAll and findRunAttemptJobsAll readers in scripts/release-ci-summary.mjs instead of main's unified findRunJobsAll. Both now route through one local readRunJobPages helper that uses readReleaseJobListing (100/50/30 page-size fallback on GitHub 5xx) and the page-size-independent 1,000-job ceiling; parent jobs keep filter=all without completeness checks, attempt jobs keep requireComplete. The main-only getRef cached-reads test was dropped from frv.release.test.ts, and release-evidence-retry.test.ts gains the node:fs import the release line lacks.
…/plugin-memory-addon-presentation-20261014 * commit 'a8da8c92e3dbb21dd1441a30eb842fcd942e82b6': (52 commits) test(ui): await terminal reconnect fixture readiness (#171945) perf(gateway): retain only the requested ordered session page (#171968) test(gateway): cover automation run-alias placement lifecycle (#139313) fix(ci): retry FRV job listings with smaller pages after GitHub 5xx (#171952) fix(process): prevent false cleanup failures after CLI stdin closes (#171969) test(doctor): cover released updater advisory warnings (#157086) fix(ci): skip Testbox builds for known prose files (#171946) perf(sessions): remove redundant snapshot walks (#171964) fix(ci): skip plugin scaffold build for SDK instructions (#171944) fix(infra): preserve scheduler scope abort state after retirement fix: setup diagnostics can repair state without approval (#171960) perf(usage): avoid per-session admission churn during inventory (#171868) fix(ci): exclude documentation from extension lint scope (#171909) test(gateway): keep runtime-only compat flags out of live gateway config (#171953) docs: document ClawHub install telemetry opt-out (#114376) fix: recover completed chat replies after missed publication (#171766) refactor(ui): decouple session controller types from Lit (#171559) fix(gateway): settle worker reconciliation during busy shutdowns (#171843) fix(ci): ignore protocol prose in bundled check selection (#171908) fix(ui): align replacement lines and highlight inline diff edits (#171935) ...
…ller pages after GitHub 5xx Backport of #172321 (main commit 8b84076; add the cherry-pick -x line once the main merge SHA exists). Backport note: release/2026.10.5's scripts/full-release-child-evidence.mjs still reads attempt jobs itself via `gh api --paginate --slurp ...?per_page=100` (main reads through createReleaseEvidenceClient, already fixed by #171952). That reader now uses readReleaseJobListing (100/50/30 on GitHub 5xx), keeps its page-shape, total_count, and attempt-ownership checks, and keeps the 2,000-job attempt ceiling (formerly 20 x 100 pages) independent of page size. seal() becomes async for the shared async helper. The full-release-candidate-reuse.mjs change applies unchanged from main. This fixes job 115959523942 (run 38578984406 attempt 3). (cherry picked from commit 70ca91f)
Port of the release-ci-summary part of #171952 onto the 2026.9.33 verifier.
…172641) * fix(ci): retry FRV job listings with smaller pages after GitHub 5xx (#171952) * fix(ci): retry FRV job listings with smaller pages after GitHub 5xx * fix(ci): apply job listing page fallback to the strict FRV verifier * fix(ci): keep the strict verifier job ceiling at 1,000 after page fallback (cherry picked from commit 5584b16) * test(qa-lab): clarify node_exec live arguments and report cases that never start (cherry picked from commit 142bd64) (cherry picked from commit 069109d85e71c52eecbb4b4348c65a30a437db76) * fix(ci): apply the job listing page fallback to the strict FRV verifier Port of the release-ci-summary part of #171952 onto the 2026.9.33 verifier.
…penclaw#171952) * fix(ci): retry FRV job listings with smaller pages after GitHub 5xx * fix(ci): apply job listing page fallback to the strict FRV verifier * fix(ci): keep the strict verifier job ceiling at 1,000 after page fallback
…171952) * fix(ci): retry FRV job listings with smaller pages after GitHub 5xx * fix(ci): apply job listing page fallback to the strict FRV verifier * fix(ci): keep the strict verifier job ceiling at 1,000 after page fallback Release adaptation: ported the collector, strict verifier, and shared policy fallback only. This branch has no releaseGhRateLimitRetryAt; its local frv.mjs already reads attempt jobs 25 per page, so frv.mjs and its tests stay as is. The retry tests exercise async transient retries with a network error because job-listing 5xx responses now fall back to smaller pages. (cherry picked from commit 5584b16)
Problem
GitHub persistently returns HTTP 502 for
GET repos/openclaw/openclaw/actions/runs/38517205342/attempts/2/jobs?per_page=100(a rerun attempt carrying forward ~239 jobs, parent FRV run 38516597880). The same URL succeeds withper_page=50andper_page=30, and attempt 1 succeeds withper_page=100(probed 2026-10-14).Full Release Validation lists attempt jobs with a hard-coded
per_page=100+--paginate, so:node scripts/frv.mjs continue --failed --run <parent>/rerun) fails withgh: Server Error (HTTP 502);full-release-validation-state.mjs,FULL_RELEASE_STATE_MODEdecision/drain) end instate=orchestration_error, so a parent cannot be resealed after a child rerun.Fix
scripts/full-release-validation-policy.mjs:readReleaseJobListing(readListing)reads the complete paginated listing atper_page=100, then50, then30, moving to the next size only on a GitHub 5xx (isReleaseGhServerError). Each size re-reads the whole listing, so pages of different sizes are never mixed and ordering/duplicate detection is unchanged.scripts/frv.mjscreateClient(getAttemptJobs,getParentJobs),scripts/full-release-validation-state.mjsgithubAttemptJobs(decision/drain collectors), and the strict verifierscripts/release-ci-summary.mjsfindRunJobsAll(getRunAttemptJobs/getParentJobs, launched byfrv continueviaclient.verify).findRunJobsAllkeeps itsrequireCompletetotal/duplicate checks per page size and enforces the same 1,000-job inventory ceiling independent of page size (stops once 1,000 jobs are held and truncates to 1,000, so 1,000 accepts and 1,001 rejects underrequireCompleteexactly as the ten 100-job pages did).Impact
Release tooling only (FRV controller and FRV state collectors). Healthy listings make the same single
per_page=100request as before.Evidence
per_page=100-> 502;per_page=50/per_page=30-> 200; attempt 1per_page=100-> 200.test/scripts/frv.release.test.ts:ghfixture returnsServer Error (HTTP 502)forjobs?per_page=100;getAttemptJobssucceeds with exactly two calls (per_page=100, thenper_page=50);readReleaseJobListingfails closed with the original error after 100/50/30 all 5xx, and does not fall back on a 404.test/scripts/release-evidence-retry.test.ts: strictvalidateReleaseRunEvidenceover the stable npm fixture, with the realcreateReleaseEvidenceClient().getRunAttemptJobstransport returningServer Error (HTTP 502)atper_page=100; verification passes for all 6 children with one 100 + one 50 read each and no retry sleeps.test/scripts/release-evidence-retry.test.ts: after falling back to 30-job pages, 1,000 jobs passrequireComplete, 1,001 jobs reject it, and a non-strict 1,001-job listing returns 1,000 (the 1,001 cases fail on the previous head 5c91f00).total_count239 atper_page=50) via the 50-job fallback. Most of the ~42s is GitHub taking ~40s to return the 502 atper_page=100. I did not runfrv status --run 38516597880to keep API use low.Local checks:
pnpm test test/scripts/frv.release.test.ts --maxWorkers=1: 109 passed, 81.2s wall (new tests: 254ms and 1ms)pnpm test test/scripts/frv.test.ts test/scripts/frv-cancellation.test.ts test/scripts/full-release-validation-state.test.ts test/scripts/full-release-validation-state.qualification.test.ts --maxWorkers=1: 225 passed, 8.6s wallpnpm test test/scripts/release-evidence-retry.test.ts test/scripts/release-ci-summary.test.ts test/scripts/frv.test.ts test/scripts/frv-cancellation.test.ts test/scripts/full-release-validation-state.test.ts test/scripts/full-release-validation-state.qualification.test.ts test/scripts/openclaw-npm-publication-authority.test.ts --maxWorkers=1: 389 passed, 33.3s wall;release-evidence-retry.test.tsalone ~4snpx oxfmt --checkandnode scripts/run-oxlint.mjson touched files: cleanpnpm tsgo:scripts,pnpm tsgo:test:root: pass