-
Notifications
You must be signed in to change notification settings - Fork 176
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
pkg_zip and cc_test generate ActionConflictException #814
Comments
>bazel build //image/...
>bazel build //test:autotest
>bazel build //test/... (should succeed)
>bazel aquery //test/... (should succeed)
|
That's interesting. Is your One workaround might be to make Overall, this is a complex thing we probably can't fix directly in rules_pkg. It goes into some core Bazel bits. We hit this problem all the time in other contexts where people want to bundle a test and send it to another environment to run later. |
This issue also exists when a cc_test is put in a filegroup. I have renamed the minimal example and opened an issue in bazel build. https://github.com/peakschris/filegroup-of-cc-test |
pkg_zip and cc_test do not seem to work when both targets are provided to a single Bazel invocation. It might seem odd to zip a cc_test, but we have existing downstream systems that we need to send some of our tests to for validation, and it's easiest to collect them in a zip file. The pkg_zip works fine on its own, but fails with an action conflict exception when invoked together with a build of the underlying binary. This issue means that aquery on the root of the repo and other full analysis actions fail.
I have tried pkg_zip 0.9.1 and 0.10.0, both have same issue
I have tried a few GoogleTest versions, all fail
Bazel 7.0.1 and 7.0.0
Both Windows & Linux
A simple MRE is here: https://github.com/peakschris/pkg-zip-of-cc-test
The text was updated successfully, but these errors were encountered: