Skip to content

fix(net): the failover model's reader waits for a group its relay can still ask for - #9430

Merged
moq-bot[bot] merged 4 commits into
mainfrom
fix/failover-mesh-deadlock
Nov 23, 2026
Merged

moq-bot[bot] merged 4 commits into
mainfrom
fix/failover-mesh-deadlock

Conversation

@kixelated

@kixelated kixelated commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Nightly run 45035580806 (TLA+ (rest)) failed: rs/moq-net/verify/failover/Mesh.cfg hit Deadlock reached. after about 24M sampled states. The model drifted from the code. The Rust code isn't at fault.

The trace, condensed:

  1. E switches to B, so A parks. B subscribes O for groups {0,1} and receives both.
  2. B moves to A. Since A route switch caps the old subscription at one boundary #9276 the new copy is asked only from the boundary, so A's fresh copy from O asks for {1}: group 0 is still draining on B's live copy.
  3. B dies, and E moves back to A. E has a gap at group 0, so it asks A for {0,1}.
  4. A's copy, which asked only for {1}, completes. A's front finishes, and A's reader for E ends cleanly without group 0: Drained treats a group no copy holds or may land as accounted for. A then forgets the track.
  5. 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 A end E'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.rs a_recovery_outlives_the_track_finishing). The model's Ask (backfill) step was enabled throughout, but nothing made the reader's end wait for it.

Approach

  • Add Askable(u, g): the copy that u's reads go to first (Answering) is live and has never asked or fetched g, so its end proves nothing about g.
  • Drained now also requires ~Askable. Its guard matches Ask's, so wherever it blocks an end, Ask is enabled and adds no deadlock.
  • MayLand now counts a fetch still in flight, which HandOut already serves after the end. Without this, the first fix's sample found the same hang one step later: A fetched group 0, but E's read still ended before the fetch landed. The code holds the read while the fetch is out (failover_chain.rs ending_the_track_keeps_a_fetch_in_flight).
  • Update the coverage table and sync note in the verify-failover skill.

Impact

No public API or wire change. This changes only the model.

Validation

  • Replayed each counterexample as a TLC CONSTRAINT over its states:
    • The 32-state nightly trace deadlocks on main (exit 11). With the fix it stops at state 28, because the wrong clean end is disabled.
    • The 35-state trace from a sample of the Askable-only spec deadlocks on that spec. With the fix it stops at state 29.
  • On the final spec:
    • FailoverChain.cfg passes exhaustively: 8,007,144 distinct states.
    • Leave.cfg passes exhaustively: 8,600,327 distinct states.
    • Deaths.cfg passes exhaustively: 12,260,821 distinct states.
    • Mesh.cfg passes a sample of 3.2M behaviors (-simulate num=800000 -depth 100 on 4 workers, 320M states). The failing nightly sampled about 246k.
  • After merging main (with moq-dev/moq#9402's StopAt) at ba849f6, the default, Leave.cfg, and Deaths.cfg runs pass exhaustively: 7,462,329, 8,023,664, and 11,587,260 distinct states.

Caused by

  • moq-dev/moq#9276 - made a switch's new copy ask only from the boundary, so a relay's copy can start above a later reader's range. The model's Drained gained no matching wait for the recovery or for a fetch in flight (found by check: Nightly Mesh.cfg sample).

Alternatives

  • Model 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 review after 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-f782c45a3c49

  • Reviewer: Codex, gpt-6.1-sol, medium effort

  • Session: 01a2045e-e191-7991-a54e-d4abc777076e, round 3

  • Score: 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

kixelated and others added 3 commits November 22, 2026 09:18
… 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>
@kixelated
kixelated marked this pull request as ready for review November 22, 2026 19:19
@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c7dd9907-b37d-4756-a960-31cf5f4a9026
Commits

Reviewing files that changed from the base of the PR and between 92449df and ba849f6.

Files selected for processing: 2

  • .claude/skills/verify-failover/SKILL.md
  • rs/moq-net/verify/failover/FailoverChain.tla
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

pullfrog[bot]
pullfrog Bot previously approved these changes Nov 22, 2026

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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 the Answering(u) branch of Ask term for term: u \in Relays, front[u].end # "err", Live(e0), g \notin ask \cup fetch, fr[g] = -1. When it blocks Drained, the reader's own Lacks(e, g) satisfies missing, so Ask is enabled. The no-new-deadlock argument in the PR body holds.
  • Drained gains ~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.
  • MayLand counts in-flight fetches. A fetch now counts until it lands, whether or not the copy's subscription has ended. This matches HandOut, which already serves a fetched group after the end.
  • Skill coverage. The sync note and the poll_end row now name Askable and MayLand.

ℹ️ MayLand's wider meaning also reaches Ask and LetGo

MayLand is shared, so the fetch disjunct also changes two other steps:

  • Ask's missing branch. It can no longer send a missing-group ask to Answering(u) while another copy, such as Serving(u) after a short-group fetch, has g in 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.

Pullfrog  | View workflow run | Using claude-opus-5-5 | 𝕏

…dlock

# Conflicts:
#	.claude/skills/verify-failover/SKILL.md

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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-failover SKILL.md sync note now names both this PR's Askable/MayLand and #9402's StopAt. The poll_end row keeps Askable and MayLand.
  • The model's predicates are unchanged. The merge leaves the FailoverChain.tla hunk as it was. Stopped narrows only a replaced copy's .stop frames and never touches .ask or .fetch, so it doesn't interact with Askable or MayLand.

Pullfrog  | View workflow run | Using claude-opus-5-5 | 𝕏

@kixelated
kixelated added this pull request to the merge queue Nov 22, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 23, 2026
@moq-bot

moq-bot Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

quest land watch: the merge queue removed this pull request at ba849f6 because its merge_group build failed (failed_checks).

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.

Queue / Queue (job) failure at step Check:

…_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)

