Skip to content

fix(ci): unblock PR checks by rebalancing services test roots - #139645

Merged
vincentkoc merged 1 commit into
mainfrom
steipete/fix-services-shard-root-cap
Sep 6, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
steipete/fix-services-shard-root-cap

Conversation

@steipete

@steipete steipete commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves a problem where every open PR inherits a failing core test typecheck boundary from main. origin/main is currently red on check-additional-boundaries: the services shard has 721 test roots, exceeding its 720-root typecheck memory bound. Main CI run 34006539935 fails that job and the aggregate CI gate.

This unblocks every open PR in the repo from this inherited failure, since PR CI builds the merge commit and inherits the failure from main.

Why This Change Was Made

Move the 44 src/logging test roots from services to infra, leaving 677 and 680 roots respectively. The existing 720-root memory bound and exactly-once coverage remain enforced; only the two shard include lists change.

User Impact

Developers can validate and land PRs without this unrelated failure inherited from main. There is no runtime behavior change.

Evidence

The compiler-resolved boundary check passes: every canonical core test root is assigned exactly once, all shards stay at or below 720 roots, and core graphs exclude bundled plugin files.

Shard Test roots after rebalance Headroom to 720
agents-root 720 0
agents-other 647 73
agents-tools 143 577
gateway-root 694 26
gateway-other 513 207
infra 680 40
commands 531 189
plugins-platform 676 44
config-cli 653 67
messaging 572 148
services 677 43
other 689 31
ui-pages 488 232
ui-e2e 389 331
ui-other 460 260
packages 403 317

Follow-up worth attention: agents-root measured exactly 720, at the cap. The next test file added under that shard's roots will break main the same way. Rebalancing it is intentionally outside this fix.

  • pnpm check:changed with isolated OPENCLAW_STATE_DIR and OPENCLAW_CONFIG_PATH: passed (exit 0).
  • node --import ./scripts/tsx.mjs scripts/check-tsgo-core-boundary.mts: passed.
  • Both affected shard typechecks and the three guard suites passed during the implementation proof.
  • Independent Codex autoreview of both the local patch and committed branch: scoped-clean, no accepted/actionable findings at the default P0 threshold; both exited 0.

Exact-head CI run 34007189986 completed successfully for e682430fe5e747761df5e7c5efa06ebf6e9393e3, including check-additional-boundaries, all three test-typecheck jobs, and openclaw/ci-gate. No reruns were needed. ClawSweeper review found no actionable patch defects or pre-merge requirements.

The workflow linter was intentionally skipped: no .github/ workflow file changes in this PR. Its earlier local failure, No matching distribution found for pre-commit==4.6.2, is a pre-existing local-environment issue outside this patch; no dependency pin or workaround was changed.

The services shard exceeded the 720-root typecheck memory bound. Move src/logging test roots to infra, leaving services at 677 roots and infra at 680 while retaining exactly-once test coverage.
@clawsweeper

clawsweeper Bot commented Sep 6, 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.

@steipete
steipete marked this pull request as ready for review September 6, 2026 02:42
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Sep 6, 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 6, 2026
@clawsweeper

clawsweeper Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 5, 2026, 10:49 PM ET / September 6, 2026, 02:49 UTC.

ClawSweeper review

What this changes

Moves logging test files from the services typecheck shard to the infrastructure shard so both fit the existing memory-bound root limit.

Merge readiness

✅ Ready for maintainer review

This remains a useful, focused CI repair: fetched main still exceeds the services shard limit, while the proposed partition preserves coverage. No actionable patch defects were found; maintainer protection also excludes automatic closure.

Priority: P2
Reviewed head: e682430fe5e747761df5e7c5efa06ebf6e9393e3

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A narrow, well-supported repair that preserves the existing coverage and memory safeguards.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-authored CI-only change is exempt from external-contributor runtime proof; reported compiler checks and captured successful boundary/typecheck jobs directly cover the changed shard assignments.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-authored CI-only change is exempt from external-contributor runtime proof; reported compiler checks and captured successful boundary/typecheck jobs directly cover the changed shard assignments.
Evidence reviewed 7 items Verified introduced change: The pinned merge-base-to-head diff transfers both logging test globs between projects without changing compiler settings, exclusions, or the root cap.
Current-main inventory confirms the defect: Read-only counting of tracked test paths found 44 logging roots, 636 infrastructure roots, and 721 roots under the services include directories at both the merge base and fetched main. Moving logging yields 680 infrastructure and 677 services roots.
Existing invariant remains enforced: The unchanged shard validator retains the 720-root cap and rejects missing, duplicate, and noncanonical assignments. The boundary checker uses compiler-expanded roots; both affected projects inherit the same settings and retain separate build-info files. Existing guard tests cover these violations.
Findings None None.
Security None None.

How this fits together

OpenClaw divides test files into compiler projects to bound typechecking memory. A boundary check validates complete, exactly-once assignment before CI runs the shard typechecks.

