Skip to content

[core] Deflake node manager test#62673

Merged
dayshah merged 1 commit intoray-project:masterfrom
Sparks0219:joshlee/deflake_node_manager_test
Apr 16, 2026
Merged

[core] Deflake node manager test#62673
dayshah merged 1 commit intoray-project:masterfrom
Sparks0219:joshlee/deflake_node_manager_test

Conversation

@Sparks0219
Copy link
Copy Markdown
Contributor

In #62168 we modified the memory monitor constructor to take in a cgroup_manager which for tests is effectively passing a nullptr where we're expecting a const ref: https://github.com/ray-project/ray/pull/62168/changes#diff-d2f22b8f1bf5f9be47dacae8b467a72ee94629df12ffcc18b13447192ff3dbcfL246

Since it's not actually used in the node_manager_test I'm assuming that's how it passed CI, but it's getting flagged (rightfully) by the UBSAN test. Passing a noop cgroup manager instead.

Signed-off-by: Joshua Lee <joshlee@anyscale.com>
@Sparks0219 Sparks0219 requested a review from a team as a code owner April 16, 2026 18:54
@Sparks0219 Sparks0219 added the go add ONLY when ready to merge, run all tests label Apr 16, 2026
Copy link
Copy Markdown
Contributor

@Kunchd Kunchd left a comment

Choose a reason for hiding this comment

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

Glad we're getting rid of nullptrs. It's the million dollar problem!

@Sparks0219
Copy link
Copy Markdown
Contributor Author

Unblocked sanitizer tests on premerge so on pass should be good to go

@Sparks0219
Copy link
Copy Markdown
Contributor Author

Glad we're getting rid of nullptrs. It's the million dollar problem!

actually true :kek

@Sparks0219 Sparks0219 requested a review from a team April 16, 2026 18:57
Copy link
Copy Markdown
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 updates the visibility of the noop_cgroup_manager library to public and integrates it into the NodeManagerTest. It adds the required Bazel dependency and replaces a null pointer with a NoopCgroupManager instance in the test suite. I have no feedback to provide as there were no review comments.

@dayshah dayshah enabled auto-merge (squash) April 16, 2026 19:00
@ray-gardener ray-gardener bot added the core Issues that should be addressed in Ray Core label Apr 16, 2026
@dayshah dayshah merged commit c3de0d6 into ray-project:master Apr 16, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

4 participants