Skip to content

fix: extension fallback planning exceeds the pull request job limit - #149652

Merged
fuller-stack-dev merged 7 commits into
mainfrom
fix/ci-extension-packing-exchange-20260916
Sep 16, 2026
Merged

fuller-stack-dev merged 7 commits into
mainfrom
fix/ci-extension-packing-exchange-20260916

Conversation

@fuller-stack-dev

@fuller-stack-dev fuller-stack-dev commented Sep 16, 2026 •

Copy link
Copy Markdown
Member

Related: #149180

What Problem This Solves

Fixes: pull request CI planning stops at 121 non-dist Node jobs when core changes require the full extension fallback, exceeding the existing 120-job limit.

User Impact

The reproduced plan now fits 120 jobs with the same selected tests. There is no product runtime change.

Why This Change Was Made

Enable the existing group exchange step for extension packing. Compatible processes can share a serial job while preserving the 240-second budget, preparation isolation, runner and distribution requirements, and native shard arguments. Both job-limit guards remain unchanged.

Evidence

  • The same twelve changed paths produce 121 non-dist jobs on canonical 472a5e958decc97c74327bddf62db50e75f36f94 and 120 with this change. All 79 compact-core rows remain unchanged; extension rows decrease from 44 to 43.
  • Independent generated-plan validation retains all 286 child descriptors exactly once, including all 85 extension children, 17 preparation singletons, and 8,977 predicted extension seconds. Documentation, precise extension selection, reordered input, repetition, and unknown-path fallback controls pass.
  • Passed 238 planner tests, four existing matrix-cap guards, and the final two-case regression rerun. The new regression fails on unchanged production. Selected formatting, types, lint, and other static checks pass; final autoreview has no P0–P2 findings.

Artifact manifest · Raw baseline plan · Raw candidate plan · Independent validation and contract corrections

The original internal validation contract incorrectly required all prepared core jobs to be singleton and expected an empty docs plan. Both baseline behaviors were preserved, and the report records those corrections. Local Node was 24.20.0; the original CI failure used 24.13.0. These observations generate plans without executing their child tests and do not guarantee capacity for every future inventory. Artifact links expire September 23.

Refreshed proof after canonical inventory changes also gives 121 to 120 jobs with all 286 descriptors conserved. Independent validation covers 8cdfed57; the later root comparison covers 8432c139, including both new explicit core tests exactly once. Eight inventory tests passed at the first revision and three relevant core ownership tests passed at the second. These revision labels remain separate from the original proof.

Refreshed raw plans and validation manifest

Later paired observations at 16f5ecd6 retain the same rows. After Matrix worker inventory moved at 956ce185, the fresh baseline/candidate comparison again conserves all 286 descriptors at 121/120 jobs; 13 relevant worker-ownership and packing checks pass. The reviewed three-file delta is unchanged. Required exact-head CI 35052656348 passed. Native preparation and ordinary squash merge completed. Landed as c698cf3dee35dc820efb0a34458c2fbf0f0c1c13.

Final paired plans at canonical 956ce185

@fuller-stack-dev
fuller-stack-dev marked this pull request as ready for review September 16, 2026 03:40
@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S maintainer Maintainer-authored PR labels Sep 16, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 16, 2026
@clawsweeper

clawsweeper Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 11:47 PM ET / September 16, 2026, 03:47 UTC.

ClawSweeper review

What this changes

Enable the existing test-group exchange algorithm for extension CI jobs and add regressions for packing budgets, execution metadata, and isolation boundaries.

Merge readiness

✅ Ready for maintainer review

This remains a useful, narrowly scoped repair: current main still omits the exchange step for extension packing. No actionable correctness or security defect was found.

Priority: P2
Reviewed head: 6aff9c81f825b33ecb5f3960b467af5831a5b30a

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with useful paired planning observations and meaningful regression coverage; no blocking defect was found.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The MEMBER-authored planner change is exempt from contributor proof requirements; its body additionally reports real paired plan generation with fewer jobs and conserved descriptors, though linked raw artifacts were inaccessible to this reviewer.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored planner change is exempt from contributor proof requirements; its body additionally reports real paired plan generation with fewer jobs and conserved descriptors, though linked raw artifacts were inaccessible to this reviewer.
Evidence reviewed 9 items Introduced change and preserved boundaries: The pinned introduced delta enables group exchange at the existing packing call. Its predicate still excludes preparation-dependent groups, requires matching runner and distribution requirements, and limits combined predicted time to 240 seconds. Both precise and fallback extension plans use this owner.
Exchange algorithm preserves complete admission: The shared packer validates both replacement bins before modifying either, then retains the original descriptors. The extension serializer preserves child environments and native shard arguments, and emits serial jobs.
Meaningful regression coverage: The new planner cases distinguish a 480-second workload that fits two jobs after exchange from a 481-second workload requiring three. They verify descriptor conservation, native shard arguments, serial execution, and budgets; the shared-packer cases cover runner, distribution, and preparation separation. Tests were source-reviewed, not executed.
Findings None None.
Security None None.

How this fits together

OpenClaw’s CI planner converts changed files into test jobs. Extension packing combines compatible test processes before the workflow enforces its job limit and executes each group.

flowchart LR
  A[Changed files] --> B[Test scope selection]
  B --> C[Extension test groups]
  C --> D[Budget and compatibility packing]
  D --> E[CI job limit check]
  E --> F[Serial test processes]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +92, Other +1. Total +93 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 93 1 +92
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 0 +1
Total 3 94 1 +93

Review metrics

Metric Value Why it matters
Reported planner recovery 121 → 120 jobs; 286 child descriptors retained The supplied paired observations meet the existing PR cap without dropping selected work.
Production versus regression coverage Production +1 net line; tests +92 net lines Production growth enables an existing algorithm; the regression cases exercise packing feasibility and isolation.

Technical review

Best possible solution:

Reuse the shared exchange algorithm while preserving complete test coverage, serial execution, preparation isolation, and both existing job caps.

Do we have a high-confidence way to reproduce the issue?

Yes, source inspection establishes the first-fit packing gap, and the supplied paired planner observations report the resulting job-cap failure. No local reproduction was executed.

Is this the best way to solve the issue?

Yes. Enabling the existing exchange operation is a narrow repair that preserves the documented admission and execution contracts.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against c561f0d43d48.

Labels

Label changes:

  • add P2: Repairs a concrete CI planning failure for changes requiring broad extension coverage, with no product runtime change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored planner change is exempt from contributor proof requirements; its body additionally reports real paired plan generation with fewer jobs and conserved descriptors, though linked raw artifacts were inaccessible to this reviewer.

Label justifications:

  • P2: Repairs a concrete CI planning failure for changes requiring broad extension coverage, with no product runtime change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored planner change is exempt from contributor proof requirements; its body additionally reports real paired plan generation with fewer jobs and conserved descriptors, though linked raw artifacts were inaccessible to this reviewer.

Evidence

What I checked:

  • Introduced change and preserved boundaries: The pinned introduced delta enables group exchange at the existing packing call. Its predicate still excludes preparation-dependent groups, requires matching runner and distribution requirements, and limits combined predicted time to 240 seconds. Both precise and fallback extension plans use this owner. (scripts/lib/ci-changed-node-test-plan.mts:513, 6aff9c81f825)
  • Exchange algorithm preserves complete admission: The shared packer validates both replacement bins before modifying either, then retains the original descriptors. The extension serializer preserves child environments and native shard arguments, and emits serial jobs. (scripts/lib/ci-node-test-plan.mts:2816, 6aff9c81f825)
  • Meaningful regression coverage: The new planner cases distinguish a 480-second workload that fits two jobs after exchange from a 481-second workload requiring three. They verify descriptor conservation, native shard arguments, serial execution, and budgets; the shared-packer cases cover runner, distribution, and preparation separation. Tests were source-reviewed, not executed. (test/scripts/ci-changed-node-test-plan.test.ts:1271, 6aff9c81f825)
  • Current-main necessity: At the supplied fetched main revision, the extension packer still calls the shared algorithm without enabling exchange. The existing algorithm alone therefore does not supersede this repair. (scripts/lib/ci-changed-node-test-plan.mts:513, c561f0d43d48)
  • Latest-release comparison: The source at the supplied v2026.9.4 release commit likewise omits the exchange argument in extension packing. This PR’s opt-in is absent from that release. (scripts/lib/ci-changed-node-test-plan.mts:556, 3a9d69db306c)
  • Existing owner and feature history: GitHub confirms ci: keep growing hosted test plans within the job cap #144965 merged the shared exchange capability. Its commit patch adds the opt-in and complete-bin validation reused here. Local historical blame and pickaxe traversal encountered unavailable blobs; GitHub commit evidence supplied the relevant patch. (scripts/lib/ci-node-test-plan.mts, 87504f7ec9e0)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@fuller-stack-dev
fuller-stack-dev merged commit c698cf3 into main Sep 16, 2026
245 checks passed
@fuller-stack-dev
fuller-stack-dev deleted the fix/ci-extension-packing-exchange-20260916 branch September 16, 2026 04:24
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant