Repository navigation
test(channels,infra,sdk): remove low-value tests (batch d016) - #158764
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated review did not run, so no review verdict was produced. Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here. ClawSweeper will not retry this unchanged revision. Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it. |
steipete
enabled auto-merge (squash)
September 26, 2026 08:40
steipete
disabled auto-merge
September 26, 2026 08:59
steipete
enabled auto-merge (squash)
September 26, 2026 09:29
steipete
disabled auto-merge
September 26, 2026 09:36
steipete
force-pushed
the
tcr/land-d016-1790399368
branch
from
September 26, 2026 10:39
bf8e449 to
e24ed59
Compare
steipete
enabled auto-merge (squash)
September 26, 2026 10:41
This was referenced Sep 26, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Sep 27, 2026
…aw#158764) * test(signal): deslop s080 tests * test(node-host): deslop s085 tests * test(imessage): deslop s084 tests * test(scripts): deslop s075 tests * test(flows): deslop s089 tests * test(slack): deslop s087 tests * test(mattermost): deslop s091 tests * test(infra): deslop s086 tests * test(plugin-sdk): deslop s090 tests * test(voice-call): deslop s092 tests * style(test): format batch d016 replay * test(mattermost): preserve retained reaction regression * test: retain independent contracts in batch d016 * test(plugin-sdk): avoid shadowed table labels * test(node-host): remove unused runtime test type
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Removes duplicate, implementation-mirroring, and assertion-free tests from ten audited campaign shards, reducing the maintenance cost of the suite while retaining distinct behavioral contracts.
User Impact
No intended user-visible behavior change. This maintainer-requested batch removes 19,232 net lines of tests/support and 664 static test declarations across Signal, node-host, iMessage, scripts, flows, Slack, Mattermost, infra, Plugin SDK, and voice-call. Production runtime code is unchanged; two script helpers become internal instead of exported.
Why This Change Was Made
Replays all ten d016 commits onto current main, retaining their messages. Fixtures and repeated cases are consolidated where their original purpose still applies. Newer main regressions, async storage/lifecycle semantics, and public/security contracts take precedence over the older cleanup. One obsolete max-lines baseline entry is removed; no baseline is enlarged.
Replay adjustments
c7b57259f116a519de7e7ec08a7298a5f779a2ce; its current implementation and rewritten tests stay intact.All ten commits were applied with compatible hunks; none was skipped in full. The first two main rebases were clean. The third required only regenerating the shrink-only max-lines baseline, preserving main’s production-entry removal and this batch’s test-entry removal. No changed path matches
.github/CODEOWNERS.Evidence
e24ed5942c998821f5b9704347a5e9d1abddb43eagainst6209f31ce9bbcdc912f4d870bb7323b8fa0920ed. All 160 focused tests plus six Doctor contract tests passed. Full changed checks again passed guards, formatting, every typecheck, and all dead-export scans. Core lint then reported a pre-existing failure outside this batch:src/state/openclaw-state-read-worker.test.tshas 1,007 counted lines against its 1,000-line limit. Its blob is identical on refreshed main (367b95cb74e7c10a0d848a5092831f8037e16c8e); the lint config and shard runner are unchanged. This file is not changed here. Rebased Testbox run. A merge dry-run with refreshed main succeeded. The required GitHub CI gate remains enforced; no complete green changed-check invocation is claimed.oxfmt --write, andgit diff --checkpassed.CI=1 pnpm install --frozen-lockfile --prefer-offline && CI=1 pnpm test <328 explicit files>passed 328 files, 8,370 tests, with 8 existing skips, in 460.91 seconds. Every selected file ran, including six canonical owner suites used in review. Testbox run, verified sourcea029127e3dfe923efae65b8fa6e06634aeb9d732.check:changedplan on that snapshot passed conflict/line/suppression/format/SDK/boundary/dependency guards, Doctor contract tests, all core/extension/script/root-test typechecks, and all three dead-export scans. Core lint found two cleanup leftovers: a nested unused callback name inssrf-policy.test.tsand an unused type-only import innode-host/runtime.test.ts. Both are corrected. These are the only changes after the 8,370-test snapshot; fresh independent reviews of both corrections were clean through P2.check-lint-core-2. The import is now removed, and the new push creates a fresh merge-ref CI run.The Testbox wrapper's exit/results are the command evidence; its backing Actions run can show cancelled after external lease cleanup. Required PR CI is a separate published-head gate.
Independent review disposition
Two full-diff reviews identified 31 potential coverage gaps. Fifteen were accepted: the affected reductions were dropped, restoring authorization, direction-repair, stream-error, dedupe, CLI-output, package-layout, bounded-body, setup-runtime, and Node-policy contracts. Slack private-channel/DM file fixtures also explicitly remove the default public-channel metadata so each case proves its intended branch. A fresh review of these corrections found no actionable P0–P2 findings.
Sixteen findings were rejected after checking these retained contracts and their owners:
src/infra/archive.test.ts, including both folder modes and symlink traversal; Signal delegates directly to that owner and retains its own extraction-limit tests.success:false, mixed group outcomes, and receipts remain covered through a real HTTP server insend.test.ts.runtime.realtime-routing.test.tsexercises separate sales/support WebSocket calls, lazy startup, and per-agent provider credentials.facade-loader.test.tsretains the failed-load-twice cache-eviction regression on the shared loader owner.Historical coverage below has explicit exclusions and gaps. In particular, iMessage and voice-call do not have a valid passing before/after coverage comparison; their zero totals must not be read as unchanged coverage. Fresh focused tests verify the rebased tests, not equivalence of coverage.
Shard details
Metrics compare base
6209f31ce9bbcdc912f4d870bb7323b8fa0920edwith heade24ed5942c998821f5b9704347a5e9d1abddb43e. File counts include tests, support, tooling, and config; LOC columns below combine tests and test support only. Static declaration counts use ASTit/testcall sites, including parameterized declarations, rather than expanded test cases.Split: tests +6,126/−24,893 (net −18,767); support +31/−496 (net −465); production 0/0; tooling +2/−2 (net 0); config 0/−1. Tooling removes two unused export modifiers. No final changed path matches the current CODEOWNERS rules.
Two full-diff review rounds produced 31 findings: 15 accepted and fixed, and 16 rejected with concrete remaining owner or sibling proof.
The following coverage totals are historical in-shard campaign evidence, not fresh coverage measurements of the rebased batch. Excluded groups and incomplete original gates are disclosed explicitly.
covered statements 3381 -> 3391 (10); branches 2758 -> 2769 (11); functions 664 -> 667 (3)covered statements 934 -> 934 (0); branches 902 -> 902 (0); functions 162 -> 162 (0)covered statements 0 -> 0 (0); branches 0 -> 0 (0); functions 0 -> 0 (0)covered statements 840 -> 840 (0); branches 557 -> 557 (0); functions 152 -> 152 (0)covered statements 2200 -> 2197 (-3); branches 1445 -> 1445 (0); functions 457 -> 456 (-1)covered statements 7764 -> 7763 (-1); branches 6843 -> 6841 (-2); functions 1448 -> 1447 (-1)covered statements 2938 -> 2938 (0); branches 2198 -> 2198 (0); functions 521 -> 521 (0)covered statements 20119 -> 20120 (1); branches 14366 -> 14363 (-3); functions 3729 -> 3727 (-2)covered statements 2341 -> 2331 (-10); branches 1839 -> 1834 (-5); functions 631 -> 629 (-2)covered statements 0 -> 0 (0); branches 0 -> 0 (0); functions 0 -> 0 (0)s080 (signal): 29 replayed files
s085 (node-host): 21 replayed files
s084 (imessage): 32 replayed files
s075 (scripts): 22 replayed files
s089 (flows): 11 replayed files
s087 (slack): 54 replayed files
s091 (mattermost): 17 replayed files
s086 (infra): 59 replayed files
s090 (plugin-sdk): 44 replayed files
s092 (voice-call): 37 replayed files