Skip to content

[9.2.0] Make local scheduling respect exec_properties resources (https://github.com/bazelbuild/bazel/pull/29284) - #29420

Closed
bazel-io wants to merge 1 commit into
bazelbuild:release-9.2.0from
bazel-io:cp29284-9.2.0-182836

Conversation

@bazel-io

Copy link
Copy Markdown
Member

Previously only tests supported a target level way to hint the resources
required by the target. This is done with tags = ["resources:cpu:10"].
Now this syntax is supported for normal actions as well, and both normal
actions and test actions support this same format in exec_properties
with exec_properties = {"resources:cpu": "10"}, or exec_group specific
versions like: exec_properties = {"cpp_link.resources:cpu": "10"}.

Work towards #19679 (doesn't
handle a default flag currently)
Work towards #17368
Work towards #25770

Fixes #6477
Fixes #19805
Fixes #25195
Fixes #25792
Fixes #25793

RELNOTES[inc]: exec_properties now respects resources:cpu and resources:memory for local resource estimation.

Closes #29284.

PiperOrigin-RevId: 906919034
Change-Id: Ia9effd70a71f4e1f42021d945cdc7b1d9d52bbf6

Commit d35da0e

…9284)

Previously only tests supported a target level way to hint the resources
required by the target. This is done with `tags = ["resources:cpu:10"]`.
Now this syntax is supported for normal actions as well, and both normal
actions and test actions support this same format in `exec_properties`
with `exec_properties = {"resources:cpu": "10"}`, or exec_group specific
versions like: `exec_properties = {"cpp_link.resources:cpu": "10"}`.

Work towards bazelbuild#19679 (doesn't
handle a default flag currently)
Work towards bazelbuild#17368
Work towards bazelbuild#25770

Fixes bazelbuild#6477
Fixes bazelbuild#19805
Fixes bazelbuild#25195
Fixes bazelbuild#25792
Fixes bazelbuild#25793

RELNOTES[inc]: `exec_properties` now respects `resources:cpu` and `resources:memory` for local resource estimation.

Closes bazelbuild#29284.

PiperOrigin-RevId: 906919034
Change-Id: Ia9effd70a71f4e1f42021d945cdc7b1d9d52bbf6
@bazel-io
bazel-io requested a review from a team as a code owner April 28, 2026 18:29
@bazel-io bazel-io added team-Performance Issues for Performance teams team-Configurability platforms, toolchains, cquery, select(), config transitions awaiting-review PR is awaiting review from an assigned reviewer labels Apr 28, 2026
@bazel-io
bazel-io requested a review from katre April 28, 2026 18:29
@bazel-io bazel-io added the team-Configurability platforms, toolchains, cquery, select(), config transitions label Apr 28, 2026
@bazel-io
bazel-io requested review from fmeum and meisterT April 28, 2026 18:29
@bazel-io bazel-io added the awaiting-review PR is awaiting review from an assigned reviewer label Apr 28, 2026
@iancha1992
iancha1992 removed request for fmeum and katre April 28, 2026 18:30
@iancha1992
iancha1992 enabled auto-merge April 28, 2026 18:30
@github-actions github-actions Bot added the community-reviewed Reviewed by a trusted community contributor label Apr 28, 2026
@meisterT

Copy link
Copy Markdown
Member

cc @keith

@keith

keith commented Apr 29, 2026

Copy link
Copy Markdown
Member

I will apply the fixes here #29426 (so far just looks like a dep name difference)

@iancha1992 iancha1992 closed this Apr 30, 2026
auto-merge was automatically disabled April 30, 2026 07:49

Pull request was closed

@github-actions github-actions Bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-reviewed Reviewed by a trusted community contributor team-Configurability platforms, toolchains, cquery, select(), config transitions team-Performance Issues for Performance teams

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants