Repository navigation
fix(net): the failover model's reader waits for a group its relay can still ask for - #9430
Conversation
… still ask for A reader that joins a copy asked from a later group no longer ends cleanly while its relay could still recover the earlier group, as a copy waits for a recovery after its track finished. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ver model Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 11 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
There was a problem hiding this comment.
✅ No new issues found.
Approach: sound. The fix makes the model's Drained wait on the same condition that enables Ask, so it removes the false clean end without adding a deadlock. It does this instead of modelling follow_demand, which would cover only joins that happen before the copy's subscription ends.
Reviewed changes. I reviewed the full diff: the FailoverChain.tla predicate changes and the verify-failover skill note that keeps it in sync.
Askable(u, g). Its guard matches theAnswering(u)branch ofAskterm for term:u \in Relays,front[u].end # "err",Live(e0),g \notin ask \cup fetch,fr[g] = -1. When it blocksDrained, the reader's ownLacks(e, g)satisfiesmissing, soAskis enabled. The no-new-deadlock argument in the PR body holds.Drainedgains~Askable. A relay whose answering copy was asked from a later group no longer ends a downstream read cleanly when that copy can't prove the lower group is absent.MayLandcounts in-flight fetches. A fetch now counts until it lands, whether or not the copy's subscription has ended. This matchesHandOut, which already serves a fetched group after the end.- Skill coverage. The sync note and the
poll_endrow now nameAskableandMayLand.
ℹ️ MayLand's wider meaning also reaches Ask and LetGo
MayLand is shared, so the fetch disjunct also changes two other steps:
Ask'smissingbranch. It can no longer send a missing-group ask toAnswering(u)while another copy, such asServing(u)after a short-group fetch, hasgin flight.LetGo. It keeps a replaced copy while any short group's fetch is still in flight.
Both look benign. If the fetching copy dies, MayLand turns false again and Ask becomes enabled. The exhaustive runs of FailoverChain.cfg, Leave.cfg and Deaths.cfg pass. The PR body doesn't mention these effects, so the next model-to-code sync should check that Copy::retains and the recovery's dedupe match.
claude-opus-5-5 | 𝕏
…dlock # Conflicts: # .claude/skills/verify-failover/SKILL.md
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes. Since the last review, the only change is a merge from main that resolves a conflict with #9402.
- Kept both sync-note clauses. The
verify-failoverSKILL.md sync note now names both this PR'sAskable/MayLandand #9402'sStopAt. Thepoll_endrow keepsAskableandMayLand. - The model's predicates are unchanged. The merge leaves the
FailoverChain.tlahunk as it was.Stoppednarrows only a replaced copy's.stopframes and never touches.askor.fetch, so it doesn't interact withAskableorMayLand.
claude-opus-5-5 | 𝕏
|
quest land watch: the merge queue removed this pull request at ba849f6 because its The land fixer works on it in the background, and the watcher re-enqueues it at the back of the queue once it is fixed or judged flaky, or hands it back here with what it needs.
…_keep_alive_runs_during_continuous_output
PASS [ 1.378s] (11196/11244) moq-webrtc tests::a_reoffer_from_the_same_address_plays
PASS [ 19.943s] (11197/11244) moq-net::integration range_union_fit::a_union_too_large_for_one_message_asks_a_covering_superset
PASS [ 3.067s] (11198/11244) moq-uring::integration endpoint::an_unanswered_dial_times_out
PASS [ 3.070s] (11199/11244) moq-uring::integration endpoint::cancelling_a_dial_releases_its_connection
PASS [ 0.062s] (11200/11244) moq-uring::integration identity::a_stopped_worker_fails_dials_and_accepts
PASS [ 0.061s] (11201/11244) moq-uring::integration identity::an_endpoint_refuses_a_stopped_worker
PASS [ 3.067s] (11202/11244) moq-uring::integration endpoint::the_backlog_bounds_pending_handshakes
PASS [ 3.077s] (11203/11244) moq-uring::integration endpoint::the_backlog_bounds_queued_connections
PASS [ 0.286s] (11204/11244) moq-uring::integration endpoint::unsupported_version_is_negotiated_only_by_servers
PASS [ 0.072s] (11205/11244) moq-uring::integration local_addr::a_wildcard_endpoint_handshakes_on_a_secondary_address
PASS [ 0.120s] (11206/11244) moq-uring::integration local_addr::a_dual_stack_wildcard_answers_a_v4_peer_from_the_address_reached
PASS [ 0.112s] (11207/11244) moq-uring::integration local_addr::a_v4_wildcard_answers_from_the_address_reached
PASS [ 0.110s] (11208/11244) moq-uring::integration mtu::discovery_finds_a_larger_mtu
PASS [ 0.159s] (11209/11244) moq-uring::integration mtu::a_path_at_the_ipv6_minimum_connects
PASS [ 0.132s] (11210/11244) moq-uring::integration qlog::a_connection_writes_a_trace
PASS [ 0.010s] (11211/11244) moq-uring::integration qlog::a_missing_directory_is_refused
PASS [ 0.214s] (11212/11244) moq-uring::integration mtu::discovery_stays_off_by_default
PASS [ 0.420s] (11213/11244) moq-uring::integration mtu::a_shrinking_path_falls_back_to_the_floor
PASS [ 0.099s] (11214/11244) moq-uring::integration session::lite_session_over_the_worker
PASS [ 0.692s] (11215/11244) moq-uring::integration identity::an_endpoint_runs_on_the_worker_that_adopted_its_socket
PASS [ 0.213s] (11216/11244) moq-uring::integration receive_credit::partial_frame_gives_way
PASS [ 0.095s] (11217/11244) moq-uring::integration session::two_lite_sessions_share_the_server_socket
PASS [ 0.067s] (11218/11244) moq-uring::integration teardown::a_published_close_has_already_left_the_client
PASS [ 0.060s] (11219/11244) moq-uring::integration teardown::a_send_staged_on_the_way_out_still_goes
PASS [ 0.068s] (11220/11244) moq-uring::integration teardown::handles_outliving_the_worker_fail
PASS [ 0.069s] (11221/11244) moq-uring::integration web::a_capsule_pipelined_with_the_connect_closes_the_session
PASS [ 0.071s] (11222/11244) moq-uring::integration web::a_clean_finish_closes_a_stream
PASS [ 0.071s] (11223/11244) moq-uring::integration web::a_dropped_session_delivers_its_close
PASS [ 0.073s] (11224/11244) moq-uring::integration web::a_dropped_stream_carries_a_webtransport_code
PASS [ 0.102s] (11225/11244) moq-uring::integration web::a_rejection_refuses_non_error_statuses
PASS [ 0.071s] (11226/11244) moq-uring::integration web::a_reset_stream_keeps_its_header
PASS [ 0.072s] (11227/11244) moq-uring::integration web::a_stray_datagram_is_dropped
PASS [ 0.071s] (11228/11244) moq-uring::integration web::a_stream_reset_before_its_header_fits_never_reaches_the_session
PASS [ 0.069s] (11229/11244) moq-uring::integration web::an_abandoned_handshake_closes_the_connection
PASS [ 0.098s] (11230/11244) moq-uring::integration web::an_offset_stays_acknowledged_through_a_reset
PASS [ 0.067s] (11231/11244) moq-uring::integration web::an_unpolled_handshake_closes_the_connection
PASS [ 0.073s] (11232/11244) moq-uring::integration web::an_open_waits_only_for_stream_credit
PASS [ 0.070s] (11233/11244) moq-uring::integration web::an_unread_lease_holds_the_close_watch_off
PASS [ 0.071s] (11234/11244) moq-uring::integration web::cancelling_before_peer_settings_closes_the_connection
PASS [ 0.080s] (11235/11244) moq-uring::integration web::cancelling_while_awaiting_connect_closes_the_connection
PASS [ 0.081s] (11236/11244) moq-uring::integration web::lite_session_over_webtransport
PASS [ 0.071s] (11237/11244) moq-uring::integration web::the_last_web_session_drop_delivers_a_close_capsule
PASS [ 0.073s] (11238/11244) moq-uring::integration web::webtransport_echo_end_to_end
PASS [ 0.095s] (11239/11244) moq-uring::integration web::webtransport_accepts_a_buffered_uni_after_the_peer_close
PASS [ 0.265s] (11240/11244) moq-uring::integration workers::a_steered_group_serves_a_shared_port
PASS [ 0.544s] (11241/11244) moq-uring::integration web::partial_headers_do_not_block_ready_streams
PASS [ 1.070s] (11242/11244) moq-uring::integration web::a_rejection_reaches_the_peer
FAIL [ 10.596s] (11243/11244) moq-webrtc tests::a_whip_publisher_past_its_cap_plus_burst_is_closed
stdout ───
running 1 test
test tests::a_whip_publisher_past_its_cap_plus_burst_is_closed ... FAILED
failures:
failures:
tests::a_whip_publisher_past_its_cap_plus_burst_is_closed
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 110 filtered out; finished in 10.58s
stderr ───
thread 'tests::a_whip_publisher_past_its_cap_plus_burst_is_closed' (434166) panicked at rs/moq-webrtc/src/lib.rs:692:14:
the publisher past its cap stayed open: Elapsed
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Cancelling due to test failure: 1 test still running
PASS [ 45.347s] (11244/11244) moq-relay::integration quic_sim::concurrent_groups_carry_bulk_transfers_losslessly
────────────
Summary [ 96.212s] 11244 tests run: 11243 passed, 1 failed, 146 skipped
FAIL [ 10.596s] (11243/11244) moq-webrtc tests::a_whip_publisher_past_its_cap_plus_burst_is_closed
stdout ───
running 1 test
test tests::a_whip_publisher_past_its_cap_plus_burst_is_closed ... FAILED
failures:
failures:
tests::a_whip_publisher_past_its_cap_plus_burst_is_closed
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 110 filtered out; finished in 10.58s
stderr ───
thread 'tests::a_whip_publisher_past_its_cap_plus_burst_is_closed' (434166) panicked at rs/moq-webrtc/src/lib.rs:692:14:
the publisher past its cap stayed open: Elapsed
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: test run failed
mbx[cache]: object cache: 318 hits, 457 misses, 75 bypassed; 0 B downloaded, 0 B uploaded, 2.9 GiB stored locally
mbx[cache]: 5m 6s session; 14m 9s estimated compiler time avoided (summed across compilations)
mbx[cache]: bypass reasons: 75 unsupported-crate-type
mbx[cache]: Cargo artifact reuse and CI cache archive transfers are not included above
mbx[savings]: the running total stands at 3d 21h across 8543 builds. nobody is counting except the box.
error: recipe `test` failed on line 362 with exit code 100
error: recipe `test-changed` failed on line 118 with exit code 100
##[endgroup]
##[error]ci: test rs failed
##[error]Process completed with exit code 100.
##[group]Run actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
with:
name: cargo-timings
path: target/cargo-timings/cargo-timing-*.html
if-no-files-found: ignore
retention-days: 14
compression-level: 6
overwrite: false
include-hidden-files: false
archive: true
env:
BASE: 1fd8509de7db83b29257936afbc4eee6fce2dfbf
CHECK_FAIL_FAST: 1
NEXTEST_TEST_THREADS: 24
MBX_CACHE_LINKS: 1
MBX_REMOTE_URL:
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: cargo-timings.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 85515
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 851b474a4ef39ff33536c035ba2bdcaed664cb485c5935faa6ae4b9ce3551c00
Finalizing artifact upload
Artifact cargo-timings successfully finalized. Artifact ID 14782454077
Artifact cargo-timings has been successfully uploaded! Final size is 85515 bytes. Artifact ID is 14782454077
Artifact download URL: https://github.com/moq-dev/moq/actions/runs/45089229485/artifacts/14782454077
Post job cleanup.
##[start-action display=Run jdx/mr-boxington-action@88acf2bb50552c7c508cbac13e5f8c576b95b1de;id=__8d4e1bbf-be2f-4184-be83-59108fce236f.mbx]
##[end-action id=__8d4e1bbf-be2f-4184-be83-59108fce236f.mbx;outcome=skipped;conclusion=skipped;duration_ms=0]
Post job cleanup.
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git version
git version 2.56.0
Temporarily overriding HOME='/var/cache/github-runner-work/_temp/0ff3f669-d67d-4370-bb66-079ec97a3426' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git config --global --add safe.directory /var/cache/github-runner-work/moq/moq
Removing SSH command configuration
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git config --local --name-only --get-regexp core\.sshCommand
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git config --local --name-only --get-regexp ^includeIf\.gitdir:
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
A job completed hook has been configured by the self-hosted runner administrator
##[group]Run '/nix/store/qrn6ds64bzvwbm5nwf245ifz2c6jb9xw-ci-cache-gc.sh/bin/ci-cache-gc.sh'
shell: /nix/store/lfm00fnq66xfgbn099vqckabyl5jllz6-bash-interactive-5.3p20/bin/bash --noprofile --norc -e -o pipefail {0}
##[endgroup]
[WARN ] learned incremental state still holds 21.9 MiB after collection, over the 0 B budget; active units, untracked checkouts, and checkout bookkeeping are kept
9.6 GiB free on the disk holding /var/cache/github-runner-home/.cache/mbx, under the 25.0 GiB minimum; collecting private state and managed targets past their budgets, then shared cache objects if the cache disk is short
[WARN ] learned incremental state still holds 21.9 MiB after collection, over the 0 B budget; active units, untracked checkouts, and checkout bookkeeping are kept
evicted 23587 objects and 4055 action results (15.3 GiB logical); 3.4 GiB logical remain
dropped 3 session event streams
removed 15 generated source trees (385.9 KiB logical); 0 B logical remain
evicted 23587 shared cache objects and 4055 action results below gc.max_size because the disk was under gc.min_free_size (15.3 GiB logical freed)
evicted 0 objects and 0 action results (0 B logical); 3.4 GiB logical remain
Cleaning up orphan processes
(written by quest land watch) |
|
Codex land fixer: FAIL [ 10.596s] (11243/11244) moq-webrtc tests::a_whip_publisher_past_its_cap_plus_burst_is_closed
stdout ───
running 1 test
test tests::a_whip_publisher_past_its_cap_plus_burst_is_closed ... FAILED
failures:
failures:
tests::a_whip_publisher_past_its_cap_plus_burst_is_closed
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 110 filtered out; finished in 10.58s
stderr ───
thread 'tests::a_whip_publisher_past_its_cap_plus_burst_is_closed' (434166) panicked at rs/moq-webrtc/src/lib.rs:692:14:
the publisher past its cap stayed open: Elapsed
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: test run failed
mbx[cache]: object cache: 318 hits, 457 misses, 75 bypassed; 0 B downloaded, 0 B uploaded, 2.9 GiB stored locally
mbx[cache]: 5m 6s session; 14m 9s estimated compiler time avoided (summed across compilations)
mbx[cache]: bypass reasons: 75 unsupported-crate-type
mbx[cache]: Cargo artifact reuse and CI cache archive transfers are not included above
mbx[savings]: the running total stands at 3d 21h across 8543 builds. nobody is counting except the box.
error: recipe `test` failed on line 362 with exit code 100
error: recipe `test-changed` failed on line 118 with exit code 100
##[endgroup]
##[error]ci: test rs failed
##[error]Process completed with exit code 100.
##[group]Run actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
with:
name: cargo-timings
path: target/cargo-timings/cargo-timing-*.html
if-no-files-found: ignore
retention-days: 14
compression-level: 6
overwrite: false
include-hidden-files: false
archive: true
env:
BASE: 1fd8509de7db83b29257936afbc4eee6fce2dfbf
CHECK_FAIL_FAST: 1
NEXTEST_TEST_THREADS: 24
MBX_CACHE_LINKS: 1
MBX_REMOTE_URL:
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: cargo-timings.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 85515
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 851b474a4ef39ff33536c035ba2bdcaed664cb485c5935faa6ae4b9ce3551c00
Finalizing artifact upload
Artifact cargo-timings successfully finalized. Artifact ID 14782454077
Artifact cargo-timings has been successfully uploaded! Final size is 85515 bytes. Artifact ID is 14782454077
Artifact download URL: https://github.com/moq-dev/moq/actions/runs/45089229485/artifacts/14782454077
Post job cleanup.
##[start-action display=Run jdx/mr-boxington-action@88acf2bb50552c7c508cbac13e5f8c576b95b1de;id=__8d4e1bbf-be2f-4184-be83-59108fce236f.mbx]
##[end-action id=__8d4e1bbf-be2f-4184-be83-59108fce236f.mbx;outcome=skipped;conclusion=skipped;duration_ms=0]
Post job cleanup.
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git version
git version 2.56.0
Temporarily overriding HOME='/var/cache/github-runner-work/_temp/0ff3f669-d67d-4370-bb66-079ec97a3426' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git config --global --add safe.directory /var/cache/github-runner-work/moq/moq
Removing SSH command configuration
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git config --local --name-only --get-regexp core\.sshCommand
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git config --local --name-only --get-regexp ^includeIf\.gitdir:
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
A job completed hook has been configured by the self-hosted runner administrator
##[group]Run '/nix/store/qrn6ds64bzvwbm5nwf245ifz2c6jb9xw-ci-cache-gc.sh/bin/ci-cache-gc.sh'
shell: /nix/store/lfm00fnq66xfgbn099vqckabyl5jllz6-bash-interactive-5.3p20/bin/bash --noprofile --norc -e -o pipefail {0}
##[endgroup]
[WARN ] learned incremental state still holds 21.9 MiB after collection, over the 0 B budget; active units, untracked checkouts, and checkout bookkeeping are kept
9.6 GiB free on the disk holding /var/cache/github-runner-home/.cache/mbx, under the 25.0 GiB minimum; collecting private state and managed targets past their budgets, then shared cache objects if the cache disk is short
[WARN ] learned incremental state still holds 21.9 MiB after collection, over the 0 B budget; active units, untracked checkouts, and checkout bookkeeping are kept
evicted 23587 objects and 4055 action results (15.3 GiB logical); 3.4 GiB logical remain
dropped 3 session event streams
removed 15 generated source trees (385.9 KiB logical); 0 B logical remain
evicted 23587 shared cache objects and 4055 action results below gc.max_size because the disk was under gc.min_free_size (15.3 GiB logical freed)
evicted 0 objects and 0 action results (0 B logical); 3.4 GiB logical remain
Cleaning up orphan processes
== The pull request's own checks on ba849f69718cc4a740914791830e0004f8e0ff1f ==
Its own CI ran these on the pull request, not in the merge queue. They are a signal only, and gate nothing.
skipped optional Dependabot / Request landing (https://github.com/moq-dev/moq/actions/runs/45082450214/job/137393425969)
skipped required Queue / Queue (https://github.com/moq-dev/moq/actions/runs/45082452773/job/137393432088)
skipped required Queue / Queue (https://github.com/moq-dev/moq/actions/runs/45082457963/job/137393448412)
skipped optional Queue / Report Queue (https://github.com/moq-dev/moq/actions/runs/45082452773/job/137393474024)
skipped optional Queue / Report Queue (https://github.com/moq-dev/moq/actions/runs/45082457963/job/137393447577)
neutral optional CodeRabbit (https://coderabbit.ai?utm_source=cr_app&utm_medium=github)
success optional pullfrog (https://github.com/moq-dev/moq/actions/runs/45082456546)
The fixer's output ended with: quest land check: truncated check protocol (written by Codex) |
|
quest land watch: the merge queue removed this pull request at ba849f6 because A person's removal ends the pick: the watcher leaves this pull request alone until a maintainer enqueues it again. (written by quest land watch) |
|
quest land watch: the merge queue removed this pull request at ba849f6 because its The land fixer works on it in the background, and the watcher re-enqueues it at the back of the queue once it is fixed or judged flaky, or hands it back here with what it needs.
…le>>::{closure#0}
25: <core::panic::unwind_safe::AssertUnwindSafe<tokio::runtime::task::harness::poll_future<core::pin::Pin<alloc::boxed::Box<moq_srt::server::tests::egress::{closure#0}::{closure#1}>>, alloc::sync::Arc<tokio::runtime::scheduler::current_thread::Handle>>::{closure#0}> as core::ops::function::FnOnce<()>>::call_once
26: std::panicking::catch_unwind::do_call::<core::panic::unwind_safe::AssertUnwindSafe<tokio::runtime::task::harness::poll_future<core::pin::Pin<alloc::boxed::Box<moq_srt::server::tests::egress::{closure#0}::{closure#1}>>, alloc::sync::Arc<tokio::runtime::scheduler::current_thread::Handle>>::{closure#0}>, core::task::poll::Poll<core::result::Result<(), moq_srt::error::Error>>>
27: __rust_try
28: std::panic::catch_unwind::<core::panic::unwind_safe::AssertUnwindSafe<tokio::runtime::task::harness::poll_future<core::pin::Pin<alloc::boxed::Box<moq_srt::server::tests::egress::{closure#0}::{closure#1}>>, alloc::sync::Arc<tokio::runtime::scheduler::current_thread::Handle>>::{closure#0}>, core::task::poll::Poll<core::result::Result<(), moq_srt::error::Error>>>
29: tokio::runtime::task::harness::poll_future::<core::pin::Pin<alloc::boxed::Box<moq_srt::server::tests::egress::{closure#0}::{closure#1}>>, alloc::sync::Arc<tokio::runtime::scheduler::current_thread::Handle>>
30: <tokio::runtime::task::harness::Harness<core::pin::Pin<alloc::boxed::Box<moq_srt::server::tests::egress::{closure#0}::{closure#1}>>, alloc::sync::Arc<tokio::runtime::scheduler::current_thread::Handle>>>::poll_inner
31: <tokio::runtime::task::harness::Harness<core::pin::Pin<alloc::boxed::Box<moq_srt::server::tests::egress::{closure#0}::{closure#1}>>, alloc::sync::Arc<tokio::runtime::scheduler::current_thread::Handle>>>::poll
32: tokio::runtime::task::raw::poll::<core::pin::Pin<alloc::boxed::Box<moq_srt::server::tests::egress::{closure#0}::{closure#1}>>, alloc::sync::Arc<tokio::runtime::scheduler::current_thread::Handle>>
33: <tokio::runtime::task::raw::RawTask>::poll
34: <tokio::runtime::task::LocalNotified<alloc::sync::Arc<tokio::runtime::scheduler::current_thread::Handle>>>::run
35: <tokio::runtime::scheduler::current_thread::Context>::run_task::{closure#0}::{closure#0}
36: <tokio::runtime::scheduler::current_thread::Context>::run_task::{closure#0}
37: <tokio::runtime::scheduler::current_thread::Context>::enter::<(), <tokio::runtime::scheduler::current_thread::Context>::run_task::{closure#0}>
38: <tokio::runtime::scheduler::current_thread::Context>::run_task
39: <tokio::runtime::scheduler::current_thread::CoreGuard>::block_on::<core::pin::Pin<&mut dyn core::future::future::Future<Output = ()>>>::{closure#0}
40: <tokio::runtime::scheduler::current_thread::CoreGuard>::enter::<<tokio::runtime::scheduler::current_thread::CoreGuard>::block_on<core::pin::Pin<&mut dyn core::future::future::Future<Output = ()>>>::{closure#0}, core::option::Option<()>>::{closure#0}
41: <tokio::runtime::context::scoped::Scoped<tokio::runtime::scheduler::Context>>::set::<<tokio::runtime::scheduler::current_thread::CoreGuard>::enter<<tokio::runtime::scheduler::current_thread::CoreGuard>::block_on<core::pin::Pin<&mut dyn core::future::future::Future<Output = ()>>>::{closure#0}, core::option::Option<()>>::{closure#0}, (alloc::boxed::Box<tokio::runtime::scheduler::current_thread::Core>, core::option::Option<()>)>
42: tokio::runtime::context::set_scheduler::<(alloc::boxed::Box<tokio::runtime::scheduler::current_thread::Core>, core::option::Option<()>), <tokio::runtime::scheduler::current_thread::CoreGuard>::enter<<tokio::runtime::scheduler::current_thread::CoreGuard>::block_on<core::pin::Pin<&mut dyn core::future::future::Future<Output = ()>>>::{closure#0}, core::option::Option<()>>::{closure#0}>::{closure#0}
43: <std::thread::local::LocalKey<tokio::runtime::context::Context>>::try_with::<tokio::runtime::context::set_scheduler<(alloc::boxed::Box<tokio::runtime::scheduler::current_thread::Core>, core::option::Option<()>), <tokio::runtime::scheduler::current_thread::CoreGuard>::enter<<tokio::runtime::scheduler::current_thread::CoreGuard>::block_on<core::pin::Pin<&mut dyn core::future::future::Future<Output = ()>>>::{closure#0}, core::option::Option<()>>::{closure#0}>::{closure#0}, (alloc::boxed::Box<tokio::runtime::scheduler::current_thread::Core>, core::option::Option<()>)>
44: <std::thread::local::LocalKey<tokio::runtime::context::Context>>::with::<tokio::runtime::context::set_scheduler<(alloc::boxed::Box<tokio::runtime::scheduler::current_thread::Core>, core::option::Option<()>), <tokio::runtime::scheduler::current_thread::CoreGuard>::enter<<tokio::runtime::scheduler::current_thread::CoreGuard>::block_on<core::pin::Pin<&mut dyn core::future::future::Future<Output = ()>>>::{closure#0}, core::option::Option<()>>::{closure#0}>::{closure#0}, (alloc::boxed::Box<tokio::runtime::scheduler::current_thread::Core>, core::option::Option<()>)>
45: tokio::runtime::context::set_scheduler::<(alloc::boxed::Box<tokio::runtime::scheduler::current_thread::Core>, core::option::Option<()>), <tokio::runtime::scheduler::current_thread::CoreGuard>::enter<<tokio::runtime::scheduler::current_thread::CoreGuard>::block_on<core::pin::Pin<&mut dyn core::future::future::Future<Output = ()>>>::{closure#0}, core::option::Option<()>>::{closure#0}>
46: <tokio::runtime::scheduler::current_thread::CoreGuard>::enter::<<tokio::runtime::scheduler::current_thread::CoreGuard>::block_on<core::pin::Pin<&mut dyn core::future::future::Future<Output = ()>>>::{closure#0}, core::option::Option<()>>
47: <tokio::runtime::scheduler::current_thread::CoreGuard>::block_on::<core::pin::Pin<&mut dyn core::future::future::Future<Output = ()>>>
48: <tokio::runtime::scheduler::current_thread::CurrentThread>::block_on::<core::pin::Pin<&mut dyn core::future::future::Future<Output = ()>>>::{closure#0}
49: tokio::runtime::context::runtime::enter_runtime::<<tokio::runtime::scheduler::current_thread::CurrentThread>::block_on<core::pin::Pin<&mut dyn core::future::future::Future<Output = ()>>>::{closure#0}, ()>
50: <tokio::runtime::scheduler::current_thread::CurrentThread>::block_on::<core::pin::Pin<&mut dyn core::future::future::Future<Output = ()>>>
51: <tokio::runtime::runtime::Runtime>::block_on_inner::<core::pin::Pin<&mut dyn core::future::future::Future<Output = ()>>>
52: <tokio::runtime::runtime::Runtime>::block_on::<core::pin::Pin<&mut dyn core::future::future::Future<Output = ()>>>
53: moq_srt::server::tests::an_unreplaced_end_closes_the_srt_stream_once_the_follow_ends
54: moq_srt::server::tests::an_unreplaced_end_closes_the_srt_stream_once_the_follow_ends::{closure#0}
55: <moq_srt::server::tests::an_unreplaced_end_closes_the_srt_stream_once_the_follow_ends::{closure#0} as core::ops::function::FnOnce<()>>::call_once
56: test::__rust_begin_short_backtrace::<core::result::Result<(), alloc::string::String>, fn() -> core::result::Result<(), alloc::string::String>>
57: test::run_test::{closure#0}
58: std::sys::backtrace::__rust_begin_short_backtrace::<test::run_test::{closure#1}, ()>
59: <std::thread::lifecycle::spawn_unchecked<test::run_test::{closure#1}, ()>::{closure#1} as core::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
60: <std::sys::thread::unix::Thread>::new::thread_start
61: start_thread
62: __clone3
(test aborted with signal 6: SIGABRT)
warning: 1220/11299 tests were not run due to test failure (run with --no-fail-fast to run all tests, or run with --max-fail)
error: test run failed
mbx[cache]: object cache: 0 hits, 100 misses, 73 bypassed; 0 B downloaded, 0 B uploaded, 36.1 KiB stored locally
mbx[cache]: 3m 30s session; 0s estimated compiler time avoided (summed across compilations)
mbx[cache]: bypass reasons: 73 unsupported-crate-type
mbx[cache]: Cargo artifact reuse and CI cache archive transfers are not included above
mbx[savings]: linked 1.0 TiB into place. copying is for people with disk to spare.
error: recipe `test` failed on line 363 with exit code 100
error: recipe `test-changed` failed on line 118 with exit code 100
##[endgroup]
##[error]ci: test rs failed
##[error]Process completed with exit code 100.
##[group]Run actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
with:
name: cargo-timings
path: target/cargo-timings/cargo-timing-*.html
if-no-files-found: ignore
retention-days: 14
compression-level: 6
overwrite: false
include-hidden-files: false
archive: true
env:
BASE: b87e520368aaa47d500c94ff1d4b14a584557747
CHECK_FAIL_FAST: 1
NEXTEST_TEST_THREADS: 24
MBX_CACHE_LINKS: 1
MBX_REMOTE_URL:
##[endgroup]
With the provided path, there will be 5 files uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: cargo-timings.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 290259
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 8e89287e3d609d02fccab41814b3013fc65c36d08e69df84af0fa968c9e8735f
Finalizing artifact upload
Artifact cargo-timings successfully finalized. Artifact ID 14799005063
Artifact cargo-timings has been successfully uploaded! Final size is 290259 bytes. Artifact ID is 14799005063
Artifact download URL: https://github.com/moq-dev/moq/actions/runs/45131661217/artifacts/14799005063
Post job cleanup.
##[start-action display=Run jdx/mr-boxington-action@88acf2bb50552c7c508cbac13e5f8c576b95b1de;id=__22e832cb-4fe6-4cca-835e-85a3766ca911.mbx]
##[end-action id=__22e832cb-4fe6-4cca-835e-85a3766ca911.mbx;outcome=skipped;conclusion=skipped;duration_ms=0]
Post job cleanup.
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git version
git version 2.56.0
Temporarily overriding HOME='/var/cache/github-runner-work/_temp/86e9a078-7e3e-4bca-a4a3-dd0148660e73' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git config --global --add safe.directory /var/cache/github-runner-work/moq/moq
Removing SSH command configuration
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git config --local --name-only --get-regexp core\.sshCommand
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git config --local --name-only --get-regexp ^includeIf\.gitdir:
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
A job completed hook has been configured by the self-hosted runner administrator
##[group]Run '/nix/store/qrn6ds64bzvwbm5nwf245ifz2c6jb9xw-ci-cache-gc.sh/bin/ci-cache-gc.sh'
shell: /nix/store/lfm00fnq66xfgbn099vqckabyl5jllz6-bash-interactive-5.3p20/bin/bash --noprofile --norc -e -o pipefail {0}
##[endgroup]
evicted 11 objects and 0 action results (13.1 MiB logical); 50.0 GiB logical remain
dropped 2 stale checkout records
dropped 17 session event streams
evicted 0 objects and 0 action results (0 B logical); 50.0 GiB logical remain
Cleaning up orphan processes
(written by quest land watch) |
|
codex, gpt-6.1-sol, medium effort land fixer note:
(written by codex, gpt-6.1-sol, medium effort) |
|
quest land watch: re-enqueued this pull request at ba849f6, at the back of the merge queue, unchanged, since the land fixer judged the failure flaky: (written by quest land watch) |

Problem
Nightly run 45035580806 (
TLA+ (rest)) failed:rs/moq-net/verify/failover/Mesh.cfghitDeadlock reached.after about 24M sampled states. The model drifted from the code. The Rust code isn't at fault.The trace, condensed:
Eswitches toB, soAparks.BsubscribesOfor groups {0,1} and receives both.Bmoves toA. Since A route switch caps the old subscription at one boundary #9276 the new copy is asked only from the boundary, soA's fresh copy fromOasks for {1}: group 0 is still draining onB's live copy.Bdies, andEmoves back toA.Ehas a gap at group 0, so it asksAfor {0,1}.A's copy, which asked only for {1}, completes.A's front finishes, andA's reader forEends cleanly without group 0:Drainedtreats a group no copy holds or may land as accounted for.Athen forgets the track.E's copy ended short of group 0 and holds no route to switch to, so the client waits forever for group 0.At step 4 the model lets
AendE's read on a cache that can't prove group 0 is absent, which AGENTS.md rules out. The code waits instead: a range reaching below the copy gets its own recovery, and the copy ends only after that recovery arrives (rs/moq-net/tests/integration/range_fill.rsa_recovery_outlives_the_track_finishing). The model'sAsk(backfill) step was enabled throughout, but nothing made the reader's end wait for it.Approach
Askable(u, g): the copy thatu's reads go to first (Answering) is live and has never asked or fetchedg, so its end proves nothing aboutg.Drainednow also requires~Askable. Its guard matchesAsk's, so wherever it blocks an end,Askis enabled and adds no deadlock.MayLandnow counts a fetch still in flight, whichHandOutalready serves after the end. Without this, the first fix's sample found the same hang one step later:Afetched group 0, butE's read still ended before the fetch landed. The code holds the read while the fetch is out (failover_chain.rsending_the_track_keeps_a_fetch_in_flight).verify-failoverskill.Impact
No public API or wire change. This changes only the model.
Validation
CONSTRAINTover its states:main(exit 11). With the fix it stops at state 28, because the wrong clean end is disabled.Askable-only spec deadlocks on that spec. With the fix it stops at state 29.FailoverChain.cfgpasses exhaustively: 8,007,144 distinct states.Leave.cfgpasses exhaustively: 8,600,327 distinct states.Deaths.cfgpasses exhaustively: 12,260,821 distinct states.Mesh.cfgpasses a sample of 3.2M behaviors (-simulate num=800000 -depth 100on 4 workers, 320M states). The failing nightly sampled about 246k.main(with moq-dev/moq#9402'sStopAt) at ba849f6, the default,Leave.cfg, andDeaths.cfgruns pass exhaustively: 7,462,329, 8,023,664, and 11,587,260 distinct states.Caused by
Drainedgained no matching wait for the recovery or for a fetch in flight (found by check: NightlyMesh.cfgsample).Alternatives
follow_demand, where the live copy's ask widens to its readers' demand. That covers only joins before the copy's subscription ends. A join after it still needs the recovery wait, and that wait alone covers both cases.Follow-ups
None.
Models
Size: S
Implementer: Claude Code, claude-opus-5-5, unknown effort
Implementer: Claude Code, claude-opus-5-5, low effort (iterate, S)
🤖 Generated with Claude Code
Review
Rewritten by
quest reviewafter each round.Head: ba849f6
Base: origin/main at c86d4bd
Risk: low,
The change edits only a verification skill's documentation (.claude/skills/verify-failover/SKILL.md) and a TLA+ model (rs/moq-net/verify/failover/FailoverChain.tla); nothing a consumer, peer, or release reads changes, and a revert fully undoes it.Classified: low by Claude Code, claude-haiku-5-5, low effort, session
4676de32-4552-404b-af40-f782c45a3c49Reviewer: Codex, gpt-6.1-sol, medium effort
Session:
01a2045e-e191-7991-a54e-d4abc777076e, round 3Score: 8/10,
The update merges main without introducing new branch changes or actionable regressions by inspection, though model checks remain unrun as instructed.Rounds: 3; first round 0; findings 0: fixed 0, refuted 0, open 0
Findings: none