Remove timing assertion from oneshot::send_before_recv_timeout#152648
Remove timing assertion from oneshot::send_before_recv_timeout#152648JonathanBrouwer wants to merge 1 commit intorust-lang:mainfrom
oneshot::send_before_recv_timeout#152648Conversation
|
r? @jhpratt rustbot has assigned @jhpratt. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
Is there anything we can do for this test to make it less likely to spuriously fail? (Not really for this PR, but yeah I've seen it fail quite often.) |
|
I don't know fully how these tests work, my guess is that all the tests run in parallel threads and this thread yields and just isn't scheduled for a while., therefore hitting the timeout. I wanted to increase the timeout to fix that but this PR is adding more information to know what to increase the timeout to. We can also just remove the assertion if we want to be done with it, but that doesn't feel right |
|
Can't hurt to have a bit of instrumentation to narrow things down. Prioritizing given the spuriousness of it. @bors r+ rollup p=1 |
…jhpratt Add information to spurious `oneshot::send_before_recv_timeout` test This test regularly spuriously fails in CI, such as rust-lang#152632 (comment) We can just remove the assertion but I'd like to understand why, so I'm adding more information to the assert
…jhpratt Add information to spurious `oneshot::send_before_recv_timeout` test This test regularly spuriously fails in CI, such as rust-lang#152632 (comment) We can just remove the assertion but I'd like to understand why, so I'm adding more information to the assert
|
In #152145, a similar test This test also appears to be inherently flaky, for a related but sillier reason. Note that the failing assertion is the final line, All it takes is for that assertion to fail is for the CI runner to be descheduled for 1 second or longer, at any point after the initial |
|
Ah, I was thinking something similar but I was like "there is no way a thread isn't scheduled for a full second". |
d5a1a7a to
cbe63dd
Compare
|
|
oneshot::send_before_recv_timeout testoneshot::send_before_recv_timeout
|
I disabled the test, similar to the other PR |
|
Hmmm pushing a new commit does not unapprove the rollup, interesting |
|
In this case, I believe we should be able to keep the test and only get rid of the timing assertion. |
cbe63dd to
8e97903
Compare
oneshot::send_before_recv_timeoutoneshot::send_before_recv_timeout
8e97903 to
8374fac
Compare
|
Fixed :) |
This comment has been minimized.
This comment has been minimized.
8374fac to
dab350a
Compare
This test regularly spuriously fails in CI, such as #152632 (comment)
We can just remove the assertion but I'd like to understand why, so I'm adding more information to the assert