Repository navigation
test(gateway,talk,hooks): remove low-value tests (batch d141) - #163169
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: blocked before merge. Reviewed October 1, 2026, 10:22 PM ET / October 2, 2026, 02:22 UTC. ClawSweeper reviewWhat this changesThe branch consolidates fixtures and removes repeated Gateway, Talk relay, and hook test scenarios without changing production code. Merge readiness⛔ Blocked before merge - 1 item remains Keep open: this remains useful test cleanup, and source review found no concrete blocking defect. Fresh whole-batch execution and complete coverage preservation remain unverified; the PR accurately discloses those limitations. Priority: P3 Review scores
Verification
How this fits togetherGateway tests exercise client requests, model catalogs, session custody, and diagnostics; Talk tests cover audio relay behavior, while hook tests cover deferred session-reset work. These suites protect runtime contracts before changes reach users. flowchart LR
A[Test fixtures] --> B[Gateway requests]
A --> C[Talk audio relay]
A --> D[Session reset hooks]
B --> E[Responses and session state]
C --> F[Audio and cancellation]
D --> G[Deferred work and cleanup]
E --> H[Behavior assertions]
F --> H
G --> H
Before merge
Agent review detailsSecurityNone. PR surfaceTests -1585. Total -1585 across 31 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep compact tests at the owning boundaries while preserving distinct authority, delivery, cancellation, and cleanup contracts. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR reduces test duplication rather than reporting a product defect; source inspection does not establish that the revised batch executes successfully. Is this the best way to solve the issue? Yes, consolidating fixtures and repeated scenarios in their existing suites is a maintainable approach; complete coverage equivalence remains unverified. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d938be7b8f4f. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
…aw#163169) * test(gateway): deslop s837 tests * test(gateway): deslop s832 tests * test(gateway): deslop s833 tests * test(gateway): deslop s846 tests * test(gateway): deslop s838 tests * test(talk): deslop s853 tests * test(gateway): deslop s848 tests * test(hooks): deslop s865 tests * test(gateway): deslop s830 tests * test(gateway): deslop s827 tests
What Problem This Solves
Gateway, Talk relay, and hook tests repeat equivalent scenarios and fixture setup, adding maintenance and CI work without distinct behavioral protection.
User Impact
No user-visible behavior changes. This batch changes tests only; production and shared test-support LOC are unchanged.
Why This Change Was Made
Replay ten test-reduction shards onto current main. Consolidate repeated fixtures and table rows while retaining real transport replies, current authority checks, cancellation and cleanup, catalog publication, and deadline-policy assertions.
All ten source commits applied in their listed order without conflicts or skipped hunks. No baseline files changed. None of the changed paths match the current CODEOWNERS rules.
Evidence
Historical coverage below comes from the individual shard runs, not a fresh whole-batch coverage run. s848 has no after-coverage result: its original remote upload failed with ENOSPC. Its baseline was 1,537 covered statements, 937 branches, and 279 functions; no claim is made that its coverage comparison passed.
Per-shard changes and historical coverage
The LOC deltas and source declaration counts below are measured from the supplied commits. Source declarations count it/test declarations, with a parameterized declaration counted once; executed table rows are separate. Small differences from historical shard LOC totals reflect the commits supplied for replay.
Test LOC: +965/−2,550, net −1,585 across 31 files. Production LOC: +0/−0. Shared test-support LOC: +0/−0.
s837
src/gateway/server-methods/send.scheduled-reads.integration.test.tssrc/gateway/server-methods/session-catalog-phase-diagnostics.test.tssrc/gateway/server-methods/session-catalog-provider-diagnostics.test.tssrc/gateway/server-methods/session-catalog-resident-entries.test.tss832
src/gateway/server-methods/models-auth-login.catalog.integration.test.tssrc/gateway/server-methods/models-auth-login.test.tssrc/gateway/server-methods/models-auth-status-rollup.test.tss833
src/gateway/server-methods/models-dispatch.lifecycle.integration.test.tssrc/gateway/server-methods/models-list-result.runtime-choices.test.tssrc/gateway/server-methods/models-list.freshness.integration.test.tssrc/gateway/server-methods/models-list.native-lifecycle.integration.test.tss846
src/gateway/server-methods/web-search-status.test.tssrc/gateway/server-methods/web-search.authority.test.tssrc/gateway/server-methods/web-search.test.tss838
src/gateway/server-methods/sessions-create.child-custody.test.tss853
src/gateway/talk/relay/cancellation-recovery.test.tssrc/gateway/talk/relay/index.test.tssrc/gateway/talk/relay/relay-consult-adoption.regression.test.tss848
src/gateway/server/ws-connection/authenticated-request-dispatch.mutation-authority.test.tssrc/gateway/server/ws-connection/message-handler.worker-metrics.test.tss865
src/hooks/autoreset-regression.test.tssrc/hooks/install.work-deadline.test.tss830
src/gateway/server-methods/cron.history-publication.test.tssrc/gateway/server-methods/cron.history.test.tssrc/gateway/server-methods/cron.list-scoped.test.tssrc/gateway/server-methods/cron.webchat-delivery.test.tssrc/gateway/server-methods/diagnostics.cpu-profile.test.tssrc/gateway/server-methods/diagnostics.heap-profile.test.tss827
src/gateway/server-methods/chat-send-message-injection.isolated-gateway.test.tssrc/gateway/server-methods/chat-send-profile-binding.test.tssrc/gateway/server-methods/chat-send-steering-custody.test.ts