Repository navigation
test(moq-net): a request waiting for a way fails once its route ends - #9312
Conversation
Kills the nightly mutant replacing || with && in Router::awaits: an ended route keeps its copy of the claims, so only the routed check fails it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. WalkthroughThe change adds a test for a pending request after the claim’s serving session closes. The test delivers Merge Risk:
|
There was a problem hiding this comment.
✅ No new issues found.
Approach: sound. A node test drives the surviving Router::awaits mutant by ending the route with a Dead while keeping the claims known.
Reviewed changes
a_request_waiting_for_a_way_fails_once_its_route_endsinrs/moq-net/src/route/node/tests.rs: sets up a route and claims, parks a request, then sendsDeadfor the route's hop. It asserts the waiter is woken and that both the picked and namedpoll_forwardcalls returnReady(None). It follows the setup style of the neighbouring test.
claude-sonnet-5-5 | 𝕏

Problem
Nightly
mutantsreports a survivor (job):rs/moq-net/src/route/relay.rs:2550:27: replace || with && in Router::awaits. No test reachesawaitswith the origin's claims known but no route to it. The only test of a lost route withdraws the offer, which also forgets the claims, soawaitsreturns false at theknowncheck whatever the guard says.Approach
The guard is not redundant. A neighbour's
Deadfor a session on the route's path ends the route but keeps the heard copy of its claims, sobestloses the origin whileknownkeeps an available claim of the best precedence. There,&&would hold the request forever instead of failing it. The new node test drives that: a request waiting for a way, then aDeadon the route's link, after whichpoll_forwardfails both the picked and the named request.Impact
None: test only. No public API or wire change.
Alternatives
Excluding the mutant in
.cargo/mutants.toml: rejected, since the mutant changes behavior.Caused by
Router::awaitswithout a test of an ended route whose claims stay known (found by check: Nightly mutants)Validation
cargo mutants -f rs/moq-net/src/route/relay.rs --re 'replace \|\| with && in Router<N, I, A>::awaits'now lists the mutant under caught. That same run reported one more survivor,resume.rs:1811:5: delete field ranges from struct Subscription expression in Reader::resumed, which belongs to the resume-route-mutants quest.just rs test -p moq-net --features async --lib -E 'test(/a_request_waiting_for_a_way/)'passes all three tests.just checkpasses.Follow-ups
resume.rs:1811survivor above, forquest/m0/nightly/resume-route-mutants.md.Models
Size: XS
Implementer: Claude, claude-opus-5-5, unknown effort
🤖 Generated with Claude Code
(Written by Claude Opus 5.5)
Review
Rewritten by
quest reviewafter each round.Head: 3d6ab02
Base: origin/main at c63adc8
Risk: low,
This adds only a routing regression test, so no consumer or deployed peer behavior can break, and a revert fully removes the change.Classified: low by Codex, gpt-6.1-sol, low effort, session
01a1ff4f-1f8e-7fd3-865f-3761b5836d49Reviewer: Codex, gpt-6.1-sol, medium effort
Session:
01a1ff4f-2f3d-7af2-bf1f-2ddc0f3f0a1a, round 1Score: 10/10,
The focused routing regression tests cover wakeup and forwarding failure after a route ends, with no actionable defects found by source inspection; tests were not run as instructed.Rounds: 1; first round 0; findings 0: fixed 0, refuted 0, open 0
Findings: none