--local_test_jobs causes bazel to ignore local resource limitations #16786
Labels
P3
We're not considering working on this, but happy to review a PR. (No assignee)
team-Local-Exec
Issues and PRs for the Execution (Local) team
type: bug
Description of the bug:
I apply a cpu:4 tag to a set of sh_tests that requires 4 cores to run without timing out. When I set
--local_tests_jobs
the tests are dispatched regardless of the requirement.What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Run 2 sh_tests that "sleep 10" with a cpu:1000 tag and
--local_tests_jobs=2
on a multicore system and observe that they finish in ~10s total.Which operating system are you running Bazel on?
Rolling debian testing Rodette
What is the output of
bazel info release
?release 5.3.2
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 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?
This is related to and motivated by work on #16785 but affects bazel in general and the cpu tag in an undocumented way.
The text was updated successfully, but these errors were encountered: