-
Notifications
You must be signed in to change notification settings - Fork 13.9k
handle spurious returns of wait_timeout
in test
#147910
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
rustbot has assigned @Mark-Simulacrum. Use |
assert!(!res.timed_out()); | ||
assert!(*guard); | ||
let mut guard = maybe_unwrap(sent.lock()); | ||
loop { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a comment about why the loop?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
ab98678
to
25142d7
Compare
This comment has been minimized.
This comment has been minimized.
25142d7
to
76dfdd4
Compare
Thanks! This issue is affecting CI and the queue is fairly light atm so I'll give this a priority boost. @bors r+ rollup p=1 |
… r=ChrisDenton handle spurious returns of `wait_timeout` in test Fixes rust-lang#147885 Closes rust-lang#147871 `wait_timeout` is allowed to spuriously return, hence the `timeout_nanoseconds` must not assume that the wakeup resulted from a `notify_all()`.
☀️ Test successful - checks-actions |
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing 4068baf (parent) -> c7a635f (this PR) Test differencesShow 2 test diffs2 doctest diffs were found. These are ignored, as they are noisy. Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard c7a635f33c5fbd1ead110243a2f4a5f0561d79b0 --output-dir test-dashboard And then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
Finished benchmarking commit (c7a635f): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 472.36s -> 472.842s (0.10%) |
Fixes #147885
Closes #147871
wait_timeout
is allowed to spuriously return, hence thetimeout_nanoseconds
must not assume that the wakeup resulted from anotify_all()
.