Skip to content

fix(ci): bound main runtime and agent-support test groups - #198992

Merged
vincentkoc merged 2 commits into
mainfrom
fix/ci-hosted-main-runtime-envelope-20261114
Nov 14, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
fix/ci-hosted-main-runtime-envelope-20261114

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Related: #198517

What Problem This Solves

Hourly main CI put 235 agent-support files and 305 runtime/configuration files into successive test groups in one 52-minute job.

User Impact

Main CI limits these two families to 64 files per group while retaining the complete selected inventory and existing runner budget. Actual wall-time and billing savings still require subsequent CI observations.

Why This Change Was Made

The existing main-only splitter already preserves file ownership, runtime and build requirements, worker policies, and timing identities. Apply its file limit to these two additional measured owners and extend the existing regression.

Evidence

  • Observed main job 132477395974: agent-support 235 files / 1,274.55 seconds, then runtime/configuration 305 files / 1,758.31 seconds.
  • Production-planner baseline fails the 64-file bound: support groups 235/235; runtime/configuration 1/305/305. Candidate groups are all at most 64 files, preserving 470 support and 611 runtime/configuration files without duplicates.
  • Complete before/after plan preserves all 14,562 file/config selections and their execution settings; worker-proof rows are identical. Both plans remain at 77 non-build rows and 79 total. The production scheduled-main manifest independently accepts 77 non-build rows.
  • Work from these families spreads across 17 existing jobs instead of three; their largest combined selection in one job falls from 540 to 128 files. Other families still share those jobs; this is not a measured execution-time reduction.
  • Fresh independent source review: no actionable P0–P2 findings. Local ClawSweeper reviewed base 98556d69bfb13ac141ba4db884cbc92ab727b7ed through head 9fd1e8d4150aca17c10e347b8e06ee35d4bd4f4b; complete, high reasoning, no findings, security cleared. Source review did not execute tests.
  • Native PR workspace validation: the extended hosted-tail regression fails on the base in both modes at 235 > 64, then passes both modes with the fix.
  • The broader planner command ran 163 tests: 162 passed and one existing timing-key assertion hardcoded two support groups. It now checks the key against the actual selected sibling count. Both timing-profile cases pass on the corrected candidate; all partition, timing-delta and incompatible-generation assertions remain. The remaining passed tests reuse unchanged-input proof.
  • Required tooling-test typecheck, targeted lint on all touched TypeScript, formatting and line-cap checks pass. The initial dependency gap is closed using the native PR workspace; no shared checkout was reinstalled.
  • Test cost: the two-mode hosted-tail file took 3.677 seconds of test time; the broader two-file command took 64.955 seconds including the identified assertion failure. The corrected two-profile timing rerun took 5.734 seconds wall (2.491 seconds test time). No new test process tours. Exact-head PR CI run 43614481544 passed on its original attempt: 35 successful jobs, 30 intentional skips, no failures. The capacity queue drained without a retry or provider-setting change.

@vincentkoc vincentkoc self-assigned this Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 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: XS labels Nov 14, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 14, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 14, 2026 16:14
@vincentkoc
vincentkoc enabled auto-merge (squash) November 14, 2026 16:19
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR limits hosted main agent-support and runtime/configuration test groups to 64 files.

Example: Hourly main validation selects agent-support and runtime/configuration tests.

  • Before: The reported job ran a 235-file support group followed by a 305-file runtime/configuration group.
  • After: Each group contains at most 64 files, while retaining the selected inventory and existing runner budget.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and source-consistent, with reported production-planner regression coverage; candidate hourly execution performance has not yet been observed.
Proof confidence 🦐 gold shrimp (3/6) This internal CI planner change requires no product-entry-point demonstration; supplied validation exercises the production planner, while post-change hourly execution savings remain unmeasured.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Hourly main CI concentrates large test families in a long-running job, delaying validation feedback.
Reason: The maintainer-authored change addresses an observed bottleneck using existing machinery and explicitly leaves execution-time savings unclaimed.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it is maintainer-authored and makes a focused, useful extension to the existing CI splitter; no actionable introduced defect was found.

