-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[Bug] Test reports don't seem to work #5114
Comments
For comparison, running test on the failing package locally produces this output
It is a panic, not a normal test failure, but |
Thanks for those details; and agree it's not very usable. One thing I missed on the opening README of the github action is that Go isn't officially supported but might work: https://github.com/EnricoMi/publish-unit-test-result-action?tab=readme-ov-file#generating-test-result-files. I had a quick look around for alternatives but couldn't find anything suitable for Go. I vote to revert back to plain old text logs. What do you think? |
Maybe I do recall seeing some relevant output in the past in the reports, not sure if something changed or if it's sensitive to how the tests run / fail. |
I suspect it works well with assertion failures, but not with panics. |
## Which problem is this PR solving? - Resolves #5114 ## Description of the changes - We had a go at using a test summary reporter github action, but it appeared to lack sufficient support for "unexpected" test failures such as panics, while also making it harder to manually inspect test log output. - The original log output still satisfies our requirements, as it is still easy to search through to identify the failing test. ## Checklist - [x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [x] I have signed all commits --------- Signed-off-by: Albert Teoh <albert@packsmith.io> Co-authored-by: Albert Teoh <albert@packsmith.io>
@albertteoh alternative idea. When we run the tests with text output, if any of them fail the output will be seen in the logs. However, if we immediately rerun the tests, it's possible that only the failing tests will be rerun (Go is supposed to cache successful test results and not rerun then if the code hasn't changed). In this case, we could do a rerun with So all we really need is some pretty-print of the JSON into Markdown. We could also just write plain text output, it would still be more useful than the very verbose main run of the tests (again, assuming that caching would avoid rerunning other tests and printing all package names). |
Thanks for sharing that idea, Yuri.
I'd vote for ☝🏼 (keep plain text output); I'm not sure if we'd get much value out of prettified test output considering, from what I understand, that this summary will only appear on a re-run. I think it's better to have a consistent experience (just one way of viewing test output), while it also keeping the CI pipeline simple. |
To clarify, by "rerun" I meant an extra step in the workflow that is run automatically, not that we'd need to kick off a rerun manually. One thing I like about some sort of a summary is to see the count of tests executed, succeeded, skipped, failed. |
@albertteoh maybe it's just me, but I am having no luck with this new test reports thing. On the workflow Summary page it only shows statistics with no links (nothing there is clickable):
https://github.com/jaegertracing/jaeger/actions/runs/7552405639?pr=5101
If instead I find a comment in the PR, it does have a link:
However, on that page no error messages are displayed, just the name of the test
Overall, I am having much harder time analyzing the failures than before, since the logs of the run are now unreadable JSON, and these summaries are not helpful (and why so hard to find...).
Suggestion:
BTW, with plain logs my go-to trick was to search for
--- FAIL
string.The text was updated successfully, but these errors were encountered: