You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_worker_heartbeat_after_cancel hangs on MacOS 3.7/3.8 #5056
With the latest CI improvements, I receive failures which look like this. I assume this is a GH actions script this is pointing to but I have no idea what this particular error is about.
@crusaderky have you encountered anything like this in your tests?
That's pytest-timeout that just sent SIGABRT.
I was hoping it would kill off the individual test on MacOS like it does on Linux. Clearly it's not like that.
I will revert to timeout_method = thread for MacOS.
I'm getting it too on my own branches. Can't figure out why having a SIGALRM can possibly cause the test to time out, so I suspect it's a red herring - e.g. it will continue to fall over once we disable SIGALARM, just with the old error message.
That test was not touched in #5022. Also the fact that pytest-timeout is kicking in, much after the 60s timeout of gen_cluster, strongly hints at the fact that it's gen_cluster, not the test itself, that's getting stuck. I suspect it has to do with having 10 workers, except that there are other tests with 8-10 workers and they aren't glitching. Also can't figure out why it never cropped up during my last iteration of stress tests.
changed the title [-]CI failures with trap signal and unknown return value[/-][+]test_worker_heartbeat_after_cancel hangs on MacOS 3.7/3.8[/+]on Jul 15, 2021
I couldn't reproduce the hanging test locally. However, what's interesting, is that I could see a lot of "loop unresponsive" messages when running the test under a lot of load. Still, idk why it hung. The new test logic is less prone to instabilities
Activity
fjetter commentedon Jul 14, 2021
I found actions/runner-images#1296 but can't really make any sense of it
fjetter commentedon Jul 14, 2021
Seems to consistently affect OSX py3.7 + py3.8
crusaderky commentedon Jul 14, 2021
That's pytest-timeout that just sent SIGABRT.
I was hoping it would kill off the individual test on MacOS like it does on Linux. Clearly it's not like that.
I will revert to timeout_method = thread for MacOS.
fjetter commentedon Jul 14, 2021
fwiw, the signal method works on my machine w/ OSX
crusaderky commentedon Jul 14, 2021
I'm getting it too on my own branches. Can't figure out why having a SIGALRM can possibly cause the test to time out, so I suspect it's a red herring - e.g. it will continue to fall over once we disable SIGALARM, just with the old error message.
That test was not touched in #5022. Also the fact that pytest-timeout is kicking in, much after the 60s timeout of gen_cluster, strongly hints at the fact that it's gen_cluster, not the test itself, that's getting stuck. I suspect it has to do with having 10 workers, except that there are other tests with 8-10 workers and they aren't glitching. Also can't figure out why it never cropped up during my last iteration of stress tests.
crusaderky commentedon Jul 14, 2021
And in fact, without SIGABRT we get the exact same behaviour: always fails on MacOS 3.7 and 3.8
https://github.com/dask/distributed/pull/5057/checks?check_run_id=3067949864
crusaderky commentedon Jul 14, 2021
Wait. The test was added yesterday in #5053. I think that the CI changes in #5022 are completely coincidental.
crusaderky commentedon Jul 14, 2021
#5057 takes this off the critical path. I suggest renaming this issue to "test_worker_heartbeat_after_cancel hangs on MacOS 3.7/3.8"
[-]CI failures with trap signal and unknown return value[/-][+]test_worker_heartbeat_after_cancel hangs on MacOS 3.7/3.8[/+]fjetter commentedon Jul 15, 2021
I couldn't reproduce the hanging test locally. However, what's interesting, is that I could see a lot of "loop unresponsive" messages when running the test under a lot of load. Still, idk why it hung. The new test logic is less prone to instabilities