flowchart LR
  A[Core test files] --> B[Shard include lists]
  B --> C[Services shard]
  B --> D[Infrastructure shard]
  C --> E[Coverage and root-limit guard]
  D --> E
  E --> F[CI typechecks]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests 0. Total 0 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 3 3 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 3 3 0

Review metrics

Metric Value Why it matters
Typecheck capacity Services 721 → 677; infrastructure 636 → 680; cap 720 The transfer restores 43 roots of services headroom while retaining 40 in infrastructure.

Technical review

Best possible solution:

Keep complete test coverage within the existing shard cap by redistributing roots through the shared compiler configuration.

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

Yes, from source: fetched main assigns 721 test roots to services, and the unchanged validator rejects counts above 720. The reviewer did not execute the checker.

Is this the best way to solve the issue?

Yes. Transferring identical include globs between projects with shared compiler settings repairs the partition without weakening the limit or excluding tests.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: Repairs a concrete shared CI boundary failure with a bounded configuration change and no product-runtime impact.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool 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 maintainer-authored CI-only change is exempt from external-contributor runtime proof; reported compiler checks and captured successful boundary/typecheck jobs directly cover the changed shard assignments.

Label justifications:

  • P2: Repairs a concrete shared CI boundary failure with a bounded configuration change and no product-runtime impact.
  • 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 maintainer-authored CI-only change is exempt from external-contributor runtime proof; reported compiler checks and captured successful boundary/typecheck jobs directly cover the changed shard assignments.

Evidence

What I checked:

  • Verified introduced change: The pinned merge-base-to-head diff transfers both logging test globs between projects without changing compiler settings, exclusions, or the root cap. (test/tsconfig/tsconfig.core.test.infra.json:9, e682430fe5e7)
  • Current-main inventory confirms the defect: Read-only counting of tracked test paths found 44 logging roots, 636 infrastructure roots, and 721 roots under the services include directories at both the merge base and fetched main. Moving logging yields 680 infrastructure and 677 services roots. (test/tsconfig/tsconfig.core.test.services.json:15, ef5972108dc6)
  • Existing invariant remains enforced: The unchanged shard validator retains the 720-root cap and rejects missing, duplicate, and noncanonical assignments. The boundary checker uses compiler-expanded roots; both affected projects inherit the same settings and retain separate build-info files. Existing guard tests cover these violations. (scripts/lib/tsgo-core-test-shards.mts:139, e682430fe5e7)
  • Actual merge preserves base work: The test-merge commit records fetched main followed by the exact PR head as parents; its difference from main contains only the two shard configurations. (28fc2b0c1033)
  • Release and necessity check: The services configuration on fetched main and release v2026.9.2 still assigns logging to services. No merged replacement is established by the supplied context. (test/tsconfig/tsconfig.core.test.services.json:15, 3928bad9badf)
  • Validation evidence: The complete supplied PR body reports successful boundary validation, both affected typechecks, and guard suites. The captured checks independently show check-additional-boundaries and all three test-type jobs succeeding. No tests were executed during this read-only review; diff whitespace validation passed. (e682430fe5e7)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Jesse Merhi: 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.

@vincentkoc
vincentkoc merged commit 5b09999 into main Sep 6, 2026
178 checks passed
@vincentkoc
vincentkoc deleted the steipete/fix-services-shard-root-cap branch September 6, 2026 02:56
@vincentkoc

Copy link
Copy Markdown
Member

Merged via squash.

vincentkoc added a commit to ylcn91/openclaw that referenced this pull request Sep 6, 2026
* origin/main:
  fix(ci): rebalance services test roots below the memory bound (openclaw#139645)
  fix(backup): exclude shared workspace files from state-only archives (openclaw#139598)
  fix(config): preserve plugin secret references in Settings saves (openclaw#139536)
  fix(ui): retain real-Gateway browser proof across reruns (openclaw#134274)
  fix(browser): preserve node filenames in proxy media (openclaw#139559)
  fix(qa): give hot-reload maintenance proofs their own budgets (openclaw#139580)
  fix(streaming): preserve assistant items and settled output (openclaw#139507)
  fix(android): reconnect secondary gateways after rapid lifecycle changes (openclaw#139319)
  fix(gateway): restart inside a marker-less LaunchAgent no longer kills its caller (openclaw#139628)
vincentkoc added a commit that referenced this pull request Sep 6, 2026
* commit '5b099995413589f41904cef1413c62239542aa7c':
  fix(ci): rebalance services test roots below the memory bound (#139645)
  fix(backup): exclude shared workspace files from state-only archives (#139598)
  fix(config): preserve plugin secret references in Settings saves (#139536)
  fix(ui): retain real-Gateway browser proof across reruns (#134274)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 6, 2026
…aw#139645)

The services shard exceeded the 720-root typecheck memory bound. Move src/logging test roots to infra, leaving services at 677 roots and infra at 680 while retaining exactly-once test coverage.
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. 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.

2 participants