[Bazel 7.0.0] py_test will not generate test.xml under bazel-testlogs if test is cached remotely.
- Dominant language
- Java
- Stars
- 25.8k
- Forks
- 4.6k
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 72
Description
### Description of the bug:
With Bazel `7.0.0`, py_test will not generate `test.xml` under `bazel-testlogs` folder if test is cached. It generates the files below but not test.xml.
```
dr-xr-xr-x 2 nlou wheel 64 Jan 16 15:41 test.outputs
drwxr-xr-x 2 nlou wheel 64 Jan 16 15:41 test.outputs_manifest
drwxr-xr-x 2 nlou wheel 64 Jan 16 15:41 test.raw_splitlogs
-r-xr-xr-x 1 nlou wheel 6962 Jan 16 15:41 test.log
-r-xr-xr-x 1 nlou wheel 180 Jan 16 15:41 test.cache_status
```
It worked ok with bazel 6.4.0
### Which category does this issue belong to?
_No response_
### What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
run bazel test with a py_test target.
test options :
```
build --enable_bzlmod=false
build --remote_download_minimal
build --nobuild_runfile_links
test --experimental_fetch_all_coverage_outputs
test --experimental_split_coverage_postprocessing
```
### Which operating system are you running Bazel on?
macos, linux
### What is the output of `bazel info release`?
7.0.0
### If `bazel info release` returns `development version` or `(@non-git)`, tell us how you built Bazel.
_No response_
### What's the output of `git remote get-url origin; git rev-parse master; git rev-parse HEAD` ?
_No response_
### Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
_No response_
### Have you found anything relevant by searching the web?
_No response_
### Any other information, logs, or outputs that you want to share?
_No response_
Contributor guide
Research direction
Start by reproducing the py_test case with `bazel test` and the listed remote-download and coverage options, checking the generated files under `bazel-testlogs`. Compare a remotely cached run with Bazel 6.4.0 and 7.0.0; done means `test.xml` is generated for the cached test on macOS and Linux.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100