Repository navigation
test(protocol,workboard,channels,memory,ai): remove low-value tests (batch d066) - #159648
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: needs maintainer review before merge. Reviewed September 27, 2026, 9:41 AM ET / 13:41 UTC (Revision 3). ClawSweeper reviewWhat this changesThe branch consolidates and removes tests across Gateway protocol, AI transport, Signal and Zalo channels, Workboard, and memory storage without changing production code. Merge readiness✅ Ready for maintainer review The corrected head resolves the prior migration-coverage finding, and the inspected retained tests support the cleanup. Current main and the latest release still contain the cases this PR proposes to consolidate, so the work remains useful. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s test suites take production code and fixtures as inputs and check protocol, channel, Workboard, and memory behavior. CI uses their results to detect regressions before a change lands. flowchart LR
A[Code and fixtures] --> B[Test suites]
B --> C[Protocol and AI checks]
B --> D[Channel checks]
B --> E[Workboard checks]
B --> F[Memory checks]
C --> G[CI result]
D --> G
E --> G
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -489. Total -489 across 22 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep one strong test for each distinct owner-boundary behavior, including the restored migration refusal cases and cancellation checks. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR audits test coverage rather than reporting a runtime bug. The introduced diff and retained cases can be inspected directly. Is this the best way to solve the issue? Yes: the inspected reductions consolidate shared fixtures and overlapping cases while retaining the reviewed migration, channel, and theme boundaries. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e8b091921ef0. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
…batch d066) (openclaw#159648) * test(protocol): deslop s572 tests * test(workboard): deslop s556 tests * test(ai): deslop s565 tests * test(zalouser): deslop s562 tests * test(signal): deslop s537 tests * test(workboard): deslop s558 tests * test(memory): deslop s575 tests * test(protocol): deslop s571 tests * test(zalo): deslop s561 tests * test(workboard): deslop s559 tests * test: preserve migration coverage and bound Signal fixture
Full Release Validation for 2026.9.7 (parent 36466521174) failed two release-tooling checks that main never exercises: - The installed-package verifier applied the 6 MiB root-dist cap to dist/package-update-activation-recovery.mjs, the ~66 MB sealed self-contained recovery helper added by #158491. Treat it like the other self-contained bundles (80 MiB cap, no reparse), as #155877 did for the sqlite-store worker. Every main-based FRV since #158491 failed here. - plugin-npm-security-scan had no reviewed inventory for release/2026.9.7. Freeze the 9.6 counts, record four post-9.6 test-file-only findings (codex auth-refresh harness spawn, feishu proxy env test, imessage client test #156334, signal socket probe count after #159648) in the current inventory, and map release/2026.9.7 to it, as #153372 did for 9.6.
#160717) fix(release): admit 2026.9.7 recovery helper and plugin scan inventory Full Release Validation for 2026.9.7 (parent 36466521174) failed two release-tooling checks that main never exercises: - The installed-package verifier applied the 6 MiB root-dist cap to dist/package-update-activation-recovery.mjs, the ~66 MB sealed self-contained recovery helper added by #158491. Treat it like the other self-contained bundles (80 MiB cap, no reparse), as #155877 did for the sqlite-store worker. Every main-based FRV since #158491 failed here. - plugin-npm-security-scan had no reviewed inventory for release/2026.9.7. Freeze the 9.6 counts, record four post-9.6 test-file-only findings (codex auth-refresh harness spawn, feishu proxy env test, imessage client test #156334, signal socket probe count after #159648) in the current inventory, and map release/2026.9.7 to it, as #153372 did for 9.6.
openclaw#160717) fix(release): admit 2026.9.7 recovery helper and plugin scan inventory Full Release Validation for 2026.9.7 (parent 36466521174) failed two release-tooling checks that main never exercises: - The installed-package verifier applied the 6 MiB root-dist cap to dist/package-update-activation-recovery.mjs, the ~66 MB sealed self-contained recovery helper added by openclaw#158491. Treat it like the other self-contained bundles (80 MiB cap, no reparse), as openclaw#155877 did for the sqlite-store worker. Every main-based FRV since openclaw#158491 failed here. - plugin-npm-security-scan had no reviewed inventory for release/2026.9.7. Freeze the 9.6 counts, record four post-9.6 test-file-only findings (codex auth-refresh harness spawn, feishu proxy env test, imessage client test openclaw#156334, signal socket probe count after openclaw#159648) in the current inventory, and map release/2026.9.7 to it, as openclaw#153372 did for 9.6.
What Problem This Solves
The test suite repeats equivalent cases and fixture setup across protocol, AI, channel, memory, and Workboard tests, adding maintenance cost without distinct behavioral proof.
User Impact
No user-visible behavior changes. Batch d066 changes 22 test files: +788/-1,277 test LOC (net -489), with 0 production or test-support-file LOC changed. Existing boundary, lifecycle, cancellation, migration, and security regressions remain covered.
Why This Change Was Made
Replay ten previously validated test-audit shards onto current main. Consolidate fixtures and cleanup, remove redundant table rows and weaker duplicate assertions, and retain the stronger owner-boundary cases. All ten commits applied in their original order with their original messages. Replay was conflict-free and no source commit was skipped. Landing review restored three memory cases: two legacy embedding-cache migration safety rows and the modern-schema/no-content-revision corpus combination. CI also exposed an unchanged WebSocket test peer without maxPayload; the fixture now uses the Signal client’s existing 1 MiB limit. No baselines, production seams, runtime behavior, dependencies, or generated files changed.
Base:
624b66f24f3774f28d775f87c3e3a604ede2413e. No changed path matches the current CODEOWNERS rules.Evidence
Fresh replay validation passed on head
aa491b93c9c299ca86904bf1dead9b8babc3c3d3:pnpm install --frozen-lockfile --prefer-offline,oxfmt --write <22 changed files>, plainoxlint -c .oxlintrc.json <22 changed files>(exit 0), andgit diff --check: passed.CI=1 pnpm install --frozen-lockfile --prefer-offline >/dev/null && CI=1 pnpm test <all 22 changed files>: all 8 selected Vitest shards passed in 100.99s; 3 existing macOS-only Signal ACL cases skipped on Linux. Exact source/tree verified by Crabbox. Leasetbx_01m3ha9g6vhw7tpf3x15y9evad, run, stopped/completed.OPENCLAW_TESTBOX=1 node scripts/check-changed.mjs -- <all 22 changed paths>: passed, including all 25 core test typecheck partitions, extension test typechecking, type-aware lint, and repository guards. Remote command exit 0 in 24m19.964s. Leasetbx_01m3hccvafz4eyxy6fcxa67d2j, run, stopped/completed.Corrected head
df7cf4208f788f57bf68c9a0ef5c7d9c28ebcb38was revalidated on Blacksmith Testbox: all 22 touched files passed (279 tests passed, 3 existing platform skips; 8 shards in 100.47s), and checksum-verified OpenGrep 1.30.0 ran the repository precise rulepack over all 22 files with 0 findings. OpenGrep reported partial analysis of two files; that scanner limitation is not represented as complete analysis. The previously failing WebSocket fixture now has an explicit payload bound. Leasetbx_01m3hgtc9p8qcgxh08xdr4qvr2, run, stopped/completed, command exit 0. Final autoreview of the exact staged candidate was scoped-clean through P2, with no accepted/actionable findings.The wrapper reported a non-fatal external runner portal sync timeout after successful proof; it did not prevent any validation from running. Testbox lifecycle cleanup can leave the linked Actions run marked cancelled; the delegated command summaries both report exit 0.
Independent autoreview identified two accepted coverage concerns, now repaired by restoring the legacy cache migration rows and the mixed corpus configuration. Two findings were rejected against retained proof: exact generic RPC error-redaction assertions remain in
client-unix.test.ts, and a real-TCP pending-handshake abort/reconnect test remains inclient-container.handshake.loopback.test.ts.Initial hosted CI found the pre-existing unbounded WebSocket test peer; this candidate adds the 1 MiB fixture limit described above. Separately, checks-ui (1/3) failed the palette fixture readiness wait in
ui/src/pages/new-session/palette-session-draft.test.tsafter 1,041 ms, with 8,049 tests passing. Neither changed Workboard UI test executes in that shard; the palette test, its owners, and runner configuration are unchanged. No relevant main fix or plain-main reproduction was found, and no repair of that readiness failure is claimed. The corrected head receives fresh hosted CI; the old run was not rerun.GitHub's required
openclaw/ci-gategates the pinned-head squash merge.Per-shard reductions and original in-shard coverage evidence
The reduction table reflects the final landing candidate, including three restored cases in s575. Coverage totals below come from each shard's original before/after report before those restorations, not a new aggregate coverage run. Owners overlap, so coverage totals must not be summed. All shard statement/branch losses are within the 1% limit. Declaration counts refer to syntactic
it/testsites in changed files; executed case counts include table expansion and each shard's full test scope.packages/gateway-protocol/src/schema/runtime-vitals.test.tsextensions/workboard/browser/components/toast.test.tspackages/ai/src/anthropic-opus-55-transport-parity.test.tsextensions/zalouser/src/send.handoff.test.tsextensions/signal/src/{account-selection,client-container.handshake.loopback,client-container.websocket,client-unix,reply-authors,socket-path}.test.tsextensions/workboard/browser/pages/workboard/workboard-page-automation.test.tspackages/memory-host-sdk/src/host/{memory-schema-provenance,memory-schema-storage-migration,search-deadline-control,session-transcript-corpus}.test.tspackages/gateway-protocol/src/{sessions-search,theme}.test.tsextensions/zalo/src/channel.send-handoff.test.tsextensions/workboard/src/{lifecycle-sync.service,sqlite-store.lifecycle,store-subscription-scope,store.scoped-list}.test.tsThe two nonzero losses are s565 (statements 0.08%, branches 0.94%) and s559 (statements 0.07%, branches 0.36%). The shard reports retain three pre-existing macOS-only Signal ACL skips on Linux. No coverage groups were excluded.