test.xml missing when running flaky test #16351
Labels
P1
I'll work on this now. (Assignee required)
team-Remote-Exec
Issues and PRs for the Execution (Remote) team
type: bug
Description of the bug:
When running a flaky test with the
--flaky_test_attempts=10
and--remote_download_minimal
flags with remote execution, bazel build execution will stop if the test fails with the following error message:ERROR: /data/repos/test_repo/BUILD:9:8: Testing //:python_test failed: unexpected I/O exception: /home/ekattainen/.cache/bazel/_bazel_ekattainen/f465db4dd2df63e33090e2c00fda9ac6/execroot/main/bazel-out/k8-fastbuild/testlogs/python_test/test.xml -> /home/ekattainen/.cache/bazel/_bazel_ekattainen/f465db4dd2df63e33090e2c00fda9ac6/execroot/main/bazel-out/k8-fastbuild/testlogs/python_test/test_attempts/attempt_1.xml (No such file or directory)
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Have a workspace with empty WORKSPACE file and BUILD and flaky_test.py files with following contents
Run the following command until the test fails
The
--config=remote_exec
should configure bazel to execute the actions remotely.Which operating system are you running Bazel on?
Ubuntu 20.04
What is the output of
bazel info release
?development version
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.bazel build //src:bazel-bin
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
The culprit for this bug seems to be #16123 Tagging @coeuvre as the PR author if he were to come up with a quick fix.
The text was updated successfully, but these errors were encountered: