Repository navigation
test: remove low-value tests (batch d249) - #175975
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 maintainer review before merge. What this changesThis PR consolidates repeated fixtures and assertions across runtime test suites without changing production code. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-directed test cleanup preserves the inspected regression boundaries, and no actionable code defect remains from the previous review. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherVitest suites supply synthetic sessions, jobs, messages, and Windows service fixtures to existing runtime owners and assert their observable results. flowchart LR
A[Synthetic inputs] --> B[Shared test fixtures]
B --> C[Runtime owners]
C --> D[Storage and transport boundaries]
D --> E[Regression assertions]
Technical reviewBest possible solution: Land the test consolidation once the existing merge gates clear. Do we have a high-confidence way to reproduce the issue? This is test maintenance rather than a reported runtime bug; assessment used the introduced hunks, original fixtures, retained assertions, and exact-head CI without executing target code. Is this the best way to solve the issue? Consolidating repeated setup within existing suites is appropriate, and the inspected changes preserve distinct cancellation, authority, persistence, routing, and platform cases. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d0dcce33fd71. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -2509. Total -2509 across 43 files. Added test files: 1. 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 HistoryReview history (1 earlier review cycle)
Reviewed October 18, 2026, 4:03 PM ET / 20:03 UTC (Revision 2). |
d25e4bf to
db21377
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Register the Docker MCP custody scenario/server and macOS source-build verifier as exact Knip entries. Their shell invokers remain live, so retain these proof and packaging boundaries without introducing ignores. Remove the unused cron state fixture after #175975 moved its consumers to the shared regression fixture. Scheduling assertions remain unchanged. Refs: #175107, #176448, #175975. Validation: 79 focused tests, owning cron tsgo, typed lint, formatting, and P2 review pass. Dependency scan clears the requested script findings; unrelated controller and daemon export findings remain.
## What Problem This Solves Fixes: Knip `deadcode:exports` on main reports four exports that recent refactors left without a consumer. #176447 does not cover them. ## User Impact No user-visible change. ## Why This Change Was Made - `src/cron/service.test-harness.ts: createCronServiceStateWithJobs`: #175975 removed its last callers, so it is deleted. - `extensions/copilot/src/attempt.test-support.ts: createStubToolBridge`: #176003 added an exported copy that nothing imports, so it is deleted. The file is back to its state before #176003. - `src/daemon/inspect-markers.ts: classifyGatewayCommand`: #176469 removed the only outside import, so it is now module-private. - `src/gateway/server-cron.events.test-support.ts: CRON_WAIT_TIMEOUT_MS`: #176399 removed the last outside caller, so it is now module-private. No ignores were added. ## Evidence - `pnpm run deadcode:exports` on this branch, diffed against main `48439195832`: only these four entries disappear. - `extensions/copilot/src/attempt.test.ts` and `src/daemon/inspect.test.ts` pass in full. `oxfmt` and `oxlint` are clean. Co-authored-by: Ayaan Zaidi <[email protected]>
## What Problem This Solves Fixes: `check-dependencies` fails on main after #175837. The reply-admission refactor left 2 files with no importer (`reply-admission-ticket.ts`, `reply-turn-admission-owner.ts`) and about 60 exports with no production consumer: facade re-exports, helpers that only tests call, and new helpers that nothing calls. ## User Impact No user-visible change. The deadcode scans pass for these findings. ## Why This Change Was Made - Deletes the orphaned files and the dead re-exports and helpers. - Tests that imported through the removed re-exports now import from the module that defines each function. - Eight helpers that only tests use are marked `/** @internal */`, the existing pattern for test hooks. No Knip ignores are added. ## Evidence - Before: hourly CI run 39154686674, `check-dependencies`. All of these findings first appear after #175837. - After: `deadcode:unused-files`, `deadcode:exports` and `deadcode:dependencies` report 0 entries for these findings. One newer unrelated entry from #175975 (`createCronServiceStateWithJobs`) remains. - Affected unit tests: 40 files, 829/830 pass. The one failure, `dispatch-from-config.reply-dispatch.test.ts > retains a frozen finalizing dispatch until its actual producer settles`, also fails on main without this change. `oxfmt`, `oxlint` and the line-cap check pass. Co-authored-by: Ayaan Zaidi <[email protected]>
* test(cron): deslop x8002 tests * test(cron): deslop x8002 tests * test(cron): deslop x8002 tests * test(sessions): deslop x7993 tests * test(sessions): restore metadata user fixture access * test(sessions): preserve worker authority callback contract * test(sessions): deslop x7993 tests * test(auto-reply): deslop x8005 tests * test(auto-reply): deslop x8005 tests * test(subagents): deslop x8004 tests * test(subagents): deslop x8004 tests * test(subagents): deslop x8004 tests * test(sessions): deslop x8008 tests * test(sessions): deslop x8008 tests * test(sessions): deslop x8008 tests * test(sessions): deslop x8009 tests * test(sessions): deslop x8009 tests * test(sessions): deslop x8009 tests * test(gateway): deslop x8006 tests * test(gateway): deslop x8006 tests * test(gateway): deslop x8006 tests * test(outbound): deslop x8010 tests * test(outbound): deslop x8010 tests * test(daemon): deslop x8012 tests * test(daemon): deslop x8012 tests * test(daemon): deslop x8012 tests * test(sessions): deslop x8013 tests * test(sessions): deslop x8013 tests * test(sessions): deslop x8013 tests * test(gateway): deslop x8015 tests * test: drop failing cleanup hunks and preserve fixture contracts
Register the Docker MCP custody scenario/server and macOS source-build verifier as exact Knip entries. Their shell invokers remain live, so retain these proof and packaging boundaries without introducing ignores. Remove the unused cron state fixture after openclaw#175975 moved its consumers to the shared regression fixture. Scheduling assertions remain unchanged. Refs: openclaw#175107, openclaw#176448, openclaw#175975. Validation: 79 focused tests, owning cron tsgo, typed lint, formatting, and P2 review pass. Dependency scan clears the requested script findings; unrelated controller and daemon export findings remain.
…6562) ## What Problem This Solves Fixes: Knip `deadcode:exports` on main reports four exports that recent refactors left without a consumer. openclaw#176447 does not cover them. ## User Impact No user-visible change. ## Why This Change Was Made - `src/cron/service.test-harness.ts: createCronServiceStateWithJobs`: openclaw#175975 removed its last callers, so it is deleted. - `extensions/copilot/src/attempt.test-support.ts: createStubToolBridge`: openclaw#176003 added an exported copy that nothing imports, so it is deleted. The file is back to its state before openclaw#176003. - `src/daemon/inspect-markers.ts: classifyGatewayCommand`: openclaw#176469 removed the only outside import, so it is now module-private. - `src/gateway/server-cron.events.test-support.ts: CRON_WAIT_TIMEOUT_MS`: openclaw#176399 removed the last outside caller, so it is now module-private. No ignores were added. ## Evidence - `pnpm run deadcode:exports` on this branch, diffed against main `7451c5780e5`: only these four entries disappear. - `extensions/copilot/src/attempt.test.ts` and `src/daemon/inspect.test.ts` pass in full. `oxfmt` and `oxlint` are clean. Co-authored-by: Ayaan Zaidi <[email protected]>
…w#176447) ## What Problem This Solves Fixes: `check-dependencies` fails on main after openclaw#175837. The reply-admission refactor left 2 files with no importer (`reply-admission-ticket.ts`, `reply-turn-admission-owner.ts`) and about 60 exports with no production consumer: facade re-exports, helpers that only tests call, and new helpers that nothing calls. ## User Impact No user-visible change. The deadcode scans pass for these findings. ## Why This Change Was Made - Deletes the orphaned files and the dead re-exports and helpers. - Tests that imported through the removed re-exports now import from the module that defines each function. - Eight helpers that only tests use are marked `/** @internal */`, the existing pattern for test hooks. No Knip ignores are added. ## Evidence - Before: hourly CI run 39154686674, `check-dependencies`. All of these findings first appear after openclaw#175837. - After: `deadcode:unused-files`, `deadcode:exports` and `deadcode:dependencies` report 0 entries for these findings. One newer unrelated entry from openclaw#175975 (`createCronServiceStateWithJobs`) remains. - Affected unit tests: 40 files, 829/830 pass. The one failure, `dispatch-from-config.reply-dispatch.test.ts > retains a frozen finalizing dispatch until its actual producer settles`, also fails on main without this change. `oxfmt`, `oxlint` and the line-cap check pass. Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
Batch d249 consolidates repeated setup and redundant declarations in cron, subagent, auto-reply, session, gateway, outbound, and daemon tests. This is test/support-only cleanup: no production behavior, public contracts, timeouts, or assertions are weakened.
User Impact
No user-visible behavior changes. This is internal test maintenance; production code, public contracts, and runtime configuration are unchanged.
Why This Change Was Made
Rebased all 31 submitted commits onto pinned main
1446ecc39398c6e4f53cda9a260342cb914e8cb8. Main's newer tests and deletions win. The 26 files already dropped in the initial repair remain unchanged from main. Seven additional file-level cleanups were dropped:src/agents/subagents/registry/subagent-registry-requester-wake-commit.test.ts(main deleted it).src/agents/subagents/registry/subagent-registry-requester-yield.test.ts.src/agents/subagents/registry/subagent-registry-restart-recovery.test.ts.src/agents/subagents/registry/subagent-registry-requester-wake-pointer.worker.test.ts.src/config/sessions/session-accessor.sqlite-deletion.test.ts.src/config/sessions/session-accessor.sqlite-participants.test.ts.src/gateway/server-methods/skills.publisher-identity.test.ts.Conflicts in the already-dropped maintenance-kick and lifecycle-projection suites were also resolved to current main. No manual behavior merge was attempted.
Failed-head diagnosis and repair
Run 39087253070 failed on the submitted head:
No inherited-failure exception is claimed for these failures. Main push CI is not proof.
Evidence
Exact-head CI run 39160763488 passed every selected job, including all three PostgreSQL conformance shards and openclaw/ci-gate. Merged as 53395d9.
Release-note context: internal test maintenance only; no user-facing behavior change.