Skip to content

fix(test): restore services typecheck shard headroom - #148889

Merged
steipete merged 1 commit into
mainfrom
codex/gateway-perf7-ci-rebalance
Sep 15, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/gateway-perf7-ci-rebalance

Conversation

@steipete

@steipete steipete commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Post-merge correction: #148885 moved these tests to agents-tools before this PR landed. As a result, the actual merge c84c67002fa552e057f45e22ef9efbb89ff2d979 added only two redundant state/logging includes, producing duplicate ownership. The tested branch evidence below predates that overlap. #148826 removed those exact two includes and merged as 0cd944c01416c4f9c1f6dc9d1dea9670c5b99cab; #148885 remains the intended secrets assignment. The actual landed source and full census were verified: 10,603 roots assigned exactly once across 19 groups, maximum 693 roots, and zero violations.

What Problem This Solves

The services typecheck shard has 702 test roots, so its 700-root headroom guard fails unrelated PRs. Two independently tested shard moves combined on main: the heartbeat move in #148861 and update-family move in #148843, plus one new process test. Their combined partition exceeded the limit.

User Impact

Restore CI headroom while keeping every test root assigned exactly once. This changes no product behavior, test coverage, runner count, concurrency, or limits.

Why This Change Was Made

Move the complete secrets test family from services into the existing state/logging shard. Services drops from 702 to 619 roots; state/logging grows from 454 to 537. Both keep room below the existing guard.

Evidence

  • Reproduced the original services 702-root guard failure on current main 7713bc6231ccfa37f65d7261a88e1dfb7616932b.
  • Full repository census preserves all 10,601 test roots exactly once; only the 83 secrets roots change shards.
  • All 24 partition-owner tests passed after the change. Both affected compiler groups passed through the native wrappers.
  • git diff --check passed. The formatter excludes these tsconfig files; their existing JSON style is retained.
  • Fresh independent review was clean through P2.

The failing timestamp PR job demonstrating the combined-main failure is checks-node-compact-small-30.

@clawsweeper

clawsweeper Bot commented Sep 15, 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 15, 2026 07:52
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Sep 15, 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 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 3:57 AM ET / 07:57 UTC.

ClawSweeper review

What this changes

Moves secrets tests from the services typecheck shard to the existing state/logging shard, restoring room below the test-root limit.

Merge readiness

✅ Ready for maintainer review

Keep open: current main still needs this focused rebalance, and the patch preserves coverage and existing limits. No actionable correctness findings.

Priority: P2
Reviewed head: 234fb61a5d4c5aa3f7276af6a862e5b0bee1357c

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, maintainable rebalance with corroborated root counts, existing regression coverage, and no identified correctness defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The external-contributor proof gate does not apply to this member-authored infrastructure PR; its body reports both affected compiler groups passing, and source inspection confirms the preserved validation contract.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor proof gate does not apply to this member-authored infrastructure PR; its body reports both affected compiler groups passing, and source inspection confirms the preserved validation contract.
Evidence reviewed 6 items Introduced change: The pinned introduction diff moves both secrets test globs together between configurations sharing the same parent. Compiler options, cache identities, assertions, and limits are unchanged.
Independent read-only file census: Filesystem glob enumeration found 619 services roots, 537 state/logging roots, and 83 secrets roots; the two groups have no overlapping roots and all secrets roots belong to the destination. This corroborates the reported 702-to-619 services reduction without executing repository code.
Existing regression contract: The existing repository-wide test expands compiler configurations and requires every canonical test root exactly once with a 700-root ceiling. The shared runner retains the 720-root hard cap and registers both affected groups.
Findings None None.
Security None None.

How this fits together

OpenClaw splits test files into compiler groups to bound typechecking work. These configurations assign files to groups that the validation runner checks for coverage and type errors.

flowchart LR
  A[Test source files] --> B[Shard configurations]
  B --> C[Services group]
  B --> D[State and logging group]
  C --> E[Coverage and root-budget checks]
  D --> E
  E --> F[Typechecking results]
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
Remaining shard headroom Services: 81 roots; state/logging: 163 roots Both affected groups fit below the unchanged 700-root guard after moving the 83-root family.

Technical review

Best possible solution:

Keep the existing shard runner and coverage guards, with the complete secrets test family assigned to the roomier state/logging group.

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

Yes, from source: the existing guard rejects more than 700 roots, and restoring the 83 moved roots to the independently counted 619 services roots yields 702. The guard was not executed during this review.

Is this the best way to solve the issue?

Yes. Moving a complete test family between existing, identically configured groups is a narrow repair that preserves coverage, compiler settings, and limits.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: A bounded validation-infrastructure repair restores the existing partition contract without changing product behavior.
  • 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 external-contributor proof gate does not apply to this member-authored infrastructure PR; its body reports both affected compiler groups passing, and source inspection confirms the preserved validation contract.

Label justifications:

  • P2: A bounded validation-infrastructure repair restores the existing partition contract without changing product 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 external-contributor proof gate does not apply to this member-authored infrastructure PR; its body reports both affected compiler groups passing, and source inspection confirms the preserved validation contract.

Evidence

What I checked:

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.

@vincentkoc

Copy link
Copy Markdown
Member

These are alternative repairs for the same services-root overflow: #148885 at ca1fef45226740d3f7523b48d4a4ee8c0f1cd472 moves the secrets test patterns to agents-tools, while #148889 at 234fb61a5d4c5aa3f7276af6a862e5b0bee1357c moves them to state-logging.

Both remove the same ../../src/secrets/**/*.test.ts and ../../src/secrets/**/*.test.tsx patterns from services. Combining the destination additions would assign these roots to two groups and violate the exact-once guard. Please choose one canonical repair/destination rather than combining them.

@steipete
steipete merged commit c84c670 into main Sep 15, 2026
173 checks passed
@steipete
steipete deleted the codex/gateway-perf7-ci-rebalance branch September 15, 2026 08:12
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 15, 2026
* commit '0cd944c01416c4f9c1f6dc9d1dea9670c5b99cab':
  improve: speed up session search for restricted operators (#148826)
  fix(update): avoid retry guidance for historical abandoned runs (#146982)
  fix(android): reduce queued-message send overhead (#148899)
  refactor(slack): count table cells only for native output (#148872)
  fix: correct update status and apply saved model keys (#148830)
  refactor(nostr): share doctor state migration flow (#148647)
  refactor(gateway): centralize device token denial responses (#148644)
  test: make kitchen sink assertions runtime portable (#148891)
  refactor(agents): share preferred block chunk boundaries (#148391)
  fix(ui): use the selected timezone for Usage date shortcuts (#148277)
  test: probe active Node in release preflight (#148892)
  fix(test): restore services typecheck shard headroom (#148889)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 16, 2026
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