@moq-bot

moq-bot Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Codex land fixer: fixer crashed (exit 1); run /quest-iterate. Recommendation: run /quest-iterate before picking it again.

        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)

@kixelated
kixelated added this pull request to the merge queue Nov 23, 2026
@kixelated
kixelated removed this pull request from the merge queue due to a manual request Nov 23, 2026
@kixelated
kixelated added this pull request to the merge queue Nov 23, 2026
@moq-bot

moq-bot Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

quest land watch: the merge queue removed this pull request at ba849f6 because kixelated removed it (manual).

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)

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 23, 2026
@moq-bot

moq-bot Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

quest land watch: the merge queue removed this pull request at ba849f6 because its merge_group build failed (failed_checks).

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.

Queue / Queue (job) failure at step Check:

…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)

@moq-bot
moq-bot Bot added this pull request to the merge queue Nov 23, 2026
@moq-bot

moq-bot Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

codex, gpt-6.1-sol, medium effort land fixer note:

The queue aborted in the listed SRT test when a host-clock timer fired under KIO_DENY_HOST_TIMERS=1. The PR changes only the failover TLA+ model and its documentation. The SRT test passed on base alone, and the unchanged PR merged with base passed the full CI gate: 11,299 tests passed. There is no evidence this PR caused the failure.

No disable commit is included. A separate skip-only commit was tested with nix develop --command just ci base; the test-inventory check rejected it: ignore moq-srt::server::tests::an_unreplaced_end_closes_the_srt_stream_once_the_follow_ends has no CI caller. Registering an inventory allowance requires an existing quest file, but the supplied follow-up quest is absent and creating files under quest/ is prohibited for this fixer. Adding a CI caller would require a protected workflow edit. The attempted disable branch was removed, and pr-9430 remains at its pinned head.

The failover model checks also passed: Deaths.cfg, FailoverChain.cfg, Leave.cfg, and the configured Mesh.cfg simulation, run through nix develop --command bash sh/tla.sh rs/moq-net/verify/failover.

(written by codex, gpt-6.1-sol, medium effort)

@moq-bot

moq-bot Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

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: moq-srt server::tests::an_unreplaced_end_closes_the_srt_stream_once_the_follow_ends.

(written by quest land watch)

Merged via the queue into main with commit 28bbea6 Nov 23, 2026
7 checks passed
@moq-bot
moq-bot Bot deleted the fix/failover-mesh-deadlock branch November 23, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant