Open lunch-glide-pepper opened 1 year ago
https://github.com/bazelbuild/bazel/blob/114d7720ea52fbf613bc3e06dd746eb07ce5c335/src/main/java/com/google/devtools/build/lib/actions/ResourceManager.java#L63-L67 https://github.com/bazelbuild/bazel/blob/114d7720ea52fbf613bc3e06dd746eb07ce5c335/src/main/java/com/google/devtools/build/lib/actions/ResourceManager.java#L151-L158
Thanks!
Would a PR adding a mention of this to https://bazel.build/reference/command-line-reference#flag--local_cpu_resources be welcome?
Also, would it make sense to move the constants to command line flags?
Yeah, @benjaminp is absolutely right.
@lunch-glide-pepper PR with flag description fix is welcome!
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 30 days. It will be closed in the next 7 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-bazeler".
Not stale.
Description of the bug:
I have two actions that each declare CPU usage of 1000 by passing
resource_set
toactions.run_shell
.bazel build --local_cpu_resources=1600 ...
runs both actions in parallel.bazel build --local_cpu_resources=1599 ...
runs them one after the other.I would expect the cutoff to be between 1999 and 2000 instead.
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Output:
Which operating system are you running Bazel on?
Ubuntu 20.04
What is the output of
bazel info release
?release 6.0.0
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
?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