Skip to content

[Core] (Resource Isolation 7/n) Move common killing policy helper functions to util#61297

Merged
israbbani merged 3 commits intoray-project:masterfrom
Kunchd:factor_common_policy_test_functions
Feb 25, 2026
Merged

[Core] (Resource Isolation 7/n) Move common killing policy helper functions to util#61297
israbbani merged 3 commits intoray-project:masterfrom
Kunchd:factor_common_policy_test_functions

Conversation

@Kunchd
Copy link
Contributor

@Kunchd Kunchd commented Feb 24, 2026

Description

This PR provides basic quality-of-life update to move the common killing policy helper functions out of the group by owner killing policy tests and into util. This way, future killing policy tests can reuse these functions without redundancy.

Related issues

Additional information

Signed-off-by: davik <davik@anyscale.com>
@Kunchd Kunchd requested a review from a team as a code owner February 24, 2026 23:35
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 good quality-of-life improvement that refactors common test helper functions for creating and killing mock workers into a shared utility file (src/ray/raylet/tests/util.h). This reduces code duplication in worker_killing_policy_group_by_owner_test.cc and makes these helpers available for future tests. The implementation of the new utility functions is mostly solid, but I have a few suggestions to improve clarity and remove redundancy.

Signed-off-by: davik <davik@anyscale.com>
@Kunchd Kunchd added the go add ONLY when ready to merge, run all tests label Feb 25, 2026
@ray-gardener ray-gardener bot added the community-contribution Contributed by the community label Feb 25, 2026
@israbbani israbbani enabled auto-merge (squash) February 25, 2026 17:59
@github-actions github-actions bot disabled auto-merge February 25, 2026 17:59
@israbbani israbbani merged commit b24f6e6 into ray-project:master Feb 25, 2026
7 checks passed
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 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