Repository navigation
test(agents,cli,gateway,plugins): remove low-value tests (batch d209) - #165336
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed October 5, 2026, 12:48 AM ET / 04:48 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch consolidates agent, CLI, Gateway, Telegram, and Workboard tests, removes redundant cases and private fixtures, and trims test inventories. Merge readiness⛔ Blocked before merge - 2 items remain Keep open as useful, maintainer-authorized cleanup. No concrete introduced correctness or security defect was found, and current main still contains tests this branch consolidates. The failing lint annotations concern unchanged files. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s test suites exercise agent execution, administrative commands, Gateway requests, and plugin behavior. CI selects these suites from changed paths and reports their assertions as validation results. flowchart LR
A[Source changes] --> B[CI test selection]
B --> C[Agent and CLI suites]
B --> D[Gateway and plugin suites]
C --> E[Shared test fixtures]
D --> E
E --> F[Boundary assertions]
F --> G[Validation results]
Before merge
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep meaningful regression coverage at its existing owner boundaries while reducing duplicate fixtures and maintenance cost. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR proposes test consolidation rather than a product-bug fix; the introduced scope is source-verifiable. Is this the best way to solve the issue? Yes: consolidation into existing test owners is consistent with repository guidance, and inspection found no concrete introduced failure. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9ce649703698. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
The first CI run found an unused The separate remote Proof: Testbox run 37266484130, lease Updated final diff: production +0/−0; test files +3,615/−14,022; test support +125/−31; routing/ratchets +0/−11. Net −10,324 lines. |
…openclaw#165336) * test(cli): deslop w0027 tests * test(telegram): deslop w0026 tests * test(agents): deslop w0022 tests * test(workboard): deslop w0028 tests * test(agents): deslop w0029 tests * test(gateway): deslop w0031 tests * test(agents): deslop w0030 tests * test(gateway): deslop w0035 tests * test(agents): deslop w0038 tests * test(agents): deslop w0032 tests * test(agents): remove stale delivery line-cap suppression * test: prune retired delivery line-cap baseline
What Problem This Solves
This maintainer-authorized test cleanup removes duplicate, implementation-coupled, and assertion-free coverage from the CLI, Telegram, Workboard, agent, and Gateway suites.
User Impact
No user-visible behavior changes. Production code is unchanged. The remaining suites retain the owner-boundary regressions while reducing repeated test setup and maintenance.
Why This Change Was Made
Batch d209 replays ten validated campaign shards onto current main. It consolidates overlapping cases into their existing owners, removes obsolete private test helpers and routing entries, and shrinks the mock-export baseline by four entries.
All ten requested commits applied. Replay and the refresh onto main completed without content conflicts; no hunks or commits were dropped. The transient rerere lock was reconciled against the source patches before continuing. No changed path matches the current CODEOWNERS rules.
Evidence
tbx_01m454c39221ahbrka7g411jmgremained queued for approximately 15 minutes without a runner. No focused test executed; the attempt was cancelled and the lease stopped. The 75-file focused suite is being attempted on the authorized AWS fallback, and the changed-file gate has been submitted through the repository's Testbox router. Neither is claimed as a pass here. AWS quota pressure selected a smaller fallback host.openclaw/ci-gateremains the merge gate. No executed test failure is being waived.Final diff accounting: production +0/−0; test files +3,615/−14,021; test support +125/−31; routing inventories and ratchet +0/−10. Total +3,740/−14,062, net −10,322 lines across 104 paths.
Per-shard files, declaration/LOC deltas, and historical coverage
Source-campaign shard evidence
These measurements come from the historical source-campaign shard reports. They are not coverage reruns of this rebased batch. All ten source commits contain test, test-support, routing-inventory, or shrink-only ratchet changes; none changes production code. The historical shard totals are 1,581 → 1,221 test declarations (−360) and 70,337 → 59,934 test LOC (−10,403). The final batch diff and current validation are reported separately.
w0027 — CLI
Exact source-commit paths:
Historical aggregate coverage:
w0026 — Telegram
Exact source-commit paths:
Historical aggregate coverage:
w0022 — Agent tools
Exact source-commit paths:
Historical aggregate coverage:
w0028 — Workboard
Exact source-commit paths:
Historical aggregate coverage:
w0029 — Agent CLI runner
Exact source-commit paths:
Historical aggregate coverage:
Accounting caveat: the historical report records −461 test LOC; the selected source commit records +212/−675 test lines (net −463), plus one routing-inventory deletion. The historical coverage comparison used a baseline with a separately committed async mock-factory repair; that repair is not part of this batch's selected source commit.
w0031 — Gateway methods
Exact source-commit paths:
Historical aggregate coverage:
w0030 — Agent creation, bootstrap, and compaction
Exact source-commit paths:
Historical aggregate coverage:
Historical gate gap: all 135 tests, aggregate coverage, 27 typecheck graphs, dead-export scans, formatting, and plain lint passed. Remote core lint was cancelled; the fresh retry failed during synchronization before execution. The source report therefore does not claim a completed final
check-changedgate.w0035 — Gateway identity, subscriptions, and policy
Exact source-commit paths:
Historical aggregate coverage, quoted from the report:
w0038 — Agent side questions, authentication, and transport
Exact source-commit paths:
Historical aggregate coverage:
The historical −1,108 shard test LOC excludes the additional deleted routing assertion and 23 deleted test-support lines.
w0032 — Agent command execution, delivery, and sessions
Exact source-commit paths:
Historical aggregate coverage before the final fixture extraction:
All 213 remote tests and this coverage comparison passed before fixture extraction. The original changed-file gate rejected CLI test-file growth; setup/assertions were then extracted into existing private test support without raising a cap or baseline. After extraction, the local CLI suite passed 77/77, but the corrected remote
check-changedgate and aggregate coverage refresh never started because two Testbox leases remained queued. The source report therefore does not claim coverage or a completed changed-file gate for the final extracted fixture. Including both changed support files, historical LOC is 7,844 → 7,033 (−811); the mock-export baseline shrinks by four entries.Across the shards, some per-case profiling attempts could not normalize transformed sources or nested project configurations. Those files used source/history and owner-test review; each reported aggregate comparison included all its test projects. Preserved cases include authority boundaries, lifecycle interleavings, and documented regressions, even where this left declaration reduction below the campaign target.