Repository navigation
fix: keep manual CI within the job output limit - #154993
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 21, 2026, 12:51 PM ET / 16:51 UTC. ClawSweeper reviewWhat this changesCompresses flat Node test plans through the existing CI transport so manual validation fits within GitHub’s job-output limit, with regression coverage and budget documentation. Merge readiness✅ Ready for maintainer review This focused repair remains necessary on current main. No blocking correctness or security defects were found, and the recorded validation supports the change. Priority: P2 Review scores
Verification
How this fits togetherCI preflight converts selected tests into job matrices that GitHub passes to downstream runners. The shard runner decodes each plan and executes its selected tests with the recorded environment and worker limits. flowchart LR
A[Selected tests] --> B[Preflight planner]
B --> C{Target supports compression?}
C -->|Yes| D[Packed test groups]
C -->|No| E[Historical plan format]
D --> F[GitHub job outputs]
E --> F
F --> G[Shard runner]
G --> H[Selected test execution]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +76, Docs +2, Config +11. Total +89 across 3 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Use the existing codec for eligible flat plans while preserving test selection, execution boundaries, resource settings, and historical-target compatibility. Do we have a high-confidence way to reproduce the issue? Yes: the recorded manual dispatch and GitHub quota annotation identify the failing boundary, and current main retains the flat-plan bypass. This review did not execute a fresh reproduction. Is this the best way to solve the issue? Yes: extending the existing transport is a narrow repair, and both flat and packed plans converge on the same execution owner without a new scheduling policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d67332d67898. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Fixed: manual CI preflight now carries complete Node test plans within the job output budget. |
Include main fix #154993 so exact-head hosted CI can publish its preflight outputs. Preserve the reviewed two-file Gateway E2E routing patch unchanged.
Keep manual CI and exact-head PR release gates within the preflight output budget while preserving complete Node test plans and existing runner policy. Fixes openclaw#154986.
Fixes #154986.
What Problem This Solves
Manual CI can complete every preflight step and then fail while exporting its job outputs, preventing the selected checks from starting. The exact-head PR release gate in run 35617267617 reported
Job outputs exceed 1,048,576 bytes. Its full Node plan used flat file inventories that bypassed the existing compressed transport.User Impact
Manual validation and exact-head PR release gates can carry the full named Node plan with ample output headroom. The original jobs, test selections, process boundaries, runner settings, and job-level worker limits remain intact. Older targets without the codec keep their existing flat or legacy-group payloads.
Why This Change Was Made
The manifest already uses gzip/base64 for grouped Node rows. This change represents each supported flat configuration row as one group through that same producer and decoder. The large flat configuration/file payload is omitted once packed; scheduling and job environment metadata remain available to their existing consumers. Explicit-target rows retain their separate execution path.
The transport guard now covers a bounded manual inventory and verifies decoding preserves every selected path. Existing fallback checks inspect decoded plans, and the grouped guard protects the distinct job and group worker settings. The canonical CI budget documentation describes the manual path and compatibility behavior.
Evidence
The failed source at 4f03743 produced 132 flat Node rows and 1,043,342 UTF-16 bytes across its 60 declared manifest output values. Including the other mappings gives 68 nonempty job outputs: 1,043,680 value bytes, or 1,046,156 bytes including names. GitHub's internal accounting overhead is additional; the hosted quota failure is the observed result.
On Linux with Node 24.19.0, the original and repaired producers used the same candidate inventory:
The real shard decoder recovered identical plans for every row, including path order, configuration and environment. All job metadata and the other 59 manifest outputs matched. Totals include the four-byte correction documented on the linked issue: two initially omitted i18n inputs only change their boolean output values; matrices and counters are unaffected.
pnpm test test/scripts/ci-workflow-guards.test.ts --maxWorkers=1: all 657 tests passed; 164.9 seconds on the retained Linux Testbox. The added regression took 0.758 seconds in native CI. The existing file exercises complete inventory and frozen/manual workflow contracts; the new case uses a bounded synthetic inventory instead of adding another real-inventory planning loop.pnpm test test/scripts/ci-run-node-test-shard.test.ts --maxWorkers=1: all 96 tests passed; 4.6 seconds.