--experimental_add_exec_constraints_to_targets
no longer works with test targets
#25258
Labels
team-Configurability
platforms, toolchains, cquery, select(), config transitions
type: bug
untriaged
Description of the bug:
Previously I was using something like
--experimental_add_exec_constraints_to_targets='\.test'=//:has_gpu
to force the matching test targets to exec on a specific remote platform in some cases. I bisected to 38ee78ccc @fmeum
I might be able to solve this use case a different way now, but still worth noting that this changed.
In my case I want some subset of targets to support 2 different modes, 1 with this constraint and 1 without it, so I add this only in specific CI workflows to make sure it gets tested on multiple exec platforms. The most obvious alternative is to use a macro to create multiple test targets that are defined with this constraint, and a negation of this constraint, but there are UX downsides to that.
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.
No response
Which operating system are you running Bazel on?
linux
What is the output of
bazel info release
?95bbed0
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
?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?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: