Description of the problem:
Normally, when running a test, Bazel expects the test to produce a test.xml. If it is not produced, Bazel will run a separate action using generate-xml.sh to generate that file.
When testing remotely with --remote_download_minimal, Bazel doesn't download the XML file, and then observes that it doesn't exist and so tries to regenerate it, regardless of whether the action actually produced it or not.
Bazel shouldn't regenerate the test.xml if the action actually produced it.
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Java tests with junit produce test.xml automatically. You can verify by running a junit test locally (and Bazel won't run the generate-xml.sh action) and find the file under bazel-testlogs folder.
However, when running the test remotely with --remote_download_minimal, you will notice that Bazel will run an additional generate-xml.sh action.
What's the output of bazel info release?
release 3.7.0
Have you found anything relevant by searching the web?
#6862
#11558
Description of the problem:
Normally, when running a test, Bazel expects the test to produce a
test.xml. If it is not produced, Bazel will run a separate action usinggenerate-xml.shto generate that file.When testing remotely with
--remote_download_minimal, Bazel doesn't download the XML file, and then observes that it doesn't exist and so tries to regenerate it, regardless of whether the action actually produced it or not.Bazel shouldn't regenerate the
test.xmlif the action actually produced it.What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Java tests with junit produce
test.xmlautomatically. You can verify by running a junit test locally (and Bazel won't run thegenerate-xml.shaction) and find the file underbazel-testlogsfolder.However, when running the test remotely with
--remote_download_minimal, you will notice that Bazel will run an additionalgenerate-xml.shaction.What's the output of
bazel info release?release 3.7.0
Have you found anything relevant by searching the web?
#6862
#11558