Skip to content

fix(ci): preserve scoped extension test plans - #123534

Merged
obviyus merged 1 commit into
mainfrom
fix/ci-preserve-extension-shard-targets
Aug 14, 2026
Merged

obviyus merged 1 commit into
mainfrom
fix/ci-preserve-extension-shard-targets

Conversation

@obviyus

@obviyus obviyus commented Aug 14, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

#123514 bounded full Telegram Vitest processes, but its planner expansion also replaced each already-scoped CI shard with the entire Telegram suite. Run 31776262200 proved the result: jobs 5/6/7/8/9/12/16 each repeated the same 14 chunks, then stalled twice after bot-native-command-login.test.ts and exited 143.

Root cause

createBoundedExtensionPlans treated an explicit config as broad even when OPENCLAW_VITEST_INCLUDE_FILE already owned the five-file CI scope. Directory targets could also generate a replacement include file downstream.

Fix

Preserve the authoritative external include scope across config, full-extension, and directory planner routes. Continue chunking genuinely broad Telegram and Matrix runs. No provider runtime behavior changes.

Production delta: +11 net script-support lines. Test delta: +53 lines. The production growth carries the existing injected environment contract through all three shared bounded-extension routes and clears generated directory patterns before run-spec creation.

Proof

  • Owner-boundary regression before fix: expected one scoped plan; received 42 full Telegram plans.
  • Focused suite after fix: 269/269 passed, including Telegram and Matrix config plus directory run-spec coverage.
  • Planner probe: scoped Telegram 1 plan; broad Telegram 42 plans.
  • Oxfmt, type-aware Oxlint, git diff --check, pnpm tsgo:scripts, and pnpm tsgo:test:root: passed.
  • Distill: no findings.
  • Greybeard: no findings; restores 42 processes/210 files instead of 1,764 processes/8,820 repeated files.
  • First exact-head ClawSweeper finding addressed: preserve the external include file for directory targets and cover the run-spec boundary.
  • Exact-head CI run 31778619351: passed, including checks-fast-ci-routing and ci-gate.

@clawsweeper

clawsweeper Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S maintainer Maintainer-authored PR labels Aug 14, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. 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 Aug 14, 2026
@clawsweeper

clawsweeper Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 14, 2026, 3:03 AM ET / 07:03 UTC.

ClawSweeper review

What this changes

The PR preserves CI-provided extension test scopes so Telegram and Matrix shards do not expand into complete extension suites.

Regression provenance

Possible regression — probable (reviewed change; known regression link). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open. This is a focused owner-boundary repair for the preceding bounded-extension planner change; no blocking patch defect found, but exact-head CI should complete before merge.

Priority: P2
Reviewed head: aa7feccacbb7e92d57751f9b2b693920ba8b2a8b

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A clean, focused repair with relevant regression coverage; exact-head CI remains the merge gate.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-labeled internal CI repair includes focused after-fix planner and suite evidence; the external-contributor proof gate does not apply.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-labeled internal CI repair includes focused after-fix planner and suite evidence; the external-contributor proof gate does not apply.
Evidence reviewed 5 items Current-main failure path: The current planner splits every bounded extension config based only on watch mode and configured roots, so it cannot retain an inherited CI include-file scope.
Production caller contract: The production spec builder passes its base environment to buildVitestRunPlans, so the PR guard evaluates the same environment later supplied to Vitest.
Scoped-config contract: Both extension config families read OPENCLAW_VITEST_INCLUDE_FILE as their effective include list, establishing that the file owns the selected test scope.
Findings None None.
Security None None.

How this fits together

OpenClaw’s test-plan script converts requested Vitest configs and directories into test processes. CI can provide an include-file scope, which the planner must preserve while still splitting genuinely broad Telegram and Matrix suites.

flowchart LR
  A[CI shard] --> B[Include-file scope]
  C[Vitest config or directory] --> D[Test-plan builder]
  B --> D
  D --> E{Already externally scoped?}
  E -->|Yes| F[One scoped test plan]
  E -->|No| G[Bounded extension chunks]
  F --> H[Vitest processes]
  G --> H
Loading

Before merge

  • Resolve merge risk (P1) - The test-planning support code grows by 8 net lines and changes CI routing whenever an include file is present; exact-head CI should confirm that scoped plans remain single-process while broad plans remain chunked.
  • Complete next step (P2) - No repair lane is needed; the maintainer-labeled PR needs normal exact-head CI completion.
Agent review details

Security

None.

PR surface

Tests +21, Other +8. Total +29 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 21 0 +21
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 23 15 +8
Total 2 44 15 +29

Review metrics

Metric Value Why it matters
Test-support versus test LOC test support +8 net (23 added, 15 removed); tests +21 The production-side growth carries the existing CI scope through three planner routes, while the added tests cover both bounded extension configs.

Merge-risk options

Maintainer options:

  1. Verify scoped and broad CI routing (recommended)
    Wait for exact-head CI to confirm scoped include-file runs stay single-plan while ordinary Telegram and Matrix runs retain bounded chunks.

Technical review

Best possible solution:

Keep the environment-aware guard at the shared planner boundary, retain the Telegram/Matrix regression cases, and merge after exact-head CI confirms both scoped and broad routing.

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

Yes. Current main’s bounded-extension planner expands a Telegram or Matrix config without considering the include-file environment that the production spec builder passes through.

Is this the best way to solve the issue?

Yes. The shared planner owns the split decision; passing its existing environment through all three entry routes avoids a CI-only workaround while preserving broad-suite chunking.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 2ef92d0bbe9f.

Labels

Label changes:

  • add P2: This is a bounded CI planner regression with no runtime product behavior change.
  • add merge-risk: 🚨 automation: The patch intentionally changes how CI expands scoped extension test plans, so incorrect scope propagation could affect CI execution.
  • 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: This maintainer-labeled internal CI repair includes focused after-fix planner and suite evidence; the external-contributor proof gate does not apply.

Label justifications:

  • P2: This is a bounded CI planner regression with no runtime product behavior change.
  • merge-risk: 🚨 automation: The patch intentionally changes how CI expands scoped extension test plans, so incorrect scope propagation could affect CI execution.
  • 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: This maintainer-labeled internal CI repair includes focused after-fix planner and suite evidence; the external-contributor proof gate does not apply.

Evidence

What I checked:

Likely related people:

  • obviyus: This person authored the preceding merged bounded-extension planner repair and the present focused follow-up. (role: introduced adjacent bounded-planner behavior; confidence: high; commits: 14882ac44dcd; files: scripts/test-projects.test-support.mts, test/scripts/test-projects.test.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Allow the in-progress exact-head CI checks to finish before merging.

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.

@obviyus
obviyus force-pushed the fix/ci-preserve-extension-shard-targets branch from aa7fecc to b892667 Compare August 14, 2026 07:05
@obviyus
obviyus merged commit d4ee874 into main Aug 14, 2026
74 of 76 checks passed
@obviyus
obviyus deleted the fix/ci-preserve-extension-shard-targets branch August 14, 2026 07:13
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 15, 2026
Preserve externally scoped Telegram and Matrix test plans instead of expanding each CI shard back into the full extension suite. Keep broad runs bounded and retain external include ownership through directory run specs.

Co-authored-by: Ayaan Zaidi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. 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