Repository navigation
test(core,plugins,ui): remove low-value tests (batch d287) - #177279
Conversation
Consolidate startup success/failure coverage and retain admission and failed-revocation checks in their focused cases. Keep tool error sanitization here; late identity reassignment remains covered by test/visitor-access-revocation.test.ts. Validation: oxlint, oxfmt, and diff check; runtime proof deferred to hosted CI per campaign instructions.
|
🦞👀 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. |
|
Codex review: needs maintainer review before merge. What this changesThis PR consolidates repeated test fixtures and assertions and removes two obsolete mock-export exceptions. Example: No user-visible runtime behavior changes.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-directed test cleanup open: the consolidation is useful, and inspection found no actionable introduced defect. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThese suites exercise channel transports, memory indexing, Doctor repairs, Talk completion, terminal rendering, and sidebar behavior using synthetic inputs and assertions against their existing owners. flowchart LR
A[Synthetic inputs] --> B[Shared test fixtures]
B --> C[Existing production owners]
C --> D[Observed outcomes]
D --> E[Regression assertions]
E --> F[Required CI gate]
Technical reviewBest possible solution: Land the consolidation with its retained regression assertions once required CI succeeds. Do we have a high-confidence way to reproduce the issue? This PR addresses duplicated test structure rather than a runtime bug; the pinned diff directly establishes that maintenance opportunity. Is this the best way to solve the issue? The consolidation uses existing owners and fixtures while retaining distinct security, lifecycle, ordering, and recovery cases; no smaller necessary repair was identified. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 972c9ffc2f36. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -1827, Other -2. Total -1829 across 23 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 19, 2026, 8:32 AM ET / 12:32 UTC. |
Keep configured model refs owned by model visibility policy after #177294 removed the separate metadata fingerprint. Keep the internal Doctor advisory fixture and Telegram assertions private, and remove the orphaned inspection table from #177279. Production advisory publication and display remain intact.
…177279) * test(discord): deslop x8475 tests * test(discord): deslop x8475 tests * test(telegram): deslop x8478 tests * test(auto-reply): deslop x8480 tests * test(ui): deslop x8470 tests * test(ui): deslop x8470 tests * test(ui): deslop x8470 tests * test(memory-core): deslop x8476 tests * test(memory-core): deslop x8476 tests * test(memory-core): deslop x8476 tests * test(gateway): deslop x8477 tests * test(gateway): deslop x8477 tests * test(visitor-access): deslop x8479 tests * test(visitor-access): deslop x8479 tests * test(visitor-access): deslop x8479 tests Consolidate startup success/failure coverage and retain admission and failed-revocation checks in their focused cases. Keep tool error sanitization here; late identity reassignment remains covered by test/visitor-access-revocation.test.ts. Validation: oxlint, oxfmt, and diff check; runtime proof deferred to hosted CI per campaign instructions. * test(tui): deslop x8483 tests * test(flows): deslop x8482 tests * test(flows): deslop x8482 tests * test(flows): deslop x8482 tests * test(signal): deslop x8486 tests * test(signal): deslop x8486 tests * test(matrix): deslop x8490 tests * test: repair batch d287 fixtures and preserve visitor coverage * test: preserve mock exports and media security fixture * test: retain main gateway session fixtures * test: prune restored mock export exceptions
Keep configured model refs owned by model visibility policy after openclaw#177294 removed the separate metadata fingerprint. Keep the internal Doctor advisory fixture and Telegram assertions private, and remove the orphaned inspection table from openclaw#177279. Production advisory publication and display remain intact.
What Problem This Solves
Batch d287 consolidates repetitive test fixtures and assertions and removes duplicate declarations. It preserves distinct security, lifecycle, ordering, recovery, and failure contracts. No production files or runtime behavior change.
Replayed 22 of 30 supplied commits onto main
ed0bc041f276171d763eb20d7e75252877cca175, then dropped the visitor-access shard, Telegram local-media file, and shared Gateway sessions helper after CI and preservation review. The final diff is 23 files: +2,474 / -4,303 lines (net -1,829). Production: +0 / -0. Test/support: +2,474 / -4,301 in 22 files. Mock-export baseline metadata: -2 obsolete exception lines.Shard inventory
LOC and static declaration counts below describe the final replay against the pinned main, not the earlier intermediate shard reports. Each
it.eachdeclaration counts once; expanded runtime cases are not inferred from these counts. Paths sharing a directory are abbreviated below.extensions/discord/src/activities/{http,interaction}.test.tsextensions/telegram/src/bot/{delivery.resolve-media-retry,helpers}.test.ts; local-media file droppedsrc/auto-reply/reply/export-html/template.security.test.tsui/src/test-helpers/app-sidebar-cases/{sessions,sidebar-zone}.tsextensions/memory-core/src/memory/manager-{temporal-ranking,worker-reads,workspace-files}.test.tssrc/gateway/test/talk-client-agent-consult.requester-final.test.ts; shared sessions helper droppedsrc/tui/components/{chat-log,searchable-select-list,tool-execution}.test.tssrc/flows/{doctor-health-contribution-runners.config.auth-cleanup,doctor-health.dangling-workshop-index,doctor-health}.test.tsextensions/signal/src/{setup-transport,signal-ingress,socket-path}.test.tsextensions/matrix/src/matrix/monitor/{startup,sync-lifecycle}.test.tsCoverage evidence from supplied shard reports
No supplied report contains measured coverage totals. They explicitly deferred runtime/coverage proof under the CI-only instruction; no ≤1% coverage claim is made here. The report statements are:
Replay decisions
21e28cebd280andedaf235afd78. Those overlapped main's newer pagination and source-replacement regressions; their sidebar-zone portions are kept.7af22ff7d24e: conflicts with newer reserved-header cases and provider base-URL setup. Main's file remains intact.f8897cee27ee,06779b959790,fb43790ebab0: the dependent cleanup stack overlapped main's expanded cards/sessions board-creation matrix. Main's file remains intact.91f36d182e90: kept startup and sync-lifecycle cleanup; dropped the startup-verification file hunk, preserving current cooldown and migration coverage.e64c8fbb2854: conflicts with expanded quota, provider-alias, reasoning-effort and stream-wrapper cases. Both main files remain intact.3c588341f4db,e85c8aa5d7e7,85fd2504bf67: the dependent cleanup stack overlapped expanded DMARC, unsigned-body, admission-evidence, sender-rejection and retry cases. Both main files remain intact.5ac9bc7faf32,9d341dd22999,b37cd7992c13after CI exposed an unsupported schema API and preservation review found missing post-read identity-revalidation coverage. Restored the file byte-for-byte to the pinned main.delivery.resolve-media-local.test.tsportion of25c290d42878after CI run39244903464showed its default private-address rejection case unexpectedly resolving. Restored the original security fixture rather than weakening its expected denial.server-sessions.test-helpers.tschanges from97339c385ca3/afd2a28f8c4fand their corrective type change after CI run39246962868failedsessions-create-worktree-base.test.tsat exact row equality (laterdisplayName/updatedAtpublication). The failing test imports this helper; baseline attribution was not proven, so the helper is restored byte-for-byte to pinned main. The requester-final test consolidation remains.No CODEOWNERS patterns match the changed paths. No changelog change: test-only maintenance.
Evidence
pnpm install --frozen-lockfile --prefer-offline: passed.node_modules/.bin/oxfmt --write <changed paths>: passed on original and corrected candidates.node_modules/.bin/oxlint -c .oxlintrc.json <changed paths>: passed, exit 0.git diff --check ed0bc041f276171d763eb20d7e75252877cca175: passed.openclaw/ci-gateon the PR head owns runtime proof. Isolated preservation review runs alongside CI.First-head findings and repairs
CI run
39243425007found an unbound cleanup callback, an overconstrained cleanup-helper argument, a Buffer/Response body type mismatch, a SQLite-specific helper receiving the engine connection union, and the visitor fixture's unsupportedType.Constcall. The corrected candidate restores method binding, types the cleanup helper to only consumed fields, copies bytes into a Uint8Array, keeps database reads directly at their typed connections, and drops the visitor shard. No assertions were weakened to make CI pass.Independent static review also found widened literal discriminants in the TUI activity and sidebar hello fixtures; fixed both. Accepted its visitor post-read revalidation finding by dropping that shard. Rejected its socket temp-root finding:
test/helpers/temp-dir.tsalready canonicalizes the default root withfs.realpathSync.nativebefore creating tracked directories. A second isolated review of the corrective diff completed scoped-clean with no actionable P0–P2 findings. No local runtime or typecheck execution was used.The second CI run (
39244903464) found an unbound Matrix disposal callback and mock-export ratchet failures in Telegram media retry and Doctor config logging. The follow-up wraps the disposal callback and preserves actual exports in those mocks. The Telegram local-media fixture was dropped as described above. A third isolated review of this follow-up completed scoped-clean with no actionable P0–P2 findings. Fresh-head CI, not a rerun of either stale run, is the gate.The third CI run (
39246962868) exposed the shared-helper-dependent worktree recovery failure described above. No assertion was relaxed and no pre-existing-failure bypass was used; the suspect helper refactor was dropped. A fourth isolated review of that restoration completed scoped-clean with no actionable P0–P2 findings.The fourth CI run (
39248539886, job118047244670) required pruning the two exact obsolete mock-export exceptions for the corrected Telegram runtime and Doctor logging mocks. Both factories now preserve real exports; the baseline only shrinks, with no new allowance. A fifth isolated review of the two-row removal completed scoped-clean with no actionable P0–P2 findings.