-
Notifications
You must be signed in to change notification settings - Fork 9
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
Panic when syntax error output comes after JSON output #39
Comments
Hello @daenney thank you for this bug report. I am unable to access the artifacts generated in these runs since I'm not a member of this project. Could you please upload the JSON output of |
It doesn't seem like I can get to the test log artifact of the failed run, seems only the one from the last attempt is kept. I'm guessing that one isn't all that useful to you, since it parsed successfully? I'll see if I can get CI to break and grab the artifact then. |
Caught one it seems: https://github.com/pion/dtls/runs/6063708502?check_suite_focus=true
|
Piping that log through
So I guess when a build fails, |
This doesn't feel like the same thing as the first time I encountered it, since the original run I opened the ticket about didn't have a build failure. |
Hey @daenney no worries, this seems to be a legitimate crash and it seems we are indeed not handling the case properly when there is extra non-JSON output due to syntax errors at the end. I'll take a look at it and issue a fix soon. Is this issue blocking something right now, or are you able to work? |
Note to self, simple example to reproduce the crash: {"Time":"2021-11-27T10:23:01.309620888+01:00","Action":"run","Package":"github.com/haveyoudebuggedit/example/second","Test":"TestNothing"}
{"Time":"2021-11-27T10:23:01.309734731+01:00","Action":"output","Package":"github.com/haveyoudebuggedit/example/second","Test":"TestNothing","Output":"=== RUN TestNothing\n"}
{"Time":"2021-11-27T10:23:01.3097659+01:00","Action":"output","Package":"github.com/haveyoudebuggedit/example/second","Test":"TestNothing","Output":"--- PASS: TestNothing (0.00s)\n"}
{"Time":"2021-11-27T10:23:01.309786588+01:00","Action":"pass","Package":"github.com/haveyoudebuggedit/example/second","Test":"TestNothing","Elapsed":0}
{"Time":"2021-11-27T10:23:01.309799132+01:00","Action":"output","Package":"github.com/haveyoudebuggedit/example/second","Output":"PASS\n"}
{"Time":"2021-11-27T10:23:01.309994377+01:00","Action":"output","Package":"github.com/haveyoudebuggedit/example/second","Output":"ok \tgithub.jparrowsec.cn/haveyoudebuggedit/example/second\t0.002s\n"}
{"Time":"2021-11-27T10:23:01.310211915+01:00","Action":"pass","Package":"github.com/haveyoudebuggedit/example/second","Elapsed":0.002}
# github.com/haveyoudebuggedit/example
nothing_test.go:7:11: expected '(', found Nothing
FAIL github.com/haveyoudebuggedit/example [setup failed] |
Note to self: go-acc seems to output an extra line when the test fails:
Normal go test doesn't do that. |
@daenney I've released the bugfix as v2.3.1. Please let me know if the error still happens. |
Damn that was fast. Thanks so much! I'll keep an eye out on CI over the next couple of days. |
We've adopted gotestfmt for Go repos in https://github.com/pion, but every now and then a test run fails with:
For example:
The rerun is "rerun failed jobs" and then passes, no CI or code changes in between.
I suspect this is some weird interaction with go-acc but the fact that it seems to only happen about 10% of the time has me kinda stuck trying to figure this out. Any pointers or ideas would be greatly appreciated.
The text was updated successfully, but these errors were encountered: