Repository navigation
refactor(test): consolidate media dedupe coverage - #184832
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: needs maintainer review before merge. What this changesMoves the mixed single-URL and URL-array deduplication case into the reply-payload test table and removes its standalone file. Example: A reply contains one.png plus [two.png, three.png], and one.png and two.png were already sent.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR preserves the media-deduplication contract while consolidating its coverage into the existing owner suite; no actionable defects were found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherReply deduplication receives outgoing payloads and previously sent media references, removes matching media, and passes remaining content to delivery. flowchart LR
A[Outgoing reply payloads] --> C[Media deduplication]
B[Previously sent media references] --> C
C --> D[Remaining reply content]
D --> E[Reply delivery]
F[Consolidated owner tests] --> C
Technical reviewBest possible solution: Keep the mixed-field contract in the existing deduplication table and remove the redundant standalone suite as proposed. Do we have a high-confidence way to reproduce the issue? There is no reported runtime bug to reproduce; source inspection confirms the same mixed-field case is exercised before and after relocation. Is this the best way to solve the issue? The smallest complete change is the proposed table insertion and standalone-file removal, preserving the distinct mixed-field failure without adding helpers or production machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 99f7a303e3ff. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -9. Total -9 across 2 files. Added test files: 0. View PR surface stats
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 26, 2026, 1:35 PM ET / 17:35 UTC. |
|
Merged via squash auto-merge.
|
What Problem This Solves
A leftover media-retirement probe runs in a separate file instead of the existing reply-payload deduplication suite.
User Impact
No user-visible behavior changes. The lowercase
ReplyPayload.mediaUrlandmediaUrlscompatibility contract remains covered.Why This Change Was Made
Move the mixed single/array media case into the existing owner table with identical HTTP inputs and expected output, then remove the standalone file. The original array-only, unmatched-media, delivery-operation, voice-metadata, empty-evidence and Windows cases remain unchanged.
This completes the owner consolidation started in #161144 while preserving the non-goal contract introduced in #113496. No production code or test helpers change. Test case count is unchanged; one test file and nine net test lines are removed.
Evidence
two.png. Production source was then restored byte-for-byte.git diff --checkpassed.45b58de158d25ee97f132799431fa13ddf37d8c9. Script exports and production unused files passed.isCliRoutedConfigPatchexport. Its separate cleanup is owned by chore: keep CLI config patch predicate module-local #184824.scripts/perf/session-actor-receipt-measure.tsbenchmark. Neither finding is caused by or suppressed in this test-only patch; their owning files and Knip inputs are unchanged.