Repository navigation
refactor: share channel fork test fixtures - #190955
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 changesThis PR consolidates repeated fork-test session setup into one local helper and documents two existing Telegram mocks. Example: Run the fork-refusal tests without automatic group replies.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this collaborator-authored draft makes a focused test-only simplification, preserves coverage, and introduces no actionable defect. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe fixture supplies isolated configuration, a source session, and transcript scope to shared-command tests; Telegram adapter tests separately isolate native topic creation and binding. flowchart TD
A[Isolated test state] --> B[Local source fixture]
B --> C[Existing session creation service]
C --> D[Fork command scenarios]
D --> E[Transcript and delivery assertions]
F[Telegram adapter mocks] --> E
Technical reviewBest possible solution: Retain the local fixture extraction with its explicit refusal configuration and unchanged scenario assertions. Do we have a high-confidence way to reproduce the issue? This PR reports duplicated test setup rather than a product bug; the repeated base blocks and their equivalent replacements are directly inspectable. Is this the best way to solve the issue? Applying pr-simplify steps 1–3, the invariant is unchanged scenario inputs and coverage; one local helper removes duplication without introducing another state owner or test seam. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ea6f8af98782. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests -29. Total -29 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 November 2, 2026, 2:45 AM ET / 07:45 UTC. |
cffb3f7 to
70dd219
Compare
Co-authored-by: vincentkoc <[email protected]>
a594e19 to
1b1ef47
Compare
|
Merged via squash auto-merge.
|
Co-authored-by: vincentkoc <[email protected]>
What Problem This Solves
The threaded-fork tests repeat isolated source-session setup in four scenarios.
User Impact
No runtime or user-visible behavior changes. All 10 shared-command cases and all 49 assertion statements remain, including acknowledgment failure, active-source prefix selection, retained native failures, and private-audience recovery.
Why This Change Was Made
Use one local fixture helper while preserving automatic-reply configuration and the refusal fixture without that setting.
The prerequisite #190783 is merged. This incremental follow-up now targets main at 1b1ef47, based on landed b515cc7. The original core fixture blob is identical; two Telegram isolation explanations are already in the parent and no longer part of this diff.
Evidence