Skip to content

ci: keep growing hosted test plans within the job cap - #144965

Merged
steipete merged 1 commit into
mainfrom
steipete/upd-ci-test-plan-cap
Sep 11, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/upd-ci-test-plan-cap

Conversation

@steipete

@steipete steipete commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Refs #144941

Additional instructions

Maintainer-requested repair. This same-repository branch remains editable by maintainers.

What Problem This Solves

Resolves a problem where pull-request CI fails the hosted tooling inventory-growth guard with compact github node test plan exceeds 80 jobs (81 planned). This blocks #144941 (including run 34603439927), although that PR adds no test files. Main's push plan omits tooling, so its green CI does not exercise this PR-only failure.

Why This Change Was Made

First-fit packing can strand time when a job reaches the ten-group limit. Before opening another GitHub PR anchor job, try one deterministic group exchange between existing bins. Validate both replacement bins and the incoming group with the original admission predicate before applying the exchange. This packs the grown inventory into 80 jobs without changing the cap, timing floors, serial budgets, runner capacity, worker pins, process isolation, prerequisites, or sibling-family separation.

The exchange runs before hosted tooling placement, so tooling growth cannot alter non-tooling anchors. Blacksmith, hybrid, and all push plans are byte-equivalent to their previous descriptors. Add a small regression for the independent time/group-count constraints and document the policy.

User Impact

Unblocks the known planner failure on #144941 and other PRs routed through the affected tooling test lane. There is no runtime product behavior change.

Evidence

  • Reproduced on main snapshot d1c9e4690adbf55df4f80993d52b1c62e6a0f09e.
  • With the new regression present and the original planner restored:
    node scripts/run-vitest.mjs test/scripts/ci-node-test-plan.test.ts -t "packs serial groups within both|keeps hosted tooling within the GitHub job cap"
    reports 2 failed: three bins instead of two, and 81 planned jobs instead of at most 80.
  • With the fix, those regressions pass on main and the clean merge-tree result of main with fix(doctor): contain MCP child cleanup failures #144941 head 4b2b903c2dfd6edfee78b6a88e6cb34c44d26738.
  • node scripts/run-vitest.mjs test/scripts/ci-node-test-plan.test.ts: 57 passed.
  • node scripts/check-changed.mjs and git diff --check.
  • Independent Codex autoreview at P1: clean.
Profile Push jobs before → after PR jobs before → after
Blacksmith 32 → 32 49 → 49
GitHub 50 → 50 80 → 80
Hybrid 28 → 28 50 → 50

Counts use the production setting that excludes release-only plugin shards. The failing expanded GitHub inventory changes 81 → 80; current inventory remains at 80 while avoiding the overflow-tail repartition.

Known gap: native CI remains the source of elapsed-time and memory evidence; this change preserves existing capacity limits and does not claim a measured wall-time improvement. Exact-head CI run 34608159644 passed for 08faa94fd3ca0aa71c2a8d27baf5837b551761ca: 97 checks passed, 38 skipped, none pending or failed. The previously failing checks-node-compact-small-30 lane passed. The PR remains ready for the lead to land; #144941 needs a fresh run after this fix reaches main.

@clawsweeper

clawsweeper Bot commented Sep 11, 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 docs Improvements or additions to documentation scripts Repository scripts size: S maintainer Maintainer-authored PR labels Sep 11, 2026
@steipete
steipete marked this pull request as ready for review September 11, 2026 14:06
@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 11, 2026
@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 11, 2026, 10:30 AM ET / 14:30 UTC (Revision 2).

ClawSweeper review

What this changes

The CI test planner tries a validated exchange between existing jobs before adding another GitHub-hosted pull-request job, with regression coverage and documentation.

Merge readiness

✅ Ready for maintainer review

This remains a useful, bounded CI repair: current main still uses first-fit packing, and the pinned-head CI run passed. No actionable correctness or security defect was found.

Priority: P2
Reviewed head: 08faa94fd3ca0aa71c2a8d27baf5837b551761ca

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with preserved admission rules, meaningful regression coverage, and successful pinned-head CI.
Proof confidence 🌊 off-meta tidepool Not applicable: The ordinary external-contributor proof gate does not apply to this maintainer-authored CI repair; verified pinned-head CI and reported before/after planner regressions support it without establishing a wall-time improvement.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The ordinary external-contributor proof gate does not apply to this maintainer-authored CI repair; verified pinned-head CI and reported before/after planner regressions support it without establishing a wall-time improvement.
Evidence reviewed 8 items Introduced change verified: The local merge-base-to-head diff matches the supplied introduction evidence. Only the planner, its regression test, and runner documentation change; unrelated Matrix endpoint drift is excluded.
Admission and caller boundaries: Replacement bins are validated before mutation. Exchange is enabled only for GitHub pull-request anchors, before tooling placement; file partitioning, plugin fallback packing, and other profiles retain the default disabled behavior.
Regression coverage: The added case checks two-bin packing, exact group preservation, the ten-group ceiling, and the 210-second budget. Existing inventory-growth coverage checks complete tooling membership, stable non-tooling placement, sibling separation, and runner requirements. The captured PR body reports both relevant regressions failing before the fix and all 57 planner tests passing afterward; tests were not executed during this read-only review.
Findings None None.
Security None None.

How this fits together

The Node test planner converts test inventories, timing estimates, and runner requirements into GitHub Actions jobs. Its admission rules preserve coverage and resource constraints while enforcing the job cap.

