Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Nightly run 45459585582 (at 5d86f05) reported seven missed mutants in
rs/moq-net/src/routeandmodel/resume.rs. That commit predates #9540, so I reran all seven against currentmain(just rs mutants --re ...). Five of them were already killed or excluded there:Subscriber::ranges,knows_edgeandplaces_as_upstream: killed by test(net): kill or exclude 35 resume and relay route mutants #9540'sa_front_reader_answers_for_its_serving_copyand the tests around it.Router::step!=to==: killed by test(net): kill or exclude 35 resume and relay route mutants #9540'sa_request_for_an_unheard_claim_follows_the_route_but_not_back.Router::awaitsmatch guard tofalse: test(net): kill or exclude 35 resume and relay route mutants #9540 excluded it in.cargo/mutants.toml.Two still survived on
main:route/node.rsState::forward,Confirm::Serving if slot.served.availabletotrue.route/reader.rsReader::apply,was.presented && ancestors(..)to||.Approach
Each surviving mutant gets a test that kills it. Neither one is equivalent:
forward: the router applies a message as soon as it is received (Stream::recv), but the lanes only catch up on the nextflush. A claim that was served unavailable and is then received available again leaves a window wherestepalready finds a way, while the slot still says unavailable. In that window a request is answered by what the session serves, which is unroutable. Only the flush routes it. This PR extendsan_unavailable_routed_claim_takes_no_requestto cover that window.apply: the existing test only ended an own claim that had nothing shown above it.a_presented_claim_that_moved_up_goes_offlinenow also ends an own (non-presented) claim nested under one that is still shown. It must end, not go offline. This is what the test's doc comment already promised.I applied each mutant by hand and confirmed the extended test fails under it.
Impact
Alternatives
forwardwait (returnNone) in the flush window instead of refusing. I didn't do it. Refusing matches how the node treats a claim it shows unavailable, and the flush that marks the claim available tells the peer to retry anyway. Waiting could also hang a request if the router and the lanes ever disagree after a flush.Decisions
Follow-ups
None. All seven reported mutants are now killed or already excluded on
main.Validation
just rs mutants --re ...onmain: of the 33 mutants the filter selected, 31 were caught and 2 missed (the two above).just checkpasses.Models
Size: S
Implementer: Claude Code, claude-opus-5-5, unknown
🤖 Generated with Claude Code
(Written by Opus 5.5)