-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Coverage fails on linux with large java libraries (many classes) #24838
Comments
I went up to 10000, but couldn't reproduce the failure on Linux. I also can't reproduce it on macOS. @cushon I don't fully understand who is responsible for cleaning up the coverage metadata dir, especially with non-sandboxed execution. Can you shed some light on this? Is the old coverage implementation still used? |
cc @hvadehra
JavaBuilder generally tries to clean up its own temp directories, like the logic in
I'm not sure that it is, let's find out. |
I have NOT been able to reproduce this in an ubuntu:24.04 and rockylinux/rockylinux:9.4 container (x86 on Rancher Desktop on Mac). The file systems in this case appear to be ext4. This can be reproduced with a rockylinux 9.4 x86 VM on XFS as well as an ubuntu container with an overlay backed by XFS. I'm sure there are other differences; I'll continue to try to identify a (ideally) container-based reproduction. |
This is reproducible in a Rocky 9.5 VM (running in VirtualBox via vagrant on an x86 Mac). Since upstream rocky vagrant links are broken, I manually downloaded a rocky 9.5 box, added the box: then,
Same error as above is seen |
Description of the bug:
For large java libraries (those with a large number of classes - unclear if jar size also relevant),
bazel coverage
fails withFileAlreadyExistsException
. See below. The tests themselves run fine: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.
Linux (tested on Rocky 9.4 x86) (This does not repro on mac x86)
extract attached archive
bazel-coverage-FileAlreadyExistsException.tar.gz
generate a swagger spec with 250 unique tags/paths:
python spec_generator.py 250
run
bazel coverage :petstore-tests
(this will fail)generate a swagger spec with 200 unique tags/paths:
python spec_generator.py 200
run
bazel coverage :petstore-tests
(this will succeed)Which operating system are you running Bazel on?
Rocky 9.4 x86
What is the output of
bazel info release
?release 7.4.1
If
bazel info release
returnsdevelopment 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 HEAD
?No response
If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
No response
Have you found anything relevant by searching the web?
This was reported by someone else on slack
Any other information, logs, or outputs that you want to share?
Reproduced with 7.4.1, 7.4.0, 6.5.0, 6.4.0
The text was updated successfully, but these errors were encountered: