TestCatchAll, TestStopCatch: remove unneeded goroutine#40496
TestCatchAll, TestStopCatch: remove unneeded goroutine#40496AkihiroSuda merged 1 commit intomoby:masterfrom
Conversation
|
#40353 passes with this change at least, so moving out of draft 😅 |
|
I don't see what race this is fixing. |
|
For that matter sending the signal should be async anyway. I'm not sure we need the goroutine. |
|
Perhaps I'm completely off, but |
|
|
|
In any case, I think this test will work without the goroutine (and no need for sleep). |
you're right; I was thinking about that case, but it's not the problem. I can update to remove the goroutine 👍 |
Signed-off-by: Sebastiaan van Stijn <[email protected]>
|
LOL; interesting; looks like Goland runs tests in an interesting way for this file, and adds both |
2e6cc38 to
af2a11f
Compare
|
Updated 👍 |
|
@AkihiroSuda @tiborvass LGTY? |
|
ping @tiborvass @kolyshkin PTAL |
|
I was just looking into this code today (not the tests). These functions (together with their test cases) should be moved to docker/cli, as they are only used for cli. |
|
I'm building the docker branch Is the patch supposed to address this issue in the end? (if the answer is no, you might want to update the name of the issue at #40353 (comment)) |
|
This is only in the master branch, not in the 19.03 branch. Neither branches currently work with Go 1.14 (and there's still known issues in containerd and runc as well with compatibility with Go 1.14); Id recommend sticking to Go 1.13 to build for now |
|
Thanks for the quick reply!
Yep sure, what I meant is that I observe this test failure on the |
|
Ah, gotcha, thanks! I haven't continued to look at Go 1.14 compatibility (because I know some "lower level" projects (containerd, runc) still had to work on some fixes and it didn't have the highest priority. |
Issue mentioned upstream at <moby/moby#40353>, there was a tentative fix at <moby/moby#40496>, but the issue is still present. === Failed === FAIL: pkg/signal TestCatchAll (0.00s) signal_linux_test.go:32: assertion failed: urgent I/O condition (string) != hangup (string) signal_linux_test.go:32: assertion failed: hangup (string) != child exited (string) signal_linux_test.go:32: assertion failed: child exited (string) != illegal instruction (string) signal_linux_test.go:32: assertion failed: illegal instruction (string) != floating point exception (string) signal_linux_test.go:32: assertion failed: floating point exception (string) != child exited (string) Gbp-Pq: Name test--skip-pkg-signal-flaky-tests.patch
relates to #40353