Repository navigation
test(gateway,plugins,channels): remove low-value tests (batch d449) - #180485
Conversation
Keep creator provenance checks; delegate generic rollback and maintenance gates to the migration-owner suites. Drop the manual node:sqlite backup replay. Retain custom publication identity through credential-authority integration coverage and parameterize pending/completed onboarding resets.
|
🦞👀 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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 22be2a96f6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| }); | ||
| }, | ||
| ); | ||
| it("finalizes a failed resize before reporting the backend error", async () => { |
There was a problem hiding this comment.
Restore backend-reported exit error coverage
When a relay backend reports an error through onExit, this replacement no longer verifies that TerminalSessionManager removes the session and emits terminal.exit with reason: "error" and the original message. The former relay row exercised that callback, whereas node-relay.test.ts:326-358 only proves the relay produces it and the surviving process-exit test covers only { exitCode: 0 }; the resize exception here enters a different manager method. A regression in the manager's backend-error callback branch can therefore pass all remaining tests.
Useful? React with 👍 / 👎.
|
Codex review: needs changes before merge. What this changesThis PR consolidates test fixtures and removes overlapping assertions across Gateway, plugins, channels, state, and memory tests. Example: A terminal backend reports ROUTE_CHANGED through its exit callback.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 6 items remain Keep this maintainer-authored PR open: the cleanup is worthwhile, but three deletions remove distinct regression contracts. Priority: P3 Before merge
Findings
Provenance
Agent review detailsHow this fits togetherThese suites exercise OpenClaw’s Gateway and plugin owners using synthetic transport inputs, temporary state, and shared fixtures, producing assertions consumed by CI. flowchart LR
A[Test scenarios] --> B[Shared fixtures]
B --> C[Gateway owners]
B --> D[Channel and plugin owners]
B --> E[State and memory owners]
C --> F[Contract assertions]
D --> F
E --> F
Technical reviewBest possible solution: Retain the fixture consolidation while restoring the backend-error, failed hot-reload, and remote hybrid-ranking contracts in their existing owner suites. Do we have a high-confidence way to reproduce the issue? This PR reports no runtime bug; the coverage losses are established by comparing removed scenarios, surviving tests, and their production owners without executing target code. Is this the best way to solve the issue? Shared fixtures and owner-suite consolidation are appropriate, but replacing distinct callback, reload-settlement, and ranking-composition contracts with adjacent tests weakens the stated preservation invariant. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e39433dfdab3. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceTests -2089. Total -2089 across 51 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 22, 2026, 5:45 AM ET / 09:45 UTC. |
…penclaw#180485) * test(mattermost): deslop y0601 tests * test(gateway): deslop y0604 tests * test(gateway): consolidate y0604 fixtures * test(gateway): merge y0604 voice lifecycle suites * test(plugins): deslop y0607 tests * test(plugins): consolidate y0607 fixture scaffolding * test(plugins): consolidate y0607 tables and fixtures * test(tlon): deslop y0606 tests * test(state): deslop y0609 tests * test(state): consolidate y0609 fixture and observation setup * test(state): deduplicate migration and publication contracts Keep creator provenance checks; delegate generic rollback and maintenance gates to the migration-owner suites. Drop the manual node:sqlite backup replay. Retain custom publication identity through credential-authority integration coverage and parameterize pending/completed onboarding resets. * test(terminal): deslop y0611 tests * test(terminal): consolidate y0611 fixtures and overlap * test(terminal): remove duplicate y0611 boundary checks * test(memory): deslop y0614 tests * test(memory): consolidate y0614 embedding and ranking coverage * test(channels): deslop y0612 tests * test(channels): consolidate y0612 contract helper family * test(whatsapp): deslop y0613 tests * test(whatsapp): consolidate y0613 inbound family * test: retain distinct delivery and migration coverage * test: preserve fixture types in cleanup consolidation
What Problem This Solves
Redundant assertions and repeated fixtures make these test families harder to maintain and run.
User Impact
No user-visible runtime change. This batch consolidates test fixtures and overlapping proof while preserving current-main behavior. No runtime production code or public API changes.
Why This Change Was Made
Replay the bounded d449 cleanup batch onto pinned main
6a53d6fc6e424182d1b4510c03e1072b8eb62167. Keep current-main regressions and lifecycle fixes when the older campaign scaffolding conflicts. Gateway voice and terminal lifecycle cases now share their owning suites; channel catalog/contract fixtures use shared helpers; Mattermost, Tlon, plugins, state, memory ranking, and WhatsApp tests shed repeated setup and assertions.Evidence
CI-only validation, as requested: dependency installation with Node 26.12.1; changed-file oxfmt, plain oxlint, and
git diff --check. No local Vitest, check-changed, typecheck, or Testbox runs. Requiredopenclaw/ci-gateprovides runtime/type proof on this PR head. Local test wall time and coverage are not measured; all twelve source shard reports explicitly say tests and coverage were not run under CI-only mode. No coverage percentage claim is made for this replay.No CODEOWNERS patterns match the changed paths.
Replay decisions
20 source commits applied; 10 skipped:
07b93d76f02d,87208e91838a,9e57d35f1ea4. Current main has revised request factories, additional projection cases, and different suite boundaries; retain its LLM tests rather than transplanting the dependent older capture harness.69e85ff514c5; skippeda0dfcaee0258,7b72fd3a46a6. Preserve current loopback authority/receipt fixtures and their cleanup instead of moving a divergent older suite into the transport fixture.bd6428481496,bfe99072e97f,307069fc3043. Current Skills tests have since moved to async boundaries and settled lifetimes; keep those complete tests and supporting scaffolding.d629b43c3130,cfb3067e5f6a. Current Twilio tests have different AMD callback assertions and lifecycle cleanup; do not replace them with the older merged-stream fixture.Review
Independent review found three P2 issues. Accepted all three: restored the creator namespace migration test's maintenance guard, injected-failure rollback, integrity checks and restorable backup; restored the generic embedding bridge test in the staged result; restored the Mattermost real draft/delivery trace composition and its protected CI entry. No findings rejected.
Focused follow-up review of the restorations: scoped-clean through P2; all three findings resolved.
Source reports describe the initial shard cleanup, before subsequent fixture-consolidation commits. Their original family LOC/declaration counts are historical context, not the final replay totals. Final diff counts follow below.
Final replay size and shard evidence
Counts below are physical test/support lines added/deleted and static
it/testdeclarations in changed files, not executed case counts. Coverage for every row: not measured (CI-only mode), as stated in its source shard report.Runtime production LOC: +0 / −0. Test/test-support LOC: +3161 / −5248. Test-routing tooling: +0 / −1 (removed the moved Gateway voice suite's obsolete path). Total: +3161 / −5249, net −2088.
Changed files by shard
y0601:
extensions/mattermost/src/channel-actions-setup-status.contract.test.tsextensions/mattermost/src/channel.test.tsextensions/mattermost/src/session-route.test.tsextensions/mattermost/src/setup.test.tsy0604:
src/gateway/talk/handlers/catalog-speech.test.tssrc/gateway/talk/handlers/realtime-relay-close.test.tssrc/gateway/talk/handlers/target.test.tssrc/gateway/talk/handlers/voice.test.tstest/vitest/vitest.gateway-server-paths.mjsy0606:
extensions/tlon/src/channel.runtime.test.tsextensions/tlon/src/core.test.tsextensions/tlon/src/outbound-tool-trace-sanitize.test.tsextensions/tlon/src/security.test.tsextensions/tlon/src/settings.test.tsextensions/tlon/src/tlon-api.test.tsy0607:
src/plugins/compaction-provider.test.tssrc/plugins/compiled-sdk-host.test.tssrc/plugins/dev-source-root.test.tssrc/plugins/document-extractors.runtime.test.tssrc/plugins/effective-plugin-ids.test.tssrc/plugins/embedding-providers.test.tssrc/plugins/extractor-runtime.generation.test.tssrc/plugins/installs.test.tssrc/plugins/synthetic-auth.runtime.test.tsy0609:
src/state/backup-run-records.test.tssrc/state/config-machine-state-write.test.tssrc/state/database-runtime-schema-checks.test.tssrc/state/local-onboarding-state.test-support.tssrc/state/onboarding-recommendations.test.tssrc/state/state-domain-publication.test.tsy0611:
src/gateway/terminal/launch.test.tssrc/gateway/terminal/session-manager.detach.test.tssrc/gateway/terminal/session-manager.eviction.test.tssrc/gateway/terminal/session-manager.test.tsy0612:
src/channels/plugins/contracts/test-helpers/bundled-channel-plugin-loader.tssrc/channels/plugins/contracts/test-helpers/channel-catalog-contract.tssrc/channels/plugins/contracts/test-helpers/channel-plugin-catalog-contract-suites.tssrc/channels/plugins/contracts/test-helpers/config-write-contract-suites.tssrc/channels/plugins/contracts/test-helpers/registry-backed-contract-shards.tssrc/channels/plugins/contracts/test-helpers/registry-session-binding.tssrc/channels/plugins/contracts/test-helpers/session-binding-registry-backed-contract.tssrc/channels/plugins/contracts/test-helpers/surface-contract-suite.tssrc/channels/plugins/contracts/test-helpers/threading-directory-contract-suites.tsy0613:
extensions/whatsapp/src/inbound/access-control.test.tsextensions/whatsapp/src/inbound/durable-receive.test.tsextensions/whatsapp/src/inbound/extract.test.tsextensions/whatsapp/src/inbound/media.node.test.tsextensions/whatsapp/src/inbound/outbound-mentions.test.tsextensions/whatsapp/src/inbound/send-api.test.tsextensions/whatsapp/src/inbound/send-result.test.tsy0614:
extensions/memory-core/src/memory/mmr.test.tsextensions/memory-core/src/memory/temporal-decay.test.tsOriginal per-shard report totals (before later consolidation commits): y0601 1,795→1,448 LOC, 54→49 declarations; y0604 2,008→1,980 LOC, 39→39; y0605 1,272→1,167 LOC, 40→38; y0606 1,733→1,660 LOC, 51→48; y0607 1,784→1,740 LOC, 45→45; y0608 1,912→1,833 LOC, 39→38; y0609 1,916→1,898 LOC, 50→50; y0610 1,568→1,373 LOC, 55→49; y0611 1,803→1,696 LOC, 63→61; y0612 1,777→1,687 LOC, 14→14; y0613 1,741→1,529 LOC, 78→63; y0614 1,564→1,476 LOC, 39→37. All report tests/coverage not run; none establishes a coverage-drop percentage.