-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Introduce --default_test_resources flag #20839
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce --default_test_resources flag #20839
Conversation
4b36c36 to
5355c30
Compare
5355c30 to
0bff9cd
Compare
src/main/java/com/google/devtools/build/lib/analysis/test/TestConfiguration.java
Outdated
Show resolved
Hide resolved
src/main/java/com/google/devtools/build/lib/analysis/test/TestConfiguration.java
Outdated
Show resolved
Hide resolved
src/main/java/com/google/devtools/build/lib/analysis/test/TestConfiguration.java
Outdated
Show resolved
Hide resolved
src/main/java/com/google/devtools/build/lib/analysis/test/TestConfiguration.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do add another test with flags with duplicate resources to test the behavior of how they override each other.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The existing test already covers that: cpu is first set to 1,2,3,4 and then to 5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missed that one :) thanks for pointing out
src/test/java/com/google/devtools/build/lib/rules/test/TestTargetPropertiesTest.java
Outdated
Show resolved
Hide resolved
|
Sorry this took a while, some internal tests made it annoying to push through. Thanks for your contribution! |
|
@bazel-io flag |
|
@bazel-io fork 7.1.0 |
Add `--default_test_resources=<resource>=<value(s)>` that allows setting the default resource utilization for tests. The flag follow a syntax simialar to `--local_resources=<resource>=<value>`, in that it allow assigning different resource types, and `--test_timeout=<value(s)>`, which accepts either 1 or 4 intergers to assign to all test sizes or to each individually. Relates to bazelbuild#19679 Closes bazelbuild#20839. PiperOrigin-RevId: 606233269 Change-Id: Ia53e42820ba9aa646b0600fe4e9f95f146d7b2b9
Add `--default_test_resources=<resource>=<value(s)>` that allows setting the default resource utilization for tests. The flag follow a syntax simialar to `--local_resources=<resource>=<value>`, in that it allow assigning different resource types, and `--test_timeout=<value(s)>`, which accepts either 1 or 4 intergers to assign to all test sizes or to each individually. Relates to bazelbuild#19679 Closes bazelbuild#20839. PiperOrigin-RevId: 606233269 Change-Id: Ia53e42820ba9aa646b0600fe4e9f95f146d7b2b9
Add `--default_test_resources=<resource>=<value(s)>` that allows setting the default resource utilization for tests. The flag follow a syntax simialar to `--local_resources=<resource>=<value>`, in that it allow assigning different resource types, and `--test_timeout=<value(s)>`, which accepts either 1 or 4 intergers to assign to all test sizes or to each individually. Relates to #19679 Closes #20839. Commit 0c5b6e8 PiperOrigin-RevId: 606233269 Change-Id: Ia53e42820ba9aa646b0600fe4e9f95f146d7b2b9 Co-authored-by: Alessandro Patti <[email protected]>
Add `--default_test_resources=<resource>=<value(s)>` that allows setting the default resource utilization for tests. The flag follow a syntax simialar to `--local_resources=<resource>=<value>`, in that it allow assigning different resource types, and `--test_timeout=<value(s)>`, which accepts either 1 or 4 intergers to assign to all test sizes or to each individually. Relates to bazelbuild#19679 Closes bazelbuild#20839. PiperOrigin-RevId: 606233269 Change-Id: Ia53e42820ba9aa646b0600fe4e9f95f146d7b2b9
Add `--default_test_resources=<resource>=<value(s)>` that allows setting the default resource utilization for tests. The flag follow a syntax simialar to `--local_resources=<resource>=<value>`, in that it allow assigning different resource types, and `--test_timeout=<value(s)>`, which accepts either 1 or 4 intergers to assign to all test sizes or to each individually. Relates to bazelbuild#19679 Closes bazelbuild#20839. PiperOrigin-RevId: 606233269 Change-Id: Ia53e42820ba9aa646b0600fe4e9f95f146d7b2b9
|
The changes in this PR have been included in Bazel 7.1.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=last_rc. |
Add
--default_test_resources=<resource>=<value(s)>that allows setting the default resource utilization for tests. The flag follow a syntax simialar to--local_resources=<resource>=<value>, in that it allow assigning different resource types, and--test_timeout=<value(s)>, which accepts either 1 or 4 intergers to assign to all test sizes or to each individually.Relates to #19679