Watch: make the open-done wait test independent of scheduler delays #4630
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4630
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4629"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@tyr0nsur on GitHub · 2026-12-01 00:17 UTC · original
tyr0nsur:codex/watch-open-wait-clock-20261201→main· +29 −10 · 1 files · 1 commits · openWhat it changes
The cooperative-yield case of
watch::ask_holds::wait_open_done_covers_immediate_fast_spin_yield_cleared_and_timeoutexpects the sixthis_donepoll to returnDonebefore 10 ms of real time elapse. A scheduling delay during the cooperative phase can make that same poll sequence returnTimedOut. This was reported on main in #4380 and happened again in the Windows check for #4596.The test now advances a controlled clock, checks that the immediate and fast-spin paths read no clock, and covers completion, clearing and the exact deadline. Production passes
Instant::nowand retains the same poll order, budget and cooperative yields.How it was tested
TimedOutinstead ofDonewith a simulated 20 ms scheduling pause in the first cooperative poll.cargo test --locked -p victory-gpu --lib: 1133 passed, 66 ignored.cargo clippy --locked -p victory-gpu --all-targets -- -D warningspassed. Staged asset policy passed.Checked for overlap
watch.rs. Related: #2814 introduced the wait, #4380 reports the flake, and #4620 addresses a separate watch test involving the shared journal. I found no open PR changing this test or helper to control the clock.Reviewed with Claude Code (Opus 5.5).
github-bot referenced this pull request2026-12-01 14:44:58 +00:00
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.