Priority: P2
Reviewed head: 9fd1e8d4150aca17c10e347b8e06ee35d4bd4f4b

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Node CI planner converts test-owner inventories, runtime requirements, and timing measurements into groups packed into GitHub Actions jobs.

flowchart LR
  A[Test owner inventories] --> C[Node CI planner]
  B[Runtime and timing inputs] --> C
  C --> D[Main family file limits]
  D --> E[Existing job packing]
  E --> F[GitHub Actions matrix]
Loading

Technical review

Best possible solution:

Retain the existing splitter extension and land through the normal exact-head CI gates.

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

Current-main source lacks the two family limits, and the supplied regression reports the intended base failure and candidate pass; no target code was executed during this review.

Is this the best way to solve the issue?

The change uses the existing decision owner and splitting mechanism, with no additional state, wrappers, or competing policy.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Main-only family envelopes and documentation keeps the original intent (b7d2a8b: Bound slow hosted main groups independently of stale timing estimates; the later main-validation repair preserved ordinary packing to remain within its row budget.)
  • Child timing-generation regression keeps the original intent (9d6cd24: The prior test consolidation retained child-timing compatibility and partition assertions; this PR adapts the sibling-count expectation without weakening those contracts.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Introduced change: The introduced production change adds only two entries and an incident comment to the existing main-family limit map; the remaining hunks update its regression, timing-key expectation, and documentation. (scripts/lib/ci-node-test-plan.mts:359, 9fd1e8d4150a)
  • Scope and packing: The caller enables these limits only for the GitHub backend in push mode or main validation; existing splitting preserves group descriptors, and family-aware packing prevents split siblings from being reunited. (scripts/lib/ci-node-test-plan.mts:4893, 9fd1e8d4150a)
  • Regression contract: The extended production-planner regression covers legacy push and main validation, enforcing file limits, exact inventories, uniqueness, worker policies, prerequisites, and job caps. (test/scripts/ci-node-test-plan-hosted-tail.test.ts:36, 9fd1e8d4150a)
  • Current main still lacks these limits: Fetched main retains only the chat and Gateway entries, and its affected files match the introduced base; this PR's additional family limits are still necessary. (scripts/lib/ci-node-test-plan.mts:356, 1ac07b333581)
  • Reported validation and related repair: The full PR body reports the bound failing on the base and passing on the candidate, unchanged file/config selections and execution settings, and acceptance within the existing row budget; fix(ci): split oversized hosted main test groups #198517 previously enabled the same mechanism for main validation. (9fd1e8d4150a)
  • Observed job and inspection limits: GitHub confirms the referenced hosted job succeeded after approximately 52 minutes; its raw logs redirected to a blocked artifact host, so the reported individual group durations were not independently verified. Older JavaScript history inspection also encountered an unavailable blob; the relevant splitter introduction and recent ownership were available.

Likely related people:

  • Peter Steinberger: Raw commit b7d2a8b adds scripts/lib/ci-node-test-plan.mts:394 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b7d2a8b73bb9; files: scripts/lib/ci-node-test-plan.mts)

PR surface

Tests +12, Docs 0, Other +3. Total +15 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 16 4 +12
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 3 0 +3
Total 4 20 5 +15

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: Oversized hourly CI groups delay maintainer feedback, with no demonstrated product outage or lost coverage.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Oversized hourly CI groups delay maintainer feedback, with no demonstrated product outage or lost coverage.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 14, 2026, 11:30 AM ET / 16:30 UTC.

@vincentkoc
vincentkoc merged commit 4741625 into main Nov 14, 2026
189 checks passed
@vincentkoc
vincentkoc deleted the fix/ci-hosted-main-runtime-envelope-20261114 branch November 14, 2026 16:41
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 15, 2026
…98992)

* fix(ci): bound main runtime and agent-support test groups

* test(ci): check timing generation against selected siblings
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 P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XS 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