Repository navigation
test(core,slack,ui): remove low-value tests (batch d423) - #180176
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 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. |
8cf119e to
01a7aa4
Compare
|
Codex review: blocked before merge. What this changesThis PR consolidates test scenarios and fixtures across core, Slack, tooling, and UI suites while removing redundant tests and obsolete inventory entries. Example: Slack identity recovery after auth.test temporarily fails
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep this maintainer-directed cleanup open: the consolidation has maintenance value, and no definite introduced defect was established, but current-head CI remains blocked. Priority: P3 Before merge
FindingsNone. Agent review detailsHow this fits togetherThese test suites feed synthetic events, transport responses, and persisted fixtures through OpenClaw owners and assert authorization, delivery, lifecycle, and storage outcomes. flowchart LR
A[Test fixtures] --> B[Existing production owners]
B --> C[Observed outcomes]
C --> D[Contract assertions]
D --> E[Hosted CI gates]
Technical reviewBest possible solution: Retain the consolidation with distinct boundary assertions intact and resolve the current CI failures according to their verified causes. Do we have a high-confidence way to reproduce the issue? This PR preserves behavior rather than fixing a reported runtime bug; no target code was executed during this read-only review. Is this the best way to solve the issue? Consolidating equivalent scenarios at existing owners is appropriate, and inspected removals have retained contract coverage rather than replacement production seams. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 317f9399d9b0. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -63, Tests -1769, Other -9. Total -1841 across 69 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 21, 2026, 11:30 PM ET / October 22, 2026, 03:30 UTC. |
59d3942 to
1aff102
Compare
…0176) * test(gateway): deslop y0320 tests * test(gateway): share y0320 fixture state and fault setup * test(daemon): deslop y0321 tests * test(daemon): consolidate y0321 test families * test(daemon): deduplicate y0321 owner proofs * test(slack): deslop y0324 tests * test(slack): consolidate y0324 monitor families * test(slack): remove redundant y0324 proofs and fixtures * test(agents): deslop y0326 tests * test(agents): consolidate y0326 session suites * test(agents): share y0326 scenario fixtures * test(scripts): deslop y0328 tests * test(session): deslop y0329 tests * test(ui): deslop y0330 tests * test: preserve batch d423 boundary proofs and repair fixtures * test: retain current session visibility proof after rebase * test: preserve distinct batch d423 boundary coverage * test(daemon): preserve loaded state after bootstrap recovery * test: prune documented mock isolation baseline entries
What Problem This Solves
Consolidate repeated test fixtures, duplicate owner proof, and table-shaped scenarios across Gateway, daemon, Slack, agent tools, session, script tooling, and UI utility suites. Preserve distinct authority, lifecycle, persistence, transport, and error-path assertions. No user-facing runtime behavior change is intended.
Batch d423 is replayed onto pinned main a52e2aa. 14 of 30 source commits applied; 16 skipped.
Replay decisions
Skipped b798bc20202150a5cc8e354ade0ec2e9e9ec4044 (y0318): main split/moved outbound scenario owners; replay would resurrect old suite sections. Main retained unchanged.
Skipped 45853f5f9f1aae155dd7f677096b0d671eaded19 (y0320 consolidation): main repaired media-authority response/permission mocks; keep those updated proofs rather than move older copies.
Resolved 290bcb8a1cd0b7196da8f715835b1a87a7c0f2a3 (y0320 fixtures): retain main's image-fixture import and original four mutation command names while adopting shared reply interception.
Skipped 04ed468143b4ee7863634c589d9c4d9242866102 and 9cef0e91bd43cce759d4bc33eefaa62ce0405d22 (y0322): overlapping current UI scenario structure and screenshot hooks; no older UI fixture structure restored.
Skipped y0323 commits 8c758cd52d2df8ce28da3b8aea91bb1bcb5a822a, 5202e3c739a8dc63b7f5913b81679bc08b4b2e97, 4d9259153957a5f7cda5a67f8b1b943709e82a2f: current follow-up lifecycle and queue tests have split/moved owners; do not restore older copies or dependent fixture transformations.
Skipped y0325 commits b6e883179664ffc1c917d0b206bc3ea643fca772, f6149f5e4393d64332e6bd8b9b49174f9a99d796, 6c0b0f8eeef1124948e0e451741a5e4f3d16b8b7: Discord approval, gateway API (openSocket/info), and scenario structure changed; retain current main rather than older fixtures.
Resolved d816ae76fac31b236e9c80bfb3ff43b06fbd4660: keep main's replay-guard spies (not the retired injection seam) and cooldown retarget case; fold duplicate stalled-stop test into the continue/stop table.
Resolved 24e5817507f8e667341798bc942dc0d83d0b0707: retain main's workspace plugin fixture and false/true factory outcomes; remove only redundant internal snapshot assertions.
Partial 7a63f51451f0dc01075a0fb9fe581d0343140e88: drop all Swarm-file hunks, preserving main's expanded profile/availability and restrictive collector proof.
Partial ffdce3f34d59b489d0da53eecf94bda5ef0666da: drop media-factory-plan and Swarm hunks, preserve main's newer fixtures; apply other four files.
Partial f6f606408118b841b802b3bb999f455393ef38ac: drop bun-standalone-native file hunks to preserve current module fixtures; apply five other files.
Skipped e8118a2649ea4e8e13ccd9d42101cf4146669b90: native/module-resolution/plugin consolidation conflicts and depends on the omitted native fixture changes.
Partial 33fb165b595d4914876d905c1e24a83015e11a4e: drop reset-model, session-updates, and init-conflict-retry file hunks; retain main's current model/reset/update/retry contracts.
Skipped 76f8f363618125dbba6022fb53bf8f220086fcde and 890d6a8a6d3dfe7b39dde73c0e1a29927fb625b3: session update/usage/lifecycle consolidation overlaps current proofs and omitted fixture changes.
Partial d1ba7dbca72de0ad70e491230b7f357a281b9c1a: drop pairing and keyboard file hunks; retain main's current pairing generations and layout/modifier cases, apply six other utility files.
Skipped d8da0ffc30a1409ede1018c262aa4b5e69597af6 and b27305bddf64b3b1f8ae096d2e139c4b1c65751e: broad follow-on UI consolidation conflicts with main's scenario shape and omitted fixtures.
Skipped aeec185c0e2ca4009897229966689c40f1341c39: Windows task fixtures/CI inventory changed; retain current main rather than restoring old fixture assumptions.
Review and CI correction
Independent review found nine issues: seven accepted, two declined after source verification. Restored per-agent allowlist and inherited-sandbox denial tests, pre-hydration visibility proof (moved into the existing visibility suite to retain the line cap), HTTP payload-limit and valid-signature cases, Doctor/malformed runtime-pin migration coverage, and exact code-mode required-tool sets. Fixed missing launchd identifiers and the failed-bootstrap loaded-state assertion. CI exposed an invalid idleMinutes fixture field; it now uses session.reset. CI also exposed an inspection projection mismatch; those file hunks were dropped.
Declined redirect finding: the removed Slack test asserted redirect logic implemented in its own mock; src/media/store.redirect.test.ts retains real saveRemoteMedia/guard header-stripping proof. Declined package-state finding: copy-bundled-plugin-metadata and the package writer share resolvePluginRuntimeChannelMetadata; test/plugin-npm-package-manifest.test.ts retains partial/env-backed/missing-output cases through actual packaging.
First-head CI failures: PR context heading contract (corrected; replacement passed), check-test-types-core-2 (invalid reset config), check-test-types-core-3 (missing launchd identifiers), checks-node-changed-compact-large-9 (missing identifiers and inspection projection), check-lint-core-1/2 (stale suppression, stringification, default assignment, unbound method), baseline mock-export isolation annotations, and UI prototype comparison. Corrected the lint findings and restored the original config-form test rather than weakening its assertions. No failed check is waived. Run 39714207846 passed all behavioral test jobs; its only underlying CI failure requested deletion of eight now-obsolete mock-export baseline tuples after the isolation annotations. Those exact eight entries are removed, with no new exceptions or assertion changes. Run 39713419107 then caught two bootstrap-failure table cases expecting an unloaded service; restored the original retained-policy assertion that recovery leaves it loaded. The separate provider-scaffold run hit HTTP 503 resolving npm metadata. The new corrective head reruns both through hosted CI; no failure is waived. New-head CI owns final proof. Earlier corrective diffs were clean at P0-P2; local lint/format/diff checks are the only local execution gates.
Conflict rebase round 1: updated base to b9d5ac5 after GitHub reported CONFLICTING and could not attach CI. New main had extracted and strengthened the session steering families. Kept those current-main registrar/helper paths, dropped all further session-suite and continuation-helper consolidation hunks from 7a63f514 and ffdce3f3, and retained the original pre-hydration visibility case in its existing suite (the temporary moved copy is omitted). This supersedes the earlier move note above; final inventory below reflects the rebased tree.
Latest rebased review
The rebased full review raised seven findings. Accepted six: restored the co-located node-host/Gateway restart test, target-agent Matrix account routing, actual lossy SQLite decoder execution, Slack hidden control-metadata privacy, Slack eight-file cap, and sessions_send result-schema branches. For five affected files the cleanup is dropped completely and current pinned-main tests are retained. The commit hook caught line-cap growth when restoring the node-host test to the original oversized suite; that unchanged behavioral test now lives in the existing service-membership suite using its shared fixtures. No assertions were weakened.
Declined the alleged implicit-any openWs parameter: createGatewaySuiteHarness explicitly returns an object whose openWs member accepts headers?: Record<string, string>, so the returned arrow is contextually typed. Across both full reviews, thirteen findings were accepted and three declined with source evidence. The final focused corrective review is clean at P0-P2: restored assertions exercise their intended contracts, and no production behavior changes.
Evidence
Test/support LOC: +4340 / -6172. Non-test files: +0 / -9 (inventory/config/CI routing only; runtime production LOC 0).
Per-shard replay inventory
Shard reports were produced in CI-only mode; no statement/branch coverage totals exist, and none are claimed here. y0318, y0322, y0323, y0325, and y0327 are omitted entirely as noted above.
y0320
Test/support LOC: +487 / -644 (net -157). Static declarations in changed files: 83 → 82 (lexical count; table expansion is not execution count).
Coverage statement from shard report: Gates: formatting, plain oxlint, and diff checks passed. Tests, coverage, and check-changed were not run under CI-only instructions; no measured coverage claim. Coordinator decision: accept this bounded reduction or request broader restructuring after hosted CI.
Files:
src/gateway/managed-image-actions.e2e.test.tssrc/gateway/managed-image-attachments.conditional.test.tssrc/gateway/managed-image-attachments.sqlite-visibility.test.tssrc/gateway/managed-image-attachments.test-support.tssrc/gateway/managed-image-attachments.test.tssrc/gateway/managed-image-record-store.test.tssrc/gateway/managed-outgoing-gc-availability.test.tssrc/gateway/test-helpers.acquisition.test.tssrc/gateway/test-helpers.runtime-state.tssrc/gateway/test-helpers.server-rpc.test.tssrc/gateway/test-helpers.server-storage.test.tssrc/gateway/test-helpers.server.tsy0321
Test/support LOC: +1673 / -2101 (net -428). Static declarations in changed files: 128 → 117 (lexical count; table expansion is not execution count).
Coverage statement from shard report: Plain oxlint exited 0; oxfmt and
git diff --checkpassed. No production/support files changed, no files deleted, and no bugs/flakes fixed. Tests, coverage, and check-changed were intentionally not run under CI-only mode; hosted CI remains pending.Files:
src/daemon/constants.test.tssrc/daemon/inspect.startup.test.tssrc/daemon/inspect.windows.registered.test.tssrc/daemon/inspect.windows.test.tssrc/daemon/launchd-ancestry.test-support.tssrc/daemon/launchd-plist.test.tssrc/daemon/launchd-restart-handoff.test.tssrc/daemon/launchd-retained-policy.test.tssrc/daemon/launchd-service-files.test.tssrc/daemon/launchd-service-membership.test.tssrc/daemon/launchd-system-shell.test.tssrc/daemon/launchd-system.test.tssrc/daemon/launchd.test.tssrc/daemon/program-args.pnpm.test.tssrc/daemon/program-args.test.tsy0324
Test/support LOC: +1193 / -1692 (net -499). Static declarations in changed files: 211 → 194 (lexical count; table expansion is not execution count).
Coverage statement from shard report: Plain oxlint exited 0; formatting, diff-check, and commit hooks passed. No tests, coverage, builds, or Testbox commands ran, per CI-only instructions. No production/support files changed and no bugs/flakes were fixed. Hosted CI validation remains outstanding.
Files:
extensions/slack/src/monitor/auth.test.tsextensions/slack/src/monitor/context.test.tsextensions/slack/src/monitor/dm-auth.test.tsextensions/slack/src/monitor/enterprise-install.test.tsextensions/slack/src/monitor/message-handler.test.tsextensions/slack/src/monitor/message-handler.thread-resolution.test.tsextensions/slack/src/monitor/monitor.thread-resolution.test.tsextensions/slack/src/monitor/presence-monitor.test.tsextensions/slack/src/monitor/provider.allowlist.test.tsextensions/slack/src/monitor/provider.auth-test-token.test.tsextensions/slack/src/monitor/provider.event-identity-recovery.test.tsextensions/slack/src/monitor/provider.interop.test.tsextensions/slack/src/monitor/relay-source.test.tsextensions/slack/src/monitor/replies.test.tsextensions/slack/src/monitor/slash.menus.test.tsextensions/slack/src/monitor/slash.test.tsextensions/slack/src/monitor/thread-history.test.tsscripts/lib/ci-proof-test-inventory.mtsy0326
Test/support LOC: +433 / -801 (net -368). Static declarations in changed files: 98 → 90 (lexical count; table expansion is not execution count).
Coverage statement from shard report: Plain oxlint exited 0; oxfmt and diff-check passed. No tests, coverage, builds, or Testbox commands ran, per CI-only mode. No production/support changes or bug fixes. Coordinator review must decide whether to accept this smaller reduction; behavioral and coverage verification remain pending hosted CI.
Files:
src/agents/openclaw-gateway-tool.test.tssrc/agents/openclaw-owned-tool-runtime-contract.test.tssrc/agents/openclaw-tools.browser-plugin.integration.test.tssrc/agents/openclaw-tools.camera.test.tssrc/agents/openclaw-tools.media-factory-plan.test.tssrc/agents/openclaw-tools.requester-yield.test.tssrc/agents/openclaw-tools.session-status.test.tssrc/agents/openclaw-tools.subagents.sessions-spawn.plan.test.tssrc/agents/openclaw-tools.tts-config.test.tsy0328
Test/support LOC: +122 / -219 (net -97). Static declarations in changed files: 85 → 85 (lexical count; table expansion is not execution count).
Coverage statement from shard report: Plain oxlint exited 0, formatting and
git diff --checkpassed. No tests, coverage, Testbox, builds or typechecks ran, per CI-only mode. No production/support files changed; no bugs or flakes fixed.Files:
test/scripts/build-all.test.tstest/scripts/build-artifact-cache.test.tstest/scripts/build-external-plugin-local-dist.test.tstest/scripts/code-mode-matrix-gateway.test.tsy0329
Test/support LOC: +130 / -232 (net -102). Static declarations in changed files: 31 → 28 (lexical count; table expansion is not execution count).
Coverage statement from shard report: Formatting, plain oxlint (exit 0), and
git diff --checkpassed. Tests, coverage and check-changed were intentionally not run under CI-only mode.Files:
src/auto-reply/reply/session-entry-persistence.test.tssrc/auto-reply/reply/session-hooks-context.test.tssrc/auto-reply/reply/session-rollover-preemption.test.tssrc/auto-reply/reply/session-updates.exec-preparation.test.tssrc/auto-reply/reply/session.initialization-admission.test-support.tsy0330
Test/support LOC: +302 / -483 (net -181). Static declarations in changed files: 65 → 60 (lexical count; table expansion is not execution count).
Coverage statement from shard report: Plain oxlint, oxfmt,
git diff --check, and commit hooks passed. Tests, coverage, and check-changed were not run, per CI-only mode. No production/support files changed and no bug fixes were made.Files:
ui/src/lib/browser-redact.test.tsui/src/lib/connection-hints.node.test.tsui/src/lib/gateway-errors.test.tsui/src/lib/session-diff-summary.test.tsui/src/lib/session-pull-requests.test.ts