Skip to content

Conversation

@AlessandroPatti
Copy link
Contributor

@AlessandroPatti AlessandroPatti commented Jan 10, 2024

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

@AlessandroPatti AlessandroPatti requested a review from a team as a code owner January 10, 2024 14:00
@AlessandroPatti AlessandroPatti requested review from aranguyen and removed request for a team January 10, 2024 14:00
@github-actions github-actions bot added team-Configurability platforms, toolchains, cquery, select(), config transitions awaiting-review PR is awaiting review from an assigned reviewer labels Jan 10, 2024
@AlessandroPatti AlessandroPatti force-pushed the apatti/19679/test-resources branch from 4b36c36 to 5355c30 Compare January 11, 2024 08:13
@AlessandroPatti AlessandroPatti force-pushed the apatti/19679/test-resources branch from 5355c30 to 0bff9cd Compare January 11, 2024 08:14
@meisterT meisterT added team-Performance Issues for Performance teams and removed team-Configurability platforms, toolchains, cquery, select(), config transitions labels Jan 15, 2024
@meisterT
Copy link
Member

cc @zhengwei143 @wilwell

@zhengwei143 zhengwei143 self-requested a review January 22, 2024 10:46
Copy link
Contributor

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.

Copy link
Contributor Author

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

Copy link
Contributor

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

@AlessandroPatti AlessandroPatti changed the title Introduce --test_resources flag Introduce --default_test_resources flag Jan 30, 2024
@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Feb 12, 2024
@zhengwei143
Copy link
Contributor

Sorry this took a while, some internal tests made it annoying to push through. Thanks for your contribution!

@brentleyjones
Copy link
Contributor

@bazel-io flag

@bazel-io bazel-io added the potential release blocker Flagged by community members using "@bazel-io flag". Should be added to a release blocker milestone label Feb 12, 2024
@iancha1992
Copy link
Member

@bazel-io fork 7.1.0

@bazel-io bazel-io removed the potential release blocker Flagged by community members using "@bazel-io flag". Should be added to a release blocker milestone label Feb 12, 2024
bazel-io pushed a commit to bazel-io/bazel that referenced this pull request Feb 12, 2024
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
iancha1992 pushed a commit to bazel-io/bazel that referenced this pull request Feb 14, 2024
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
github-merge-queue bot pushed a commit that referenced this pull request Feb 15, 2024
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]>
AlessandroPatti added a commit to AlessandroPatti/bazel that referenced this pull request Feb 19, 2024
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
apattidb pushed a commit to databricks/bazel that referenced this pull request Feb 20, 2024
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
@iancha1992
Copy link
Member

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.
Thanks!

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

Labels

team-Performance Issues for Performance teams

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants