-
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
bazel-4.1.0rc4 ignores exec_compatible_with for some of cc_test actions #13450
Comments
@oquenchil Why is this marked as P3 when it's a potential release blocker for Bazel 4.1.0? 🤔 |
@katre @gregestren Do you know any relatively recent changes that might have caused this? |
There is a known issue with exec group inheritance. I need to scrub the internal issue and export it publicly. Good news: I have a fix in progress. |
Note: I haven't had a chance to confirm that the issue is the same, but it's very likely based on the symptoms. |
Description of the problem / feature request:
When using
cc_test
in4.1.0rc4
looks like build and linking actions are using platform honoringexec_compatible_with
, but test and post-process actions (test-setup.sh
andgenerate-xml.sh
) are using platform that does not have constraint required byexec_compatible_with
. Versions3.7.2
and4.0.0
seem to work correctly,4.1.0rc4
and currentmaster
do not.Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Created project demonstrating the issue in https://github.com/glukasiknuro/bazel_platforms_issue
Gives:
Note the first two actions have
requires_test_constraint
in platform properties, but the last two do not have it, butexec_compatible_with
is specified on entirecc_test
: - https://github.com/glukasiknuro/bazel_platforms_issue/blob/f0cee6458bee6ee5a668503f301dbfa3b8e27aa8/platforms_test/BUILD#L32For bazel 4.0.0 or 3.7.2 all four actions have
requires_test_constraint
.What operating system are you running Bazel on?
Ubuntu 16.04
What's the output of
bazel info release
?$ ~/apps/bazel/bazel-4.1.0rc4-linux-x86_64 info release
release 4.1.0rc4
Any other information, logs, or outputs that you want to share?
Found issue when trying to migrate bigger codebase, when some actions were executed on incompatible remote execution workers, while it worked previously.
Possibly a blocker for 4.1 release? #13099
The text was updated successfully, but these errors were encountered: