Skip to content

[Core] Fix STRICT_PACK placement groups ignoring bundle label selectors#60170

Merged
edoakes merged 4 commits intoray-project:masterfrom
ryanaoleary:fix-strict-pack-scheduling
Jan 16, 2026
Merged

[Core] Fix STRICT_PACK placement groups ignoring bundle label selectors#60170
edoakes merged 4 commits intoray-project:masterfrom
ryanaoleary:fix-strict-pack-scheduling

Conversation

@ryanaoleary
Copy link
Contributor

Description

This PR fixes a bug with bundle_label_selector and STRICT_PACK scheduling policy, where labels are dropped from the aggregated resource request and then not considered when selecting from the candidate nodes in BundleStrictPackSchedulingPolicy. We now filter the candidate nodes by checking the feasibility each resource request with the labels before aggregating them.

This PR also adds better test coverage for the scheduling policies supported with https://docs.ray.io/en/latest/ray-core/api/doc/ray.util.placement_group.html and their interaction with label selectors.

Related issues

Contributes #51564

Signed-off-by: ryanaoleary <ryanaoleary@google.com>
@ryanaoleary ryanaoleary requested a review from a team as a code owner January 15, 2026 10:15
@ryanaoleary
Copy link
Contributor Author

cc: @MengjinYan

@ray-gardener ray-gardener bot added core Issues that should be addressed in Ray Core community-contribution Contributed by the community labels Jan 15, 2026
Signed-off-by: ryanaoleary <ryanaoleary@google.com>
Signed-off-by: ryanaoleary <ryanaoleary@google.com>
Copy link
Contributor

@MengjinYan MengjinYan left a comment

Choose a reason for hiding this comment

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

Thanks!

@edoakes edoakes added the go add ONLY when ready to merge, run all tests label Jan 16, 2026
@edoakes edoakes enabled auto-merge (squash) January 16, 2026 22:14
@edoakes edoakes merged commit 6b9fa2c into ray-project:master Jan 16, 2026
8 checks passed
limarkdcunha pushed a commit to limarkdcunha/ray that referenced this pull request Jan 18, 2026
…rs (ray-project#60170)

## Description
This PR fixes a bug with `bundle_label_selector` and `STRICT_PACK`
scheduling policy, where labels are dropped from the aggregated resource
request and then not considered when selecting from the candidate nodes
in `BundleStrictPackSchedulingPolicy`. We now filter the candidate nodes
by checking the feasibility each resource request with the labels before
aggregating them.

This PR also adds better test coverage for the scheduling policies
supported with
https://docs.ray.io/en/latest/ray-core/api/doc/ray.util.placement_group.html
and their interaction with label selectors.

## Related issues
Contributes ray-project#51564

---------

Signed-off-by: ryanaoleary <ryanaoleary@google.com>
Signed-off-by: Limark Dcunha <limarkdcunha@gmail.com>
jinbum-kim pushed a commit to jinbum-kim/ray that referenced this pull request Jan 29, 2026
…rs (ray-project#60170)

## Description
This PR fixes a bug with `bundle_label_selector` and `STRICT_PACK`
scheduling policy, where labels are dropped from the aggregated resource
request and then not considered when selecting from the candidate nodes
in `BundleStrictPackSchedulingPolicy`. We now filter the candidate nodes
by checking the feasibility each resource request with the labels before
aggregating them.

This PR also adds better test coverage for the scheduling policies
supported with
https://docs.ray.io/en/latest/ray-core/api/doc/ray.util.placement_group.html
and their interaction with label selectors.

## Related issues
Contributes ray-project#51564

---------

Signed-off-by: ryanaoleary <ryanaoleary@google.com>
Signed-off-by: jinbum-kim <jinbum9958@gmail.com>
ryanaoleary added a commit to ryanaoleary/ray that referenced this pull request Feb 3, 2026
…rs (ray-project#60170)

## Description
This PR fixes a bug with `bundle_label_selector` and `STRICT_PACK`
scheduling policy, where labels are dropped from the aggregated resource
request and then not considered when selecting from the candidate nodes
in `BundleStrictPackSchedulingPolicy`. We now filter the candidate nodes
by checking the feasibility each resource request with the labels before
aggregating them.

This PR also adds better test coverage for the scheduling policies
supported with
https://docs.ray.io/en/latest/ray-core/api/doc/ray.util.placement_group.html
and their interaction with label selectors.

## Related issues
Contributes ray-project#51564

---------

Signed-off-by: ryanaoleary <ryanaoleary@google.com>
peterxcli pushed a commit to peterxcli/ray that referenced this pull request Feb 25, 2026
…rs (ray-project#60170)

## Description
This PR fixes a bug with `bundle_label_selector` and `STRICT_PACK`
scheduling policy, where labels are dropped from the aggregated resource
request and then not considered when selecting from the candidate nodes
in `BundleStrictPackSchedulingPolicy`. We now filter the candidate nodes
by checking the feasibility each resource request with the labels before
aggregating them.

This PR also adds better test coverage for the scheduling policies
supported with
https://docs.ray.io/en/latest/ray-core/api/doc/ray.util.placement_group.html
and their interaction with label selectors.

## Related issues
Contributes ray-project#51564

---------

Signed-off-by: ryanaoleary <ryanaoleary@google.com>
Signed-off-by: peterxcli <peterxcli@gmail.com>
peterxcli pushed a commit to peterxcli/ray that referenced this pull request Feb 25, 2026
…rs (ray-project#60170)

## Description
This PR fixes a bug with `bundle_label_selector` and `STRICT_PACK`
scheduling policy, where labels are dropped from the aggregated resource
request and then not considered when selecting from the candidate nodes
in `BundleStrictPackSchedulingPolicy`. We now filter the candidate nodes
by checking the feasibility each resource request with the labels before
aggregating them.

This PR also adds better test coverage for the scheduling policies
supported with
https://docs.ray.io/en/latest/ray-core/api/doc/ray.util.placement_group.html
and their interaction with label selectors.

## Related issues
Contributes ray-project#51564

---------

Signed-off-by: ryanaoleary <ryanaoleary@google.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

community-contribution Contributed by the community core Issues that should be addressed in Ray Core go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants