Repository navigation
test(memory,gateway,infra,subagents): remove low-value tests (batch d152) - #174034
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. |
|
Codex review: needs changes before merge. What this changesThis PR consolidates repeated fixtures and assertions across memory, Gateway, infrastructure, and subagent tests. Example: A plugin WebSocket upgrade arrives without Gateway authentication.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this maintainer-authored PR open: the test consolidation has clear maintenance value, and source review found no concrete introduced defect. Priority: P3 Before merge
FindingsNone. Agent review detailsHow this fits togetherThe changed test suites pass synthetic requests, lifecycle events, and isolated storage through production owners, then check responses, persisted results, and rejected effects. flowchart TD
A[Test scenarios] --> B[Shared fixtures]
B --> C[Memory managers]
B --> D[Gateway handlers]
B --> E[Git and heartbeat owners]
B --> F[Subagent registry]
C --> G[Contract assertions]
D --> G
E --> G
F --> G
Technical reviewBest possible solution: Land the smaller shared fixtures while preserving current-main recovery behavior and the distinct assertions retained by this consolidation. Do we have a high-confidence way to reproduce the issue? This PR addresses repeated test setup rather than a reported runtime defect; the duplication and consolidation are directly visible in the pinned diff. Is this the best way to solve the issue? Shared fixtures and separately exercised table rows fit the repository's test-audit policy, and inspection found no concrete loss of a distinct contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ff13ebe1d6dd. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -2102. Total -2102 across 23 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 16, 2026, 4:59 AM ET / 08:59 UTC. |
1fdc631 to
4bea4f4
Compare
* commit 'ac03ca0b6d26a7dc55d0d262e40d2549631b1ea7': (25 commits) fix: apply shared plugin model policy to decisions (#156621) perf: shortlist transcript relevance scores before metadata reads (#174058) fix: strip standalone trailing NO_REPLY from replies (#171990) fix(ci): avoid repeated discovery during changed-test planning (#174069) fix(sqlite): preserve transaction outcomes when warnings throw (#157151) fix(ai): native video handoff to chat-completions providers + preflight video cost (#170920) fix(litellm): image generation fails when the backend returns image URLs (#173508) test(memory,gateway,infra,subagents): remove low-value tests (batch d152) (#174034) perf(memory): bound derived worker snapshot and pricing retention (#174067) fix(test): reduce eager imports during test startup (#174056) refactor(codex): share lifecycle preflight fixtures (#174062) test(gateway,matrix,agents,ui): remove low-value tests (batch d150) (#174025) perf(infra): batch usage refresh maintenance (#174050) fix(gateway): revert cold session list worker regression (#174052) refactor(config): consolidate browser meeting configuration (#173947) fix(cron): keep global-session deliveries on the selected agent (#173855) test(compaction): assert structured stale-writer failure (#174064) fix(cli): local terminal chat sends model requests without the configured proxy (#173530) test(ui): restore bootstrap preference locale after each case (#174065) fix: download session files through the development proxy (#173973) ...
…152) (openclaw#174034) * test(memory): deslop x7031 tests * test(memory): deslop x7031 tests * test(gateway): deslop x7033 tests * test(gateway): deslop x7033 tests * test(gateway): deslop x7033 tests * test(infra): deslop x7028 tests * test(infra): further deslop x7028 tests * test(infra): further deslop x7028 tests * test(subagents): deslop x7036 tests * test(subagents): deslop x7036 tests * test: preserve current memory and listener fixture contracts * test: repair batch fixture types and retain working transport paths
What Problem This Solves
Repeated setup and assertions make the memory, Gateway, infrastructure, and subagent tests harder to maintain. This batch consolidates those fixtures and table-driven checks while retaining their behavior contracts.
User Impact
No production behavior, public API, configuration, or migration changes. The changes cover 21 test/test-support files and one shrink-only mock-export baseline. The handoff listener fixture now supplies the port-returning handler its existing assertions expect; that mismatch was already present on the base.
Why This Change Was Made
Replayed all ten campaign commits in order, then rebased after GitHub reported conflicts onto main at
3aa642027ea1466c4694ad6950653c4de3740644. A final fixture correction preserves the current memory import binding and fixes the existing listener fixture mismatch without weakening assertions.Conflict decisions:
manager-embedding-ops.retry.test.ts,manager-embedding-policy.test.ts, andmanager-keyword-retrieval.test.ts. Main has newer retry/parser and retrieval regressions; those three files remain byte-identical to the base.requireManager/trackManagerbindings and probe-cache regression alongside the consolidated helpers; updated its calls to the new namespace import.git-read-cache.test.tsandheartbeat-runner.returns-default-unset.test.tsinstead of applying overlapping cleanup across main's newer cancellation and Telegram cases.git-read-cache.test.tsedits. Other hunks and both subagent commits applied. No whole commits were skipped.requireNativeSqliteDatabaseguard in the heartbeat outcome fixture. Kept the new requester-session setup and operator-recovery authority assertions in the parent-recovery restart test; dropped the second subagent commit's edits to that file rather than consolidate across those new contracts. Other newer main changes were retained by the three-way replay.skill-library-read.test.tsandgit-worker.lifecycle.test.ts, restoring their exact pinned-main versions. Their consolidation introduced timeout-helper ratchet violations; the skill-library client also rejected plaintext edge-auth headers. Narrowed the heartbeat helper's target type and preserved the concrete config shape in the completion-authority helper, resolving the remaining reported type errors. Removed the one obsoletehooks-request-handler.jsmock-export baseline row identified by CI.Evidence
CI-only validation: changed-file
oxfmt --writeand plainoxlint -c .oxlintrc.jsonpassed (exit 0);git diff --checkpassed. Dependency installation withpnpm install --frozen-lockfile --prefer-offlinepassed. No local Vitest, typecheck, check-changed, coverage, or Testbox command was run.openclaw/ci-gatesupplies execution proof.First execution run exposed the timeout, stale-baseline, transport-fixture, and type issues above; this head repairs them for a fresh CI run. The legacy-listener suite passed all 12 cases. No failed check is waived or classified as inherited.
Independent preservation review completed two passes. Its sole P1 finding was rejected after source verification: it attributed the
enqueueSystemEventWithReceiptpath increateHookWakeDispatcherto this test, but the test invokesdispatchAgentHook, whose terminal path calls the mockedenqueueSystemEventdirectly (src/gateway/server/hooks.ts). CI passed the exactnext-heartbeatcase the finding predicted would hang. No other actionable P0-P2 finding was reported. The later changes only restore two files, narrow two fixture types, and shrink the exact CI-reported baseline row.Final diff: 3,359 additions / 5,110 deletions, net -1,751 lines. Production: 0 / 0. Test files: 3,183 / 4,753. Test-support files: 176 / 356. Baseline: 0 / 1. Scoped declaration counts below are lexical
it/testcall-site counts, including table declarations, not expanded case counts. Original shard reports describe preserved expanded cases but cover earlier revisions; they are not fresh coverage evidence for this replay.No coverage totals are available in those reports; no coverage-threshold claim is made. No changed path matches the current CODEOWNERS entries.
Files by shard
x7031, under
extensions/memory-core/src/memory/:manager-index.test-support.ts,manager-memory-source-race.test.ts,manager-provider-lifecycle-fallback.test.ts,manager-provider-lifecycle.test.ts.x7033, under
src/gateway/server/:hooks-request-handler.fanout.test.ts,hooks.terminal-target.test.ts,plugin-legacy-listeners.test.ts,plugins-http.ownership.test.ts,plugins-http.test.ts,readiness.test.ts. Its stale mock row is removed fromconfig/test-mock-exports-baseline.txt.x7028, under
src/infra/:git-read-cache.test.ts,git-root.test.ts,github-issue.test.ts,heartbeat-agent-resolution.test.ts,heartbeat-outcome-store.test.ts,heartbeat-runner.returns-default-unset.test.ts.x7036, under
src/agents/subagents/registry/:subagent-orphan-recovery.raw-owner.test-support.ts,subagent-orphan-recovery.restart-integration.test.ts,subagent-parent-recovery.restart-integration.test.ts,subagent-registry.completion-authority.test.ts,subagent-registry.store.sqlite.test.ts.