Repository navigation
fix(ci): preserve scoped extension test plans - #123534
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 14, 2026, 3:03 AM ET / 07:03 UTC. ClawSweeper reviewWhat this changesThe PR preserves CI-provided extension test scopes so Telegram and Matrix shards do not expand into complete extension suites. Regression provenancePossible regression — probable (reviewed change; known regression link). No predecessor PR is attributed. Merge readinessKeep 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 Review scores
Verification
How this fits togetherOpenClaw’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
Before merge
Agent review detailsSecurityNone. PR surfaceTests +21, Other +8. Total +29 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
aa7fecc to
b892667
Compare
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]>
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.tsand exited 143.Root cause
createBoundedExtensionPlanstreated an explicit config as broad even whenOPENCLAW_VITEST_INCLUDE_FILEalready 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
1plan; broad Telegram42plans.git diff --check,pnpm tsgo:scripts, andpnpm tsgo:test:root: passed.checks-fast-ci-routingandci-gate.