-
-
Notifications
You must be signed in to change notification settings - Fork 671
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
In the event of a timeout, the generated test.xml
contains no useful information
#4219
Comments
You should be able to see the error logs on the test case level running bazel test :repro_test --test_timeout=5 --test_args=-test.v. This will provide the status/error logs of every test result on the test case level. |
Even if you are doing that (or equivalently, setting GO_TEST_WRAP_TESTV=1), the behavior described above manifests. I reported this as we’re routinely encountering this issue in CI for CockroachDB where we always have that setting applied. |
I ran
|
What version of rules_go are you using?
Latest (the problem seems to go back to 0.47; the behavior at 0.46 is not ideal but much better)
What version of gazelle are you using?
Latest
What version of Bazel are you using?
7.2.1
Does this issue reproduce with the latest releases of all the above?
Yes
What operating system and processor architecture are you using?
macOS/arm64
Any other potentially useful information about your toolchain?
No
What did you do?
Run a test that times out
What did you expect to see?
While the test did not complete successfully, the
.xml
should show as much information as possible. Ideally, it should contain a passingtestcase
for every test that succeeded, and a failing or erroredtestcase
for every test that was still running at the time the test timed out.What did you see instead?
At the latest version of
rules_go
, the generatedtest.xml
contains almost no information:Note that this doesn't list any tests at all and shows 0 errors/failures/etc.
This behavior goes back to version 0.47 of
rules_go
. In version 0.46, thetest.xml
is not completely empty; it is better, shows there was an error, and contains some log output.This is not perfect and could contain more useful information (for example, it could contain a
testcase
with the name of the timed-out test), but it is decidedly better than the state as of version 0.47.This seems to have been regressed in #3920.
A minimal reproduction can be found in this repo on the branch
timeout-behavior
(bazel test :repro_test --test_timeout=5
)(This may be considered a follow-up from #3875, which originated the regressing commit in #3920)
The text was updated successfully, but these errors were encountered: