Skip to content

[train] rename ScalingConfig.bundle_label_selector to label_selector#59414

Merged
matthewdeng merged 1 commit intoray-project:masterfrom
matthewdeng:label-selector
Dec 13, 2025
Merged

[train] rename ScalingConfig.bundle_label_selector to label_selector#59414
matthewdeng merged 1 commit intoray-project:masterfrom
matthewdeng:label-selector

Conversation

@matthewdeng
Copy link
Contributor

Description

Rename ScalingConfig.bundle_label_selector to ScalingConfig.label_selector for a cleaner API.

This matches the @ray.remote API, as opposed to the PlacementGroup API which uses bundle_label_selector.

Related issues

API was introduced in #58845.

Additional information

This change is technically backwards incompatible, but bundle_label_selector was just introduced and not part of any minor version releases yet.

Also made the same changes to WorkerGroupContext, and renamed local variables in TrainController and TPUReservationCallback

Signed-off-by: Matthew Deng <matthew.j.deng@gmail.com>
@matthewdeng matthewdeng requested a review from a team as a code owner December 12, 2025 23:35
Copy link
Contributor

@TimothySeah TimothySeah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@matthewdeng matthewdeng enabled auto-merge (squash) December 12, 2025 23:40
@github-actions github-actions bot added the go add ONLY when ready to merge, run all tests label Dec 12, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request is a clean refactoring that renames ScalingConfig.bundle_label_selector to ScalingConfig.label_selector for a better API. The changes are consistent across all modified files, including configurations, internal logic, and tests. I've reviewed the changes and they seem correct and well-implemented. I have one minor suggestion to improve the parameter name in a test function for better clarity and consistency with the refactoring.

@matthewdeng matthewdeng merged commit 8c7eeb8 into ray-project:master Dec 13, 2025
6 of 7 checks passed
Yicheng-Lu-llll pushed a commit to Yicheng-Lu-llll/ray that referenced this pull request Dec 22, 2025
…ay-project#59414)

## Description
Rename `ScalingConfig.bundle_label_selector` to
`ScalingConfig.label_selector` for a cleaner API.

This matches the `@ray.remote` API, as opposed to the `PlacementGroup`
API which uses `bundle_label_selector`.

## Related issues

API was introduced in ray-project#58845.

## Additional information

This change is technically backwards incompatible, but
`bundle_label_selector` was just introduced and not part of any minor
version releases yet.

Also made the same changes to `WorkerGroupContext`, and renamed local
variables in `TrainController` and `TPUReservationCallback`

Signed-off-by: Matthew Deng <matthew.j.deng@gmail.com>
peterxcli pushed a commit to peterxcli/ray that referenced this pull request Feb 25, 2026
…ay-project#59414)

## Description
Rename `ScalingConfig.bundle_label_selector` to
`ScalingConfig.label_selector` for a cleaner API.

This matches the `@ray.remote` API, as opposed to the `PlacementGroup`
API which uses `bundle_label_selector`.

## Related issues

API was introduced in ray-project#58845.

## Additional information

This change is technically backwards incompatible, but
`bundle_label_selector` was just introduced and not part of any minor
version releases yet.

Also made the same changes to `WorkerGroupContext`, and renamed local
variables in `TrainController` and `TPUReservationCallback`

Signed-off-by: Matthew Deng <matthew.j.deng@gmail.com>
Signed-off-by: peterxcli <peterxcli@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants