-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
testing: output hard to read when a test case is stalling #19397
Comments
|
@klingtnet, we don't need a new flag because that is already the default behavior. |
@bradfitz Sorry, I misunderstood the initial question which was about stalling not failing tests. |
Some notes:
(I'd like to work on this - I realize we're in a freeze and that the code might not qualify for review since it's tooling-related and not an actual test.) |
CL https://golang.org/cl/44352 mentions this issue. |
CL https://golang.org/cl/48370 mentions this issue. |
CL 44352 changed the behavior of SIGINT, which can break tests that themselves use SIGINT. I think we can only implement this if the testing package has a way to know whether the code under test is using SIGINT, but os/signal does not provide an API for that. Roll back for 1.9 and think about this again for 1.10. Updates #19397 Change-Id: I021c314db2b9d0a80d0088b120a6ade685459990 Reviewed-on: https://go-review.googlesource.com/48370 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
I rolled back the first fix for this issue. It changed the behavior of |
See #21000 for a test case. |
I'm not particularly worried about trying to fix this. I think it may actually be impossible - testing can't just take over SIGINT. But moved to unplanned in case anyone does see a way to fix it. |
Note that the new -json support will let people produce nice status dashboards that you pipe test output into, and maybe that will be enough. |
When the package contains a stalling case, the verbose is hard to read to figure out what has run and not finished finished yet. I often have to pipe the output to another program to match RUNs and PASSes (or FAILs) to filter what has not finished.
We might just consider printing the currently running test cases upon SIGINT.
The text was updated successfully, but these errors were encountered: