Repository navigation
test(memory,infra,gateway,agents,doctor,openai,chat,state): remove low-value tests (batch d408) - #179894
Conversation
|
🦞👀 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. Automatic review is on hold, including after source changes. Request a fresh re-review after resolving the failure; maintainers can also release the hold through an intentional scanner-policy update. 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. |
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
https://github.com/openclaw/openclaw/blob/86ea0770aeae13dfeee8885cf6c3939033267ccd/extensions/memory-core/src/memory/manager-sync-ops.startup-catchup.test.ts#L397-L401
Restore the stale Active Memory cleanup regression
For databases upgraded from versions that indexed Active Memory recall transcripts, this deletion removes the only test that seeds an already-indexed recall source and verifies startup catch-up deletes it. The remaining tests only cover preventing new indexing or filtering stale rows during retrieval, so a regression in manager-sync-ops.ts's resolveActiveMemoryRecallSources cleanup can leave obsolete chunks and vectors accumulating while the suite remains green. Preserve this distinct upgrade/storage contract in the keeper suite.
AGENTS.md reference: AGENTS.md:L78-L78
ℹ️ 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".
| @@ -1,165 +0,0 @@ | |||
| import { randomUUID } from "node:crypto"; | |||
There was a problem hiding this comment.
Replace the deleted PostgreSQL conformance target
When an operator follows the TLS acceptance command in docs/gateway/postgresql.md:321-326, test-database-conformance.mjs forwards this now-deleted pathname as an explicit test target, so the documented validation fails instead of running the search-admission coverage moved into postgres-search.conformance.test.ts. Update the command as part of this test cutover.
AGENTS.md reference: AGENTS.md:L48-L51
Useful? React with 👍 / 👎.
e11a311 to
dee1fe4
Compare
59badcb to
b80314f
Compare
b80314f to
ea956fa
Compare
…w-value tests (batch d408) (openclaw#179894) * test(memory-core): deslop y0167 tests * test(agents): deslop y0169 tests * test(doctor): deslop y0171 tests * test(doctor): remove duplicate available CLI provider case * test(openai): deslop y0170 tests * test(openai): consolidate y0170 realtime families * test(openai): share y0170 realtime test fixtures * test(chat): restore voice-note test helpers * test(chat): deslop y0172 tests * test(gateway): deslop y0173 tests * test: repair d408 replay fixture bindings * test: preserve d408 boundary coverage and fix fixture types * test: prune retired d408 mock baseline entries
What Problem This Solves
This batch reduces repeated test setup and redundant owner-level replays while retaining distinct authorization, migration, persistence, provider, and lifecycle contracts. It consolidates compatible test families and fixtures; no runtime behavior change is intended. Overlapping campaign rewrites were conservatively dropped rather than replacing newer main coverage.
Base: f28e75c. Hosted PR CI (openclaw/ci-gate) is the runtime/typecheck proof.
Evidence
Impact
test: +3531/-5403 lines (net -1872). tooling: +0/-5 lines (net -5). production: +0/-0 lines (net 0).
Declaration deltas below are static declaration estimates across changed test files, not executed case counts. Historical shard totals are source-campaign evidence, not rebased-head measurements. All supplied shard reports explicitly say coverage was not run; there is no coverage-totals line to quote.
y0165: 0 changed files; test/support LOC 0 → 0; static declarations 0 → 0
Source report: Family LOC: 11,376 → 11,290, down 86 lines (0.76%). The 35% target was not reached without dropping distinct behavior. Static declarations: 242 → 241; expanded cases: 388 → 388. No cases were deleted.
Coverage: not run (CI-only mode); no measured totals available.
No paths retained after conflict exclusions.
y0167: 11 changed files; test/support LOC 6110 → 5567; static declarations 129 → 125
Source report: Family LOC: 11,366 → 10,814, down 552 lines (4.86%). The 35% target was not reached without sacrificing distinct behaviors. Static declarations: 244 → 240; expanded cases: 311 → 308, including existing test aliases. These are counts, not executed results.
Coverage: not run (CI-only mode); no measured totals available.
extensions/memory-core/src/memory/hybrid.test.tsextensions/memory-core/src/memory/index.test.tsextensions/memory-core/src/memory/manager-search-worker.sqlite.test.tsextensions/memory-core/src/memory/manager-search.test.tsextensions/memory-core/src/memory/manager-session-scheduling.test.tsextensions/memory-core/src/memory/manager-source-index-kernel.test.tsextensions/memory-core/src/memory/manager-sync-ops.startup-catchup.test-support.tsextensions/memory-core/src/memory/manager-sync-yield.test.tsextensions/memory-core/src/memory/manager.cache-unreferenced-eviction.test.tsextensions/memory-core/src/memory/manager.fts-only-reindex.test.tsextensions/memory-core/src/memory/manager.reindex-recovery.test.tsy0166: 0 changed files; test/support LOC 0 → 0; static declarations 0 → 0
Source report: Shard LOC: 11,802 → 11,269 (−4.52%). Including shared-helper growth: −438 lines (−3.66%). Declarations: 122 → 120. The 35% target remains unmet; further cuts risk distinct recovery, lifecycle, and security coverage.
Coverage: not run (CI-only mode); no measured totals available.
No paths retained after conflict exclusions.
y0168: 0 changed files; test/support LOC 0 → 0; static declarations 0 → 0
Source report: Shard y0168: 11,307 → 11,074 lines, down 233 (2.1%). Declarations: 122 → 119. Statically expanded cases: 189 → 189; no behavioral cases deleted. The 35% target was not met: remaining tests largely protect distinct authority boundaries, persistence paths, and lifecycle interleavings.
Coverage: not run (CI-only mode); no measured totals available.
No paths retained after conflict exclusions.
y0169: 6 changed files; test/support LOC 2585 → 2472; static declarations 85 → 84
Source report: 35% target not met: LOC 10,993 → 10,679, removing 314 lines (2.86%). Declarations 281 → 279; statically expanded cases 464 → 464. No distinct cases were deleted.
Coverage: not run (CI-only mode); no measured totals available.
src/agents/code-mode-headless.test.tssrc/agents/code-mode-node.lifecycle.test.tssrc/agents/code-mode-nodes.test.tssrc/agents/model-runtime-policy.test.tssrc/agents/model-selection-alias-scope.test.tssrc/agents/model-selection.test.tsy0171: 10 changed files; test/support LOC 4250 → 4184; static declarations 63 → 63
Source report: LOC: 11,326 → 11,184 (−142, 1.25%). The 35% target was not reached: further safe duplication wasn’t established. All 157 declarations / 315 statically expanded cases remain.
Coverage: not run (CI-only mode); no measured totals available.
src/commands/doctor-session-sqlite.compaction.test.tssrc/commands/doctor-session-sqlite.deferred-plugin.test-support.tssrc/commands/doctor-session-sqlite.deferred-plugin.test.tssrc/commands/doctor-session-sqlite.fixtures.test-support.tssrc/commands/doctor-session-sqlite.recovery-generations.test.tssrc/commands/doctor-session-sqlite.recovery.test.tssrc/commands/doctor-session-sqlite.retained-source-verification.test.tssrc/commands/doctor-session-sqlite.stale-receipt.test.tssrc/commands/doctor-session-sqlite.test.tssrc/commands/doctor-session-state-providers.test.tsy0170: 29 changed files; test/support LOC 9191 → 8463; static declarations 245 → 235
Source report: LOC: 11,196 → 10,767 (−3.83%). Declarations: 294 → 291; statically expanded cases: 402 → 398. Four sibling files consolidated; no production changes. The 35% target was not met—further cuts would remove distinct behavior coverage.
Coverage: not run (CI-only mode); no measured totals available.
extensions/openai/realtime-live-api.test.tsextensions/openai/realtime-provider-shared.test.tsextensions/openai/realtime-quicksilver-audio-buffer.test.tsextensions/openai/realtime-quicksilver-audio-pipeline.test.tsextensions/openai/realtime-quicksilver-bridge-delayed-delegation.test.tsextensions/openai/realtime-quicksilver-bridge.test-support.tsextensions/openai/realtime-quicksilver-bridge.test.tsextensions/openai/realtime-quicksilver-delegation.test.tsextensions/openai/realtime-quicksilver-gateway-bridge-lifecycle.test.tsextensions/openai/realtime-quicksilver-gateway-bridge.test.tsextensions/openai/realtime-quicksilver-gateway-direct.test.tsextensions/openai/realtime-quicksilver-media.runtime.test.tsextensions/openai/realtime-quicksilver-output-port.test.tsextensions/openai/realtime-quicksilver-public-delegation.test.tsextensions/openai/realtime-quicksilver-session-lifecycle.test.tsextensions/openai/realtime-quicksilver-session-retirement.test.tsextensions/openai/realtime-quicksilver-session.test.tsextensions/openai/realtime-quicksilver-transcript-publication.test.tsextensions/openai/realtime-quicksilver.test-helpers.tsextensions/openai/realtime-talk-defaults.test.tsextensions/openai/realtime-transcription-provider.bounds.test.tsextensions/openai/realtime-transcription-provider.test.tsextensions/openai/realtime-voice-bridge-events.test.tsextensions/openai/realtime-voice-bridge-reconnect.test.tsextensions/openai/realtime-voice-bridge-tools.test.tsextensions/openai/realtime-voice-browser-auth.test.tsextensions/openai/realtime-voice-outgoing-response.test.tsextensions/openai/realtime-voice-projection.test.tsextensions/openai/realtime-voice-provider-routing.test.tsy0172: 5 changed files; test/support LOC 2476 → 2307; static declarations 53 → 53
Source report: Lines: 10,671 → 10,503 (−1.57%). All 247 declarations retained; static expanded estimate unchanged at 424. The 35% target was not met—further cuts lacked equivalent coverage for distinct behaviors.
Coverage: not run (CI-only mode); no measured totals available.
ui/src/pages/chat/components/chat-audio-player.test.tsui/src/pages/chat/components/chat-comment-controller.test.tsxui/src/pages/chat/components/chat-disclosure.browser.test.tsxui/src/pages/chat/components/chat-header-session-menu.test.tsui/src/pages/chat/components/chat-media-source.test.tsy0175: 0 changed files; test/support LOC 0 → 0; static declarations 0 → 0
Source report: Family LOC: 11,377 → 11,116, removing 261 lines (2.29%). The 35% target was not met. All 189 declarations / 282 statically expanded cases remain; none deleted or folded. Further safe duplication was not established without dropping distinct migration, authority, or lifecycle proof.
Coverage: not run (CI-only mode); no measured totals available.
No paths retained after conflict exclusions.
y0173: 13 changed files; test/support LOC 5679 → 5426; static declarations 83 → 82
Source report: LOC fell 11,292 → 10,983 (−2.74%), below the 35% target. Declarations fell 171 → 170; all 294 expanded cases remain. Consolidated fixtures and moved command-context tests into the delta suite.
Coverage: not run (CI-only mode); no measured totals available.
src/gateway/server-methods/chat-history-handler.cli-import.test.tssrc/gateway/server-methods/chat-history-handler.test.tssrc/gateway/server-methods/sessions.abort-embedded.test.tssrc/gateway/server-methods/sessions.abort-lifecycle.test-support.tssrc/gateway/server-methods/sessions.abort-native-descendants.test.tssrc/gateway/server-methods/sessions.abort-retirement-recovery.test.tssrc/gateway/server-methods/sessions.abort-yielded.test.tssrc/gateway/server-methods/sessions.dispatch.test.tssrc/gateway/server-methods/sessions.messages-subscribe-latency.benchmark.test.tssrc/gateway/server-methods/sessions.messages-subscribe-metadata.test.tssrc/gateway/server-methods/sessions.messages-subscribe-wait.test-support.tssrc/gateway/server-methods/sessions.send-followup-status.test.tssrc/gateway/server-methods/sessions.send-yield-resume.test.tsReplay decisions
Applied commits retain their original subjects.
206d071a464134ca40dd71abc898b89d2c1038d7: test(plugins): consolidate y0165 family fixtures and coveraged5245174f993d32f3966bb5e3f0b69527500ebb0: test(plugins): reuse y0165 metadata fixtures and owner proofc9e729a7e4fd3f3faeda57b3c4da41a995515d65: test(memory-core): deslop y0167 testse81f183124ce699472b1bc46a2994e13ac75bdc1: test(memory-core): consolidate y0167 test families4eea2bde6b80cf091dc4d364cc12d1c74badcf28: test(memory-core): remove redundant y0167 startup pruning replay0bf463b47b50d3fb01ce65afdfd81f3ad5ebe624: test(database-engine): deslop y0166 testse0d94e935fa42d7514f35156de08ef2e86136bf4: test(database-engine): consolidate y0166 family suitesf0eb6c133abf11fb8f67a89db0f417680d45fd8e: test(database-engine): deduplicate y0166 owner fixtures6160d12693c22824a1571fe07b33a3875bd80e35: test(gateway): deslop y0168 tests7ad8e3d013ae7f014b474482c1be5f1abb79a926: test(gateway): consolidate y0168 test families452be864ce47c662f6e0109d05e9004a32663409: test(gateway): remove redundant y0168 proof layers00832890c8e530e05c840ca421c1a3b0e99f88b0: test(agents): deslop y0169 tests811fc2a510d53d35995d1ff5fce05823b5f651be: test(agents): consolidate y0169 test families794aeb605ead6491edfd28951b3299dd756d5fc3: test(agents): remove redundant y0169 coverage layersa6aaaafaccd2e084276a10e4ae2d6b9725e8bddf: test(doctor): deslop y0171 testsd3456b3845145b0abdfdcba24cb4c4a6db31e0fd: test(doctor): consolidate y0171 session migration family801b3c5b722e096784e7b5b735257a8cd8326888: test(doctor): remove duplicate available CLI provider case45e3ab13baf8e02eba7800e87514e77b37bc6837: test(openai): deslop y0170 testsbedf5e31ec71a54befbca867904e0891383cb72b: test(openai): consolidate y0170 realtime families20cd7b849dcf29112c102d9b39d3dd738ed6e5f6: test(openai): share y0170 realtime test fixturese7549fa1db757895ad84f3cd11e61651c66b8cfc: test(chat): restore voice-note test helpers46a113152096e4187087f2646a0dab797c1bd9f8: test(chat): deslop y0172 testsd33f3a3d8aaad3b63266bb2dfcbc82d661942e21: test(chat): consolidate y0172 duplicate prooffba96b17eb25ffb6b9e125d466fbe7300d418a1b: test(chat): consolidate y0172 family fixturesdb78c4f55526a619f55b17def3fc465da5bbb562: test(state): deslop y0175 tests08fd908fac8bcf0c938c36a5065430a29d73d637: test(state): consolidate redundant y0175 owner proofs0d9b8ac35e659a200bbc1e44393c4eea88f9a6a1: test(state): consolidate y0175 migration suites and fixtures5732b20810b0bd4c9bff9e7b51187efdd5587268: test(gateway): deslop y0173 tests9bbe29f7a2a3ceaaabfb981b5821831e53c6616e: test(gateway): consolidate y0173 test families5d808ffb64a85002875690c60f92f883895aa363: test(gateway): remove redundant y0173 owner replaysConflict policy: keep current main behavior and newer test contracts. Skipped the y0165 fixture rewrites, y0167 family consolidation, y0168 family consolidation and dependent proof-layer removal, y0169 family consolidation and dependent proof-layer removal, and y0171 session-migration consolidation where older fixture rewrites overlapped current contracts. Kept main’s automation-worker-placement file; Code Mode cancellation, model-runtime-choice and model-selection-manifest-workspace files; and Doctor retirement-mutation/transcript-header files instead of their overlapping cleanup. PostgreSQL Doctor resolution retains main’s prepareSource historical-DDL setup and the predecessor-capture case with its v30 fingerprint exception, while keeping surrounding cleanup. Other cleanly applicable hunks remain.
Ownership
Test-only changes span maintainer-owned Gateway, agent, Doctor, database, memory, provider, and chat paths; test routing/inventory changes only follow moved or removed test files. CODEOWNERS remains visible in the diff; the operator authorized the campaign CI-gated landing. No changelog edit because runtime behavior is unchanged.
Additional replay exclusions: skipped the two broad y0172 chat consolidations and the y0173 consolidation plus dependent owner-replay removal because they conflict with current fixture and custody contracts. Kept the current realtime reconnect/browser-auth fixture shapes in the final fixture-sharing commit, and the current state schema-policy suite. Accepted the recorded state-database resolution only after checking that the canonical historical-fixture import and all three v30 automation-policy migration assertions remain. Kept main’s existing browser-auth header while adding the moved suites’ imports.
Replay repair: unified duplicate browser-auth helper bindings and removed a now-unused audio-player update helper. The disclosure test component now wraps its conditional in JSX per Solid’s reactivity contract. No production UI markup changed.
Review and CI repairs
The first independent review reported 13 findings. Nine preservation findings were accepted: restored current-main startup pruning, mixed-engine reader/lifecycle, state database, PostgreSQL state, and nested transaction suites; restored the Google CLI positive row, shared-history UTF-8 bound, and the command-level 1001-row round trip with forward allocation proof. Four were rejected after source inspection: API-key GPT-Live uses connectDirect rather than the unused peer/fetch mocks; HybridSource is string; model-selection config accepts Record<string,unknown> providers; the surviving vector readmission test already asserts no prepare/exec calls. A fresh repair review found no actionable P0-P2 issues.
Initial hosted CI exposed two closed-handle failures in state migrations, fixed by restoring the current-main suite, plus fixture types fixed with first-row assertions, readonly retry tuples, the callable expect.soft type, an explicit event type, and a Socket alias. The unchanged reply-loss fixture moved into existing test support to keep the consolidated file under its line limit. Historical-schema seed helpers moved unchanged from the state suite into its existing historical-fixture module so restoring coverage also satisfies the shrink-only line-cap hook. No gate exception or assertion weakening. PR context now uses the required problem/evidence headings. Formatting, plain oxlint, and diff-check pass; fresh-head hosted CI is the remaining gate. No local tests or typecheck were run.
No changed path matches the current CODEOWNERS security/release rules.
Final CI-driven scope reduction
The canonical worker-budget planner test repeatedly failed with plan concurrency 1 versus 2 after core test-file consolidations. A fresh hourly main run passed that test, so no pre-existing-failure exception was claimed. A second current-main rebase did not resolve it. Rather than weaken the assertion or change planner policy, this batch defers core file-layout changes: y0166 database and y0175 state families, y0168 Gateway family, the y0169 E2E move, four y0171 retirement/consolidation files, and the y0173 command-context move. Their original files, receivers, inventories, and timing entries were restored together. Other compatible in-file reductions remain.
The branch was rebuilt by filtering these paths from its existing commit series, preserving surviving commit subjects and human attribution. The rebuilt tree exactly matches the independently reviewed withdrawal candidate. The two-pass withdrawal review found no actionable P0-P2 findings. Final core test-file inventory matches pinned main; Memory Core/OpenAI file consolidations remain. No planner assertions, worker budgets, timeouts, or test outcomes were weakened. Earlier fixture/type repairs described above apply only where their files remain in the final diff. Source commits marked applied may be partial; skipped entries include changes fully withdrawn in this final reduction. Coverage remains unmeasured under the CI-only instruction.