flowchart TD
  A[Test inventory and timings] --> B[Group by runner and prerequisites]
  B --> C[Place non-tooling groups]
  C --> D[Try validated exchange when full]
  D --> E[Place hosted tooling]
  E --> F[Enforce job cap]
  F --> G[GitHub Actions test jobs]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +16, Docs +2, Other +46. Total +64 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 16 0 +16
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 1 49 3 +46
Total 3 67 3 +64

Review metrics

Metric Value Why it matters
Expanded inventory admission 81 → 80 planned jobs; cap remains 80 The reported regression is repaired without increasing runner demand limits or dropping test inventory.

Technical review

Best possible solution:

Keep the existing planner as the single packing owner, preserving complete inventories and admission limits while recovering stranded capacity.

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

Yes: the planner regression exercises independent time and group-count limits, and the captured evidence reports the inventory-growth failure before the fix. This review inspected source and CI results without executing tests.

Is this the best way to solve the issue?

Yes: the exchange reuses the existing admission predicate and preserves descriptors, avoiding a competing planner or relaxed capacity limits.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This fixes a bounded CI planner overflow affecting pull-request validation without changing product runtime behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool 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 ordinary external-contributor proof gate does not apply to this maintainer-authored CI repair; verified pinned-head CI and reported before/after planner regressions support it without establishing a wall-time improvement.

Evidence

What I checked:

  • Introduced change verified: The local merge-base-to-head diff matches the supplied introduction evidence. Only the planner, its regression test, and runner documentation change; unrelated Matrix endpoint drift is excluded. (scripts/lib/ci-node-test-plan.mts:2613, 08faa94fd3ca)
  • Admission and caller boundaries: Replacement bins are validated before mutation. Exchange is enabled only for GitHub pull-request anchors, before tooling placement; file partitioning, plugin fallback packing, and other profiles retain the default disabled behavior. (scripts/lib/ci-node-test-plan.mts:2908, 08faa94fd3ca)
  • Regression coverage: The added case checks two-bin packing, exact group preservation, the ten-group ceiling, and the 210-second budget. Existing inventory-growth coverage checks complete tooling membership, stable non-tooling placement, sibling separation, and runner requirements. The captured PR body reports both relevant regressions failing before the fix and all 57 planner tests passing afterward; tests were not executed during this read-only review. (test/scripts/ci-node-test-plan.test.ts:2252, 08faa94fd3ca)
  • Verified CI result: GitHub confirms pull-request run 34608159644 completed successfully for the exact reviewed head. The separately inspected checks-node-compact-small-30 job also passed, including its test execution and memory-recording steps. (08faa94fd3ca)
  • Still necessary on reviewed main: The fetched main planner retains first-fit-only packing. The latest-release source inspection could not complete because its blob was unavailable, so no shipped-fix claim is made. (scripts/lib/ci-node-test-plan.mts:2613, 4ca592809742)
  • Feature-history routing: Main history identifies Peter Steinberger's prior planner maintenance, including precise tooling metadata and hosted inventory-growth handling. GitHub commit metadata maps the earlier growth repair to steipete. Full line blame could not complete because an older blob was unavailable; no introducing-author claim is made. (scripts/lib/ci-node-test-plan.mts, ca10df6c38cd)

Likely related people:

  • steipete: 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-11T14:12:19.426Z sha 08faa94 :: needs maintainer review before merge. :: none

@steipete
steipete merged commit 87504f7 into main Sep 11, 2026
191 checks passed
@steipete
steipete deleted the steipete/upd-ci-test-plan-cap branch September 11, 2026 14:43
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 11, 2026
* commit 'f2ce199238e974b1d4caff8f11112aa51eb00d9e': (310 commits)
  refactor(copilot): deduplicate transcript user text (#144888)
  refactor(sessions): await discovery and config readiness (#144854)
  refactor(e2e): deduplicate release file assertions (#144904)
  ci: keep growing hosted test plans within the job cap (#144965)
  fix(macos): avoid stale dashboard command assertions (#144710)
  refactor(memory): await standing intent operations (#144832)
  refactor(ui): derive native device settings types from schemas (#144705)
  refactor(memory): await journal operations and allocate sequences atomically (#144824)
  refactor(tests): share command field assertions (#144955)
  refactor(matrix): share bounded context cache insertion (#144939)
  refactor(i18n): share Apple catalog reader (#144848)
  fix(doctor): preserve legacy registry files when quarantine fails (#144787)
  refactor(tests): reuse PixVerse auth fixtures (#144926)
  fix(bonjour): silence transient ENODEV socket warnings (#144870)
  fix(matrix): preserve unrelated files when migration fails (#144883)
  feat(sqlite): run Team Reports storage in owned workers (#144871)
  fix(update): install explicit same-version artifacts (#144894)
  refactor(ui): share cached message extraction (#144244)
  refactor: normalize Claude usage responses at one boundary (#144707)
  refactor: simplify CLI child listener registration (#144929)
  ...
jalehman added a commit that referenced this pull request Sep 11, 2026
Includes #144965, resolving the source-proven 81-versus-80 tooling plan failure. The six-file automation timeout delta is unchanged against main.

461 focused tests pass, including 57 CI planner tests. Fresh P2 autoreview scoped-clean. Local broad changed checks stop on missing @noble/hashes/sha2.js in inherited Reef plugin dependencies; no dependency installation or guard bypass. Hosted exact-head CI remains required.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 12, 2026
First-fit packing stranded capacity when a bin reached the ten-group limit, causing growing hosted PR test plans to exceed the 80-job cap.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation 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