-
-
Notifications
You must be signed in to change notification settings - Fork 648
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
test.pytest shows more tests failed than actually failed #4736
Comments
A known compromise in the invalidation work. I'll think about how to make this better without stepping into results merging, which I had a strong preference for avoiding from the get go. |
@jsirois : If it makes things any easier: I don't think there is any need to cache anything for failing tests... I wouldn't expect a run containing a failing test to have hit the cache at all. |
No cache here. This is just a run on N targets in fast mode that, w/o calculating target->test ownership, cannot say more than the whole run failed. The solution will just be making the code more complex to deal with fast vs no fast differently for display purposes. |
Addressing this before finishing off caching for pytest in #4734. |
OK - I think I have a decent compromise. The summary is now only output for
The 3rd case is not good, but we also don't actually have this partitioning case today, so TODO added. |
Erm, except that means no output at all for
Which looks alot like a faulty noop. May re-introduce the summary for |
This fixes the previously confusing output for `--fast` with failures. Revert to providing no summary output in this case, since we can't identify the failing targets without introducing code to parse the junit xml from the run and then associate failures to files to target owners. The summaries are still displayed however for `--fast` success. This provides feedback in the "cached" test success run case. Fixes pantsbuild#4736
This fixes the previously confusing output for `--fast` with failures. Revert to providing no summary output in this case, since we can't identify the failing targets without introducing code to parse the junit xml from the run and then associate failures to files to target owners. The summaries are still displayed however for `--fast` success. This provides feedback in the "cached" test success run case. Fixes #4736
seen here: https://travis-ci.org/pantsbuild/pants/jobs/252109723
the pytest summary indicates a single test failure:
but according to the log output, all tests in the shard report as
FAILURE
:cc @jsirois
The text was updated successfully, but these errors were encountered: