- Notifications
You must be signed in to change notification settings - Fork4.4k
Remove resource_set limitations#28013
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View thisfailed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Currently, the resource_set attribute of `ctx.actions.run` (an similar)can only be set to a function returning a dictionary with a limited setof keys/resources (mem, cpu, and local_test). This change removes thisrestriction, allowing any resource know to the resource manager.RELNOTES: `resource_set` function can now reference custom resourcesClosesbazelbuild#27950
0dff987 toa47a795Compareagomezl commentedDec 16, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Ok, here is the code for#27950. Still missing:
|
fmeum commentedDec 16, 2025
Unit tests could be added tohttps://cs.opensource.google/bazel/bazel/+/master:src/test/java/com/google/devtools/build/lib/starlark/StarlarkRuleContextTest.java;l=822?q=resource_set&ss=bazel%2Fbazel, which already has a few. |
agomezl commentedDec 16, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I don't know what is the deal with the |
Currently, the resource_set attribute of
ctx.actions.run(an similar) can only be set to a function returning a dictionary with a limited set of keys/resources (mem, cpu, and local_test). This change removes this restriction, allowing any resource know to the resource manager.RELNOTES:
resource_setfunction can now reference custom resourcesCloses#27950