Skip to content

Resource use for local actions should be able to be specified via exec_properties (and exec groups) #25793

Closed as duplicate

Description

@brentleyjones

Description of the feature request:

Right now for test actions you can set resources:RESOURCE:AMOUNT tags to influence local resource allocation for tests. For build targets you can use resource_sets. The tags method doesn't allow assigning the resource allocation to individual actions/exec groups. The resource_sets aren't able to be easily influenced from target definitions. And finally, neither method influences how remote actions are scheduled. Building the capability into exec_properties instead would bring uniformity to how the resource allocation overrides work, allow targeting exec groups, and hint to remote executors on how they should adjust scheduling.

Which category does this issue belong to?

Local Execution, Remote Execution

What underlying problem are you trying to solve with this feature?

Proper sizing of actions both test/non-test and local/remote.

Which operating system are you running Bazel on?

No response

What is the output of bazel info release?

No response

If bazel info release returns development 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 ?


Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

Activity

  1. added
    untriaged
    on Apr 8, 2025
  2. added
    team-Local-Exec
    on Apr 9, 2025
  3. added
    team-Configurability
    and removed
    team-Local-Exec
    on Apr 15, 2025
  4. self-assigned this
    on Jul 25, 2025
  5. gregestren commented on Jul 25, 2025

    @gregestren
    Contributor

    Self-assigned for triage.

  6. keith commented on Apr 13, 2026

    @keith
    Member
  7. iancha1992 commented on Jun 26, 2026

    @iancha1992
    Contributor

    A fix for this issue has been included in Bazel 9.2.0 RC1. Please test out the release candidate and report any issues as soon as possible.
    If you're using Bazelisk, you can point to the latest RC by setting USE_BAZEL_VERSION=9.2.0rc1. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

team-Configurabilitytype: feature requestuntriaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions