-
Notifications
You must be signed in to change notification settings - Fork 161
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
The error logs for different tests run with Go 1.14 are interleaved in junit xml files #2109
Comments
/assign |
The example above has:
I was an old pull request that's not easy to repro, this also happens in latest serving test: |
Tested with latest gotestsum, didn't help: knative/serving#8274 |
gotestsum community seems active, created a bug there: gotestyourself/gotestsum#128 |
This is an issue with |
Thanks for the pointer @dnephin ! |
The issue has been fixed after updating Go to 1.14.6, see https://prow.knative.dev/view/gcs/knative-prow/logs/ci-knative-serving-gloo-0.17.1/1285367134993518592 |
Go 1.14 has a new feature that "go test -v now streams t.Log output as it happens, rather than at the end of all tests."
This make
go-junit-report
that we use to generate junit xml files unhappy, which can possibly show the error messages for one test under another one on Spyglass.See one example in https://prow.knative.dev/view/gcs/knative-prow/pr-logs/pull/knative_eventing/3034/pull-knative-eventing-integration-tests/1263214476346265603. If you expand one test like
TestChannelChain/Channel-messaging.knative.dev/v1alpha1
, you can see the error messages contain messages from other tests.We should either fix
go-junit-report
or check if switching to another tool likegotestsum
can fix this issue.The text was updated successfully, but these errors were encountered: