Skip to content

test(tokio): stream_stopped awaits its stop event, not a 100 ms deadline - #8237

Merged
kixelated merged 2 commits into
mainfrom
quest/m0/test-flakes-2/quic-stream-stopped
Nov 8, 2026
Merged

kixelated merged 2 commits into
mainfrom
quest/m0/test-flakes-2/quic-stream-stopped

Conversation

@kixelated

@kixelated kixelated commented Nov 8, 2026 •

Copy link
Copy Markdown
Collaborator

Drops the 100 ms wall-clock deadlines from moq-tokio's stream_stopped and stream_stopped_2, so each awaits the stop/close event it asserts; nextest's terminate-after still bounds a real hang. Un-ignores stream_stopped, removes its sh/gh/test-inventory.allow entry, and deletes the quest.

Neither test asserted the deadline itself, so stream_stopped_2 got the same fix.

Verified: cargo nextest run -p moq-tokio stream_stopped --stress-count 200 with 16 busy-loop CPU hogs running: 200/200 passed.

Overlap: moq-dev/moq#8208 only appends a new test to the same file; no conflict expected.

Public API: none. Wire: none.

Models

Size: XS
Implementer: Claude Code, claude-opus-5-5, low effort

🤖 Generated with Claude Code

(Written by Opus 5.5 with low)

Review

Rewritten by quest review after each round.

  • Reviewer: Codex, gpt-6.1-sol, medium effort
  • Session: 01a1b8bf-40f0-78a0-a279-ab56055ecefd, round 1
  • Head: b45c6a5
  • Base: origin/main at 5f1e5e8
  • Score: 9/10, The changes remove load-sensitive deadlines while preserving stop-code and completion assertions and consistently removing quarantine records; source review found no actionable defects, with tests not run as instructed.
  • Findings: none

kixelated and others added 2 commits November 7, 2026 17:19
@kixelated kixelated changed the title moq-tokio's stream-stopped tests survive a loaded host test(tokio): stream_stopped awaits its stop event, not a 100 ms deadline Nov 8, 2026
@kixelated
kixelated marked this pull request as ready for review November 8, 2026 01:22
@coderabbitai

coderabbitai Bot commented Nov 8, 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 13 seconds.

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: 4ab26548-19a4-4eb6-9132-b973c782899c
Commits

Reviewing files that changed from the base of the PR and between 4a86602 and b45c6a5.

Files selected for processing: 4

  • quest/m0/test-flakes-2/README.md
  • quest/m0/test-flakes-2/quic-stream-stopped.md
  • rs/moq-tokio/src/quic/driver/tests.rs
  • sh/gh/test-inventory.allow
  • 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

@kixelated kixelated left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Automated review by review (OpenAI)

Reviewed b45c6a5.

No actionable findings. Both stream-stopped regressions now await the stop/close event rather than asserting it arrives within 100 ms. The first preserves the three observers and stop-code assertions, including the observer polled after dropping the stream; the second preserves wake registration before finishing and dropping the sender. Removing the quarantine and inventory exemption restores the intended coverage.

Direction: retaining event-based assertions is preferable to relaxing the wall-clock budget. The workspace nextest timeout still bounds an actual hang.

Verification limits: GitHub-only static review of the four-file diff, complete affected tests and nextest settings. No tests, stress runs or builds performed. Rechecked open/non-draft state, full head and published reviews immediately before this COMMENT.

@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

  • stream_stopped awaits its stop event: the 100 ms timeout around the client future and the client.expect("timeout") that consumed it are gone, and the test's #[ignore] is removed, so the stop codes it already asserted are now the only signal and nextest's terminate-after is the sole hang bound.
  • stream_stopped_2 gets the same fix: send_stream.closed() is no longer wrapped in a 100 ms deadline, and the assertion drops the timeout's extra Ok layer (Ok(Ok(None)) → Ok(None)), which matches closed()'s real output type.
  • Quarantine bookkeeping removed: the sh/gh/test-inventory.allow entry and quest/m0/test-flakes-2/quic-stream-stopped.md are deleted along with the epic README's ## Required line, and no dangling references to the quest or the test's ignore remain.

The Duration and timeout imports are still used by many other tests in the file, _certs is on through the default net feature so the module compiles in the normal suite, and closed() returns an owning 'static future, so dropping the wrapper leaves the poll-once-then-select structure in stream_stopped_2 unchanged.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

@kixelated
kixelated added this pull request to the merge queue Nov 8, 2026
Merged via the queue into main with commit 4b83dcd Nov 8, 2026
14 checks passed
@kixelated
kixelated deleted the quest/m0/test-flakes-2/quic-stream-stopped branch November 8, 2026 05:42
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