-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
tests/stdlib/tchannels.nim flaky, gives reTimeout
#17946
Comments
…ion for failures; increase timeout tchannels
…ion for failures; increase timeout tchannels
…ion for failures; increase timeout tchannels
…ion for failures; increase timeout tchannels
…work`; mitigate #17946 tchannels timeouts (#17947) * refs #17946; refactor testament test summary, show test duration for failures; increase timeout tchannels * revert workarounds from #16698 and add allowPrefixMatch optional param to greedyOrderedSubsetLines * add test * workaround for yet another testament bug
This issue should be fixed first, |
These semi-random hangs when using threading are a symptom of a data race, and indeed there is a data race in the current version of When there is just a small window for a race, the longer a test runs and the faster the loops testing the channels, the higher the probability that the race condition will be hit. I think I've fixed the data race(s) with a new version of As to the slower performance, there was a pre-mature optimization in the inclusion of a memory pool for allocation of channel and channel buffer space that I don't think was necessary; it may be that the slowness is to do with that. My new version (without memory pools) seems to be about the same speed or faster than the old built-in channel version. Of course the very slowest thing one can do with channels is create an un-buffered channel (size of one) and do multiple random locking send/receive operations as that causes locking/signalling on nearly every use; my new version of |
Ref #18801 |
…work`; mitigate nim-lang#17946 tchannels timeouts (nim-lang#17947) * refs nim-lang#17946; refactor testament test summary, show test duration for failures; increase timeout tchannels * revert workarounds from nim-lang#16698 and add allowPrefixMatch optional param to greedyOrderedSubsetLines * add test * workaround for yet another testament bug
…refs nim-lang#17946 increase timeout for tchannels (nim-lang#18012)
I've had several recent unrelated PR's where tests/stdlib/tchannels.nim fails with
reTimeout
Example
{.used: symbol}
: fixes lots of issues with UnusedImport, XDeclaredButNotUsed, etc; fix #13185, #17511, #17510, #14246 #17938 on i386 https://dev.azure.com/nim-lang/255dfe86-e590-40bb-a8a2-3c0295ebdeb1/_apis/build/builds/16259/logs/108abi
field in importc type #17944 https://dev.azure.com/nim-lang/255dfe86-e590-40bb-a8a2-3c0295ebdeb1/_apis/build/builds/16260/logs/73 on windowsCurrent Output
Expected Output
works
Additional Information
1.5.1 706562f
The text was updated successfully, but these errors were encountered: