Skip to content

Conversation

@aslonnie
Copy link
Collaborator

not being used any more since a loong time ago.

@aslonnie aslonnie requested a review from a team as a code owner November 17, 2025 23:52
self._run(result, True)
self.assertEqual(result.return_code, ExitCode.CONFIG_ERROR.value)

def testStartClusterFails(self):
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

cluster lifecycle management is on anyscale now.

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 removes the legacy JobRunner and FullClusterManager, simplifying the codebase to only use AnyscaleJobRunner for release tests. The changes are clean and correctly remove the associated logic and tests. I've added a couple of suggestions for further simplification now that the legacy path is gone. Specifically, I've pointed out a redundant conditional check and an opportunity to remove single-entry dictionaries to make the code more direct.

Comment on lines 55 to 61
type_str_to_command_runner = {
"job": JobRunner,
"anyscale_job": AnyscaleJobRunner,
}

command_runner_to_cluster_manager = {
JobRunner: FullClusterManager,
AnyscaleJobRunner: MinimalClusterManager,
}
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

Now that JobRunner has been removed, these dictionaries only contain a single entry. This adds a layer of indirection that is no longer necessary. Consider removing these dictionaries and directly using AnyscaleJobRunner and MinimalClusterManager in _load_test_configuration. This would make the control flow more straightforward.

For example, you could refactor the logic in _load_test_configuration to something like this:

run_type = test["run"].get("type", DEFAULT_RUN_TYPE)

if run_type == "anyscale_job":
    command_runner_cls = AnyscaleJobRunner
    cluster_manager_cls = MinimalClusterManager
else:
    raise ReleaseTestConfigError(
        f"Unknown command runner type: {run_type}. Must be one of "
        f"['anyscale_job']"
    )

Comment on lines +250 to 251
if isinstance(command_runner, AnyscaleJobRunner):
command_runner.job_manager.cluster_startup_timeout = cluster_timeout
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

Since AnyscaleJobRunner is now the only command runner used in this path, the isinstance check is redundant. You can simplify the code by removing the conditional statement.

        command_runner.job_manager.cluster_startup_timeout = cluster_timeout

@aslonnie aslonnie force-pushed the lonnie-251117-nooldjob branch from 2ed965d to 1f61281 Compare November 17, 2025 23:55
@aslonnie aslonnie added the go add ONLY when ready to merge, run all tests label Nov 18, 2025
@ray-gardener ray-gardener bot added core Issues that should be addressed in Ray Core release-test release test labels Nov 18, 2025
@aslonnie aslonnie merged commit 51ea4e8 into master Nov 18, 2025
6 checks passed
@aslonnie aslonnie deleted the lonnie-251117-nooldjob branch November 18, 2025 07:17
Aydin-ab pushed a commit to Aydin-ab/ray-aydin that referenced this pull request Nov 19, 2025
…58718)

not being used any more since a loong time ago.

Signed-off-by: Lonnie Liu <[email protected]>
Signed-off-by: Aydin Abiar <[email protected]>
ykdojo pushed a commit to ykdojo/ray that referenced this pull request Nov 27, 2025
…58718)

not being used any more since a loong time ago.

Signed-off-by: Lonnie Liu <[email protected]>
Signed-off-by: YK <[email protected]>
SheldonTsen pushed a commit to SheldonTsen/ray that referenced this pull request Dec 1, 2025
…58718)

not being used any more since a loong time ago.

Signed-off-by: Lonnie Liu <[email protected]>
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 release-test release test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants