Repository navigation
A reannounced sibling instance never replays its finish - #9695
Conversation
Quest-Claim: c81ff08cba5cf11a
A cancel that wins a poll the track answered Pending to (a wake the track gave itself on the way from its last group to its end) skipped recording the finish, so the same sibling instance announced again replayed its last group. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Maintainer decision (relayed from the maintainer's /quest-run round, 2026-11-26):
(Written by Claude Opus 5.5) |
|
Applied the maintainer decision in #9695 (comment): the round-3 finding on (Written by Claude Opus 5.5) |
|
quest land watch: the merge queue removed this pull request at 87e9ae1 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.
…p]
ci: wall and CPU seconds per module
14 0 check rs (cancelled)
0 0 check rs_cross
5 40 check biome
12 10 check markdown
9 14 check gh (cancelled)
0 0 check drill
2 2 check quest (failed)
14 68 whole run
##[error]ci: check quest failed
error: recipe `ci` failed on line 121 with exit code 1
##[error]Process completed with exit code 1.
##[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: 7ea4e0d27d546397e7f82aa666aadd73d8f22725
CHECK_FAIL_FAST: 1
NEXTEST_TEST_THREADS: 24
MBX_CACHE_LINKS: 1
MBX_REMOTE_URL:
##[endgroup]
With the provided path, there will be 7 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 425555
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is cb98e899811c9374378fe68513a292115be010d748cbf7ca8246937811af11fc
Finalizing artifact upload
Artifact cargo-timings successfully finalized. Artifact ID 15165288611
Artifact cargo-timings has been successfully uploaded! Final size is 425555 bytes. Artifact ID is 15165288611
Artifact download URL: https://github.com/moq-dev/moq/actions/runs/45923837877/artifacts/15165288611
Post job cleanup.
##[start-action display=Run jdx/mr-boxington-action@88acf2bb50552c7c508cbac13e5f8c576b95b1de;id=__045131c8-f9d0-4a14-8dac-6133d3d946ae.mbx]
##[end-action id=__045131c8-f9d0-4a14-8dac-6133d3d946ae.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/9850cf7c-c890-4738-a109-c98db70697a7' 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/ajk9j3ljl36w9dicih57gyvbl3v6m72q-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 6 objects and 0 action results (70.4 MiB logical); 50.0 GiB logical remain
dropped 4 session event streams
Cleaning up orphan processes
Current runner version: '2.338.2'
Runner name: 'nixos-moq-ci'
Runner group name: 'moq-queue'
Machine name: 'moq-ci'
##[group]GITHUB_TOKEN Permissions
Checks: write
Metadata: read
##[endgroup]
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Uses: moq-dev/moq/.github/workflows/queue-build.yml@refs/heads/main (7ea4e0d27d546397e7f82aa666aadd73d8f22725)
Complete job name: Queue build / Report Queue
A job started hook has been configured by the self-hosted runner administrator
##[group]Run '/nix/store/ajk9j3ljl36w9dicih57gyvbl3v6m72q-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 0 objects and 0 action results (0 B logical); 50.0 GiB logical remain
evicted 0 objects and 0 action results (0 B logical); 50.0 GiB logical remain
##[group]Run conclusion=failure
�[36;1mconclusion=failure�[0m
�[36;1m[[ "$RESULT" == success ]] && conclusion=success�[0m
�[36;1mgh api "repos/$REPO/check-runs" -f name=Queue -f head_sha="$SHA" -f status=completed -f conclusion="$conclusion" \�[0m
�[36;1m -f 'output[title]=Queue' -f "output[summary]=The queue build ended $RESULT." --silent�[0m
�[36;1m[[ "$RESULT" == success ]] || { echo "::error::the queue build ended $RESULT" >&2; exit 1; }�[0m
shell: /nix/store/lfm00fnq66xfgbn099vqckabyl5jllz6-bash-interactive-5.3p20/bin/bash -e {0}
env:
GH_TOKEN: ***
REPO: moq-dev/moq
SHA: f65cd621dfbc6546789ae4b1a8ef09a8000ecae7
RESULT: failure
##[endgroup]
##[error]the queue build ended failure
##[error]Process completed with exit code 1.
A job completed hook has been configured by the self-hosted runner administrator
##[group]Run '/nix/store/ajk9j3ljl36w9dicih57gyvbl3v6m72q-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 0 objects and 0 action results (0 B logical); 50.0 GiB logical remain
evicted 0 objects and 0 action results (0 B logical); 50.0 GiB logical remain
Cleaning up orphan processes
(GitHub has no log for this job: HTTP 404) (written by quest land watch) |
|
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 9 minutes. View limit details
No actionable comments were generated in the recent review. WalkthroughWhen cancellation ends a play, Severity of issue fixed: Low Merge Risk:
|
|
claude, claude-opus-5-5, medium effort land fixer note:
(written by claude, claude-opus-5-5, medium effort) |
|
quest land watch: re-enqueued this pull request at d32c363, at the back of the merge queue, with the land fixer's fix ( (written by quest land watch) |
main finished test-flakes-4 (#9695) and deleted its README, so the replay flake opens a fresh epic carrying the last one's rules. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claims and finishes quest/m0/test-flakes-4/gst-sibling-finish-replay.md, which this PR deletes.
Summary
a_reannounced_sibling_instance_does_not_replay_its_finishfailed about once in 300 to 600 runs with CPU burners running. Tracing it showed the first play of the sibling exiting through its cancel arm without recording the track's end, then the same instance returning and a second play replaying the last group.Cause:
Play::streampolls the track first and the cancel second, so an end that arrived with a cancel is still recorded. But the track's poll right after its last group can answerPendingwhile it has already woken itself to continue to the end (a second poll with the same waiter wasReady(None)in 85% of runs). A cancel racing that poll consumed the self-wake and the play let go before seeing the end.Fix: when the cancel wins,
drainedpolls the track with a waiter that records its own wakes, until a poll parks without waking itself. If that reaches the end, the finish is recorded as before. A frame still unread or a failure records nothing, so a cancel with a backlog still replays on return.Validation
just rs test -p moq-gst -E 'test(a_reannounced_sibling_instance_does_not_replay_its_finish)' --stress-count Nwith 8 to 12 busy-loop burners.just rs test -p moq-gst: 236 of 236.just check: passes.Impact
Public API: none. Wire: none.
Caused by
Models
Size: S
Implementer: Claude Code, claude-sonnet-5-5, unknown (arm B)
🤖 Generated with Claude Code
Decisions
drainedfinding: the walk is the same bounded-per-poll work the play loop already does, so a budget would only add a magic constant.Review
mechanical fix by claude, claude-opus-5-5, medium effort:
merged base; base #9722 deleted the other test-flakes-4 child, so this PR's deletion of the last child left an epic README without a size, failing quest check; deleted the finished epic README as #9573 did for test-flakes-3; ran sh/quest.sh check and nix develop --command just ci base (all modules passed, incl. check quest and test rs for moq-gst)(head d32c363)Rewritten by
quest reviewafter each round.Head: 87e9ae1
Base: origin/main at 7ea4e0d
Risk: medium,
If the new `drained()` check in `rs/moq-gst/src/source/imp.rs` is wrong, it could mark a track as finished too early or too late, so a GStreamer source replays or drops a group after a route reannounce, which affects moq-gst users. It is a fix that keeps the API and wire format, and a revert fully undoes it, so it is medium rather than high; the quest plan deletion is low.Classified: medium by Claude Code, claude-haiku-5-5, low effort, session
7cf9ebdb-4907-45d1-a2d8-4d9c83dbc562Risk file: bb7b1c0de60b
Accepted by the maintainer:
the walk is the same bounded-per-poll work the play loop already does, so a budget would only add a magic constantReviewer: Codex, gpt-6.2-sol, medium effort
Session:
01a2193f-4805-7271-b73d-eb69e36aba6e, round 3Score: 6/10,
The probe now records a clean finish behind one stop marker, but a backlog of empty groups can still delay pad handoff after cancellation.Rounds: 3; first round 1 (medium 1); findings 2 (medium 2): fixed 1, refuted 0, open 1
Findings, accepted by the maintainer:
rs/moq-gst/src/source/imp.rs:1942:Keep cancelled readers from draining live inputThe last round's findings, at 9fe06d1:
rs/moq-gst/src/source/imp.rs:1940:Keep cancelled readers from draining live input;The probe adds a read after cancellation wins, and the group pop, buffer refund, and internal loop at `rs/moq-mux/src/container/consumer.rs:971`, `:1847`, and `:700` let that read process more groups than the buffer holds at once.rs/moq-gst/src/source/imp.rs:1942:Record a clean finish behind a final marker;The branch at `rs/moq-gst/src/source/imp.rs:1945` passes one stop marker so the next poll can record a settled clean finish.