Repository navigation
fix(ci): pack broad changed-target rows within the Node matrix cap - #160376
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 changes before merge. Reviewed September 28, 2026, 7:02 AM ET / 11:02 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch repacks changed Node test targets by build and concurrency requirements when a pull request’s CI matrix exceeds its row cap, and adds a regression test and documentation. Merge readiness⛔ Needs changes before merge - 2 items remain This PR still addresses a CI overflow present on current main; the merged plugin-owner fix is complementary. One low-capacity case needs repair before merge because packing can admit a Node test row that exceeds its job deadline. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw CI selects tests from changed files, assigns them to owner and changed-target rows, then emits a Node job matrix. The workflow admits rows within its matrix cap and runs each changed target in a separate child process. flowchart LR
A[Changed files] --> B[Test selection]
B --> C[Owner rows]
B --> D[Changed targets]
D --> E[Policy-aware packing]
C --> F[Node matrix cap]
E --> F
F --> G[Test jobs]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests +111, Docs +5, Other +63. Total +179 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep policy-aware packing within the existing changed-target job bound, and fail CI admission clearly when the remaining rows cannot hold every target. Do we have a high-confidence way to reproduce the issue? Yes. The reported overflow has production manifest-step before-and-after replays; source inspection also gives a high-confidence low-capacity case, though this read-only review did not execute it. Is this the best way to solve the issue? No. The existing changed-target planner is the right owner, but packing must reject a row budget that breaks its per-job target bound. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 958de2c2b549. LabelsLabel changes:
Label justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
#160324 (commit 81a840a) is merged and restores canonical ownership for exact selected plugin tests. It does not implement this PR's separate repair for retained changed-target chunks that still exceed the row budget: partitioning by build/concurrency requirements and balancing within the available rows. These changes are complementary, not duplicates. Preserve the selected-plugin routing now on main and this PR's independent coverage, execution-policy boundaries, and validation. Keep this PR open. |
|
Merged via squash.
|
158 upstream commits, including the Kie AI, Z.AI and Novita video providers (openclaw#160080) and several CI planner repairs (openclaw#160187, openclaw#160260, openclaw#160324, openclaw#160376). No file outside the generated set and the test routing list changed on both sides. Two conflicts, both generated: docs/.generated/config-baseline.counts.json and docs/.generated/config-baseline.sha256. openclaw#160080 adds plugin settings, so plugin goes from 4353 to 4374. This branch keeps channel at 3788 and core stays at 2464. Both files came from upstream and were regenerated. test/vitest/vitest.extension-database-workers-paths.mjs changed on both sides in separate places and merged cleanly, with upstream's ten new entries and this branch's Feishu entry all kept. build:docker ran in a separate detached checkout of this commit outside the nested node_modules install. Regenerating there changed those two files and nothing else, giving the predicted counts, the upstream core and plugin hashes, this branch's channel hash and a new combined hash. The three generated-file checks pass there. Upstream deleted 38 test files in this range. None of them were added or changed by this branch. Feishu: 106 files and 1853 tests in the extension project, 17 files and 312 tests in the database-workers project. The forwarder test and the routing guards pass, 1980 tests. tsgo:core, tsgo:extensions, tsgo:extensions:test, tsgo:test:root, the line-cap, max-lines and assertion-safety ratchets against upstream/main, oxlint and oxfmt on the 43 changed code files all pass.
What Problem This Solves
Fixes: broad changed-target PRs fail CI preflight before any Node tests can run because their retained plan exceeds the 130-row matrix cap.
Reported blockers: #160224, #160164, #160291, and #160208.
User Impact
Developers can run the same selected CI coverage within the existing row cap. There is no product behavior change. Broad changed-target jobs can be longer; caps, workflow guards, timeouts, runners, and worker limits remain unchanged.
Why This Change Was Made
The earlier fallback retains unsplit owner rows when time splitting overflows, but the changed-target chunks can already overflow on their own. Only in that case, partition targets by pretest build mode and serial/concurrent policy, allocate rows proportionally by predicted seconds with at least one per policy, then balance within each partition. Refuse budgets too small to retain every policy. Preserve the exact target multiset, build prerequisites, serial-target concurrency, and every canonical, plugin, channel, boundary, and dist row. If other non-dist rows already fill the cap, leave the plan to the existing final guard.
Related: #160254 packs whole serial rows in
boundChangedNodeRows; this change only rebuilds changed-target chunks after the retained plan still exceeds the cap.Evidence
Executed the actual
Build CI manifeststep fromci.ymlwith real scope detection and canonical Blacksmith PR options against the same main inventory before and after the change:Both overflowing baseline manifests fail the actual final guard; all three candidate manifests succeed. Each comparison preserves the exact selected-target array, emitted changed-target multiset, and all other row descriptors. The current #160164 diff already fits, and its entire plan is identical. These are path-list replays against current main inventory, without the historical comparison base, so counts differ from the originally reported runs.
The #160224 maximum is 224 test seconds, or 328 seconds including its 104-second private-QA build, against the unchanged 3,600-second workflow timeout, also below a conservative 1,800-second cutoff reserving half the deadline for setup, preparation, and variance. Estimates are not measured CI job walls.
The original-cap regression failed before the repair (186 rows instead of 130). The execution-policy regression also fails on global LPT packing: eight build-dependent targets spread into eight build rows instead of two. It also checks duplicate-target preservation, private-QA preparation, serial Memory Core targets, unchanged small plans, and no-capacity rejection. In the #160224 replay, runtime/private-QA target rows decrease from 2/5 to 1/1; preparation applies to 14 targets instead of 49. The existing compact fallback/dist-budget regression stays covered.
--maxWorkers=1: 7.36 s wall / 6.45 s Vitest in a cold focused run, and 327 ms inside the full owner suite. On exact-head CI, the new case took 3.145 s; the complete existing owner file took 553.87 s because it repeatedly composes repository-wide selections. It adds no sleeps, process boots, or worker/timeout changes.git diff --checkpass. Fresh independent P0–P2 autoreview is clean.The Node-lane documentation describes the fallback. Changelog changes remain release-owned.
Exact-head CI: https://github.com/openclaw/openclaw/actions/runs/36411111449 . ClawSweeper completed review of
7b17de1eff03d6bfbf1fc67fa1e3d4cac74ac0b0with no actionable findings or before-merge requests.