Skip to content

[Train] Delete the NCCLRASCallback in favor of the health API implementation - #68612

Open
pseudo-rnd-thoughts wants to merge 1 commit into
ray-project:masterfrom
pseudo-rnd-thoughts:hang-detector/remove-callback-version
Open

pseudo-rnd-thoughts wants to merge 1 commit into
ray-project:masterfrom
pseudo-rnd-thoughts:hang-detector/remove-callback-version

Conversation

@pseudo-rnd-thoughts

Copy link
Copy Markdown
Member

Description

The NCCLRASCallback was originally implemented in #64928 as a proof of concept for detecting NCCL hangs from polling ncclras. This implementation was a custom user callback running on the controller.
At the same time, @liulehui was developing a more generic health API where user configured probes, evaluators and health checkers could be implemented. More recently, we've worked to merge the ncclras hang detector into the health API in #67916.
With that work now complete, this PR deletes the old callback version and all references such that the repo only has a single implementation.

@pseudo-rnd-thoughts
pseudo-rnd-thoughts requested a review from a team as a code owner November 27, 2026 11:49
@pseudo-rnd-thoughts pseudo-rnd-thoughts added train Ray Train Related Issue go add ONLY when ready to merge, run all tests labels Nov 27, 2026

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

Copy link
Copy Markdown
Contributor

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 removes the deprecated NCCLRASCallback and its associated unit tests, updating references to the callback in comments, docstrings, and tests across the repository. A review comment correctly points out a build configuration issue in python/ray/train/v2/BUILD.bazel where the source file path for the renamed end-to-end test target is incorrect and missing the tests/ directory prefix, which would cause Bazel build failures.

name = "test_nccl_ras_e2e_detection",
size = "large",
srcs = ["tests/test_nccl_ras_hang_detection.py"],
srcs = ["test_nccl_ras_e2e_detection.py"],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

The source file has been renamed to tests/test_nccl_ras_e2e.py, but the srcs attribute here points to test_nccl_ras_e2e_detection.py without the tests/ directory prefix and with an incorrect filename. This will cause Bazel to fail to find the source file.

Suggested change
srcs = ["test_nccl_ras_e2e_detection.py"],
srcs = ["tests/test_nccl_ras_e2e.py"],

This branch has not been deployed

No deployments
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 train Ray Train Related Issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants