Skip to content

[tune] Enable Train V2 in Tune unit tests and examples - #56816

Merged
justinvyu merged 11 commits into
ray-project:masterfrom
justinvyu:tune_enable_v2
Sep 24, 2025
Merged

justinvyu merged 11 commits into
ray-project:masterfrom
justinvyu:tune_enable_v2

Conversation

@justinvyu

Copy link
Copy Markdown
Contributor

Summary

Flip the flag for Tune CI in preparation for turning on Train V2 by default. This doesn't have any behavior change, but this asserts that ray.train -> ray.tune updates have all happened.

Note that a few tests have been left behind due to testing legacy Train+Tune integration:

  • test_api_checkpoint_integration
  • test_tuner
  • test_tuner_restore

Justin Yu added 7 commits September 22, 2025 18:12
Signed-off-by: Justin Yu <[email protected]>
Justin Yu
fix
Signed-off-by: Justin Yu <[email protected]>
Justin Yu
fix
Signed-off-by: Justin Yu <[email protected]>
Signed-off-by: Justin Yu <[email protected]>
@justinvyu
justinvyu requested a review from a team as a code owner September 23, 2025 01:36

@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 systematically enables Train V2 in the Tune CI by setting the RAY_TRAIN_V2_ENABLED environment variable across numerous test targets in BUILD.bazel. The changes are well-organized, with tests for legacy V1 integration correctly excluded from the V2 environment. The accompanying code modifications, such as updating ray.train.Checkpoint to ray.tune.Checkpoint and removing obsolete ray.train imports, are consistent with the migration to the V2 API. The added TODO comments are also helpful for future cleanup. Overall, the changes are clear, correct, and align with the stated goal of the pull request.

@ray-gardener ray-gardener Bot added tune Tune-related issues devprod labels Sep 23, 2025
@justinvyu justinvyu changed the title [tune] Enable Train V2 in Tune CI [tune] Enable Train V2 in Tune unit tests Sep 23, 2025
@justinvyu justinvyu changed the title [tune] Enable Train V2 in Tune unit tests [tune] Enable Train V2 in Tune unit tests and examples Sep 23, 2025
Justin Yu added 2 commits September 23, 2025 15:25
Signed-off-by: Justin Yu <[email protected]>
Signed-off-by: Justin Yu <[email protected]>
@justinvyu
justinvyu enabled auto-merge (squash) September 24, 2025 00:42
@github-actions github-actions Bot added the go add ONLY when ready to merge, run all tests label Sep 24, 2025
@justinvyu
justinvyu merged commit be3e513 into ray-project:master Sep 24, 2025
@justinvyu
justinvyu deleted the tune_enable_v2 branch September 24, 2025 02:15
marcostephan pushed a commit to marcostephan/ray that referenced this pull request Sep 24, 2025
…6816)

Flip the flag for Tune CI in preparation for turning on Train V2 by
default. This doesn't have any behavior change, but this asserts that
`ray.train` -> `ray.tune` updates have all happened.

Note that a few tests have been left behind due to testing legacy
Train+Tune integration:
* `test_api_checkpoint_integration`
* `test_tuner`
* `test_tuner_restore`

---------

Signed-off-by: Justin Yu <[email protected]>
Signed-off-by: Marco Stephan <[email protected]>
elliot-barn pushed a commit that referenced this pull request Sep 27, 2025
Flip the flag for Tune CI in preparation for turning on Train V2 by
default. This doesn't have any behavior change, but this asserts that
`ray.train` -> `ray.tune` updates have all happened.

Note that a few tests have been left behind due to testing legacy
Train+Tune integration:
* `test_api_checkpoint_integration`
* `test_tuner`
* `test_tuner_restore`

---------

Signed-off-by: Justin Yu <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
dstrodtman pushed a commit that referenced this pull request Oct 6, 2025
Flip the flag for Tune CI in preparation for turning on Train V2 by
default. This doesn't have any behavior change, but this asserts that
`ray.train` -> `ray.tune` updates have all happened.

Note that a few tests have been left behind due to testing legacy
Train+Tune integration:
* `test_api_checkpoint_integration`
* `test_tuner`
* `test_tuner_restore`

---------

Signed-off-by: Justin Yu <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
justinvyu pushed a commit that referenced this pull request Oct 16, 2025
Ports over the remaining unit tests that were marked as TODOs from this
series of PRs: #57534, #57256, #56868, #56820, #56816.

Notably:
* `test_new_dataset_config -> test_data_integration`
* `test_backend -> test_torch_trainer, test_worker_group`
* `test_gpu -> test_torch_gpu`

This PR also finishes migrating the Tune LightGBM/Keras examples which
were unblocked by #57042 and
#57121.

---------

Signed-off-by: Justin Yu <[email protected]>
xinyuangui2 pushed a commit to xinyuangui2/ray that referenced this pull request Oct 22, 2025
Ports over the remaining unit tests that were marked as TODOs from this
series of PRs: ray-project#57534, ray-project#57256, ray-project#56868, ray-project#56820, ray-project#56816.

Notably:
* `test_new_dataset_config -> test_data_integration`
* `test_backend -> test_torch_trainer, test_worker_group`
* `test_gpu -> test_torch_gpu`

This PR also finishes migrating the Tune LightGBM/Keras examples which
were unblocked by ray-project#57042 and
ray-project#57121.

---------

Signed-off-by: Justin Yu <[email protected]>
Signed-off-by: xgui <[email protected]>
elliot-barn pushed a commit that referenced this pull request Oct 23, 2025
Ports over the remaining unit tests that were marked as TODOs from this
series of PRs: #57534, #57256, #56868, #56820, #56816.

Notably:
* `test_new_dataset_config -> test_data_integration`
* `test_backend -> test_torch_trainer, test_worker_group`
* `test_gpu -> test_torch_gpu`

This PR also finishes migrating the Tune LightGBM/Keras examples which
were unblocked by #57042 and
#57121.

---------

Signed-off-by: Justin Yu <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
landscapepainter pushed a commit to landscapepainter/ray that referenced this pull request Nov 17, 2025
…6816)

Flip the flag for Tune CI in preparation for turning on Train V2 by
default. This doesn't have any behavior change, but this asserts that
`ray.train` -> `ray.tune` updates have all happened.

Note that a few tests have been left behind due to testing legacy
Train+Tune integration:
* `test_api_checkpoint_integration`
* `test_tuner`
* `test_tuner_restore`

---------

Signed-off-by: Justin Yu <[email protected]>
landscapepainter pushed a commit to landscapepainter/ray that referenced this pull request Nov 17, 2025
Ports over the remaining unit tests that were marked as TODOs from this
series of PRs: ray-project#57534, ray-project#57256, ray-project#56868, ray-project#56820, ray-project#56816.

Notably:
* `test_new_dataset_config -> test_data_integration`
* `test_backend -> test_torch_trainer, test_worker_group`
* `test_gpu -> test_torch_gpu`

This PR also finishes migrating the Tune LightGBM/Keras examples which
were unblocked by ray-project#57042 and
ray-project#57121.

---------

Signed-off-by: Justin Yu <[email protected]>
Future-Outlier pushed a commit to Future-Outlier/ray that referenced this pull request Dec 7, 2025
…6816)

Flip the flag for Tune CI in preparation for turning on Train V2 by
default. This doesn't have any behavior change, but this asserts that
`ray.train` -> `ray.tune` updates have all happened.

Note that a few tests have been left behind due to testing legacy
Train+Tune integration:
* `test_api_checkpoint_integration`
* `test_tuner`
* `test_tuner_restore`

---------

Signed-off-by: Justin Yu <[email protected]>
Signed-off-by: Future-Outlier <[email protected]>
Future-Outlier pushed a commit to Future-Outlier/ray that referenced this pull request Dec 7, 2025
Ports over the remaining unit tests that were marked as TODOs from this
series of PRs: ray-project#57534, ray-project#57256, ray-project#56868, ray-project#56820, ray-project#56816.

Notably:
* `test_new_dataset_config -> test_data_integration`
* `test_backend -> test_torch_trainer, test_worker_group`
* `test_gpu -> test_torch_gpu`

This PR also finishes migrating the Tune LightGBM/Keras examples which
were unblocked by ray-project#57042 and
ray-project#57121.

---------

Signed-off-by: Justin Yu <[email protected]>
Signed-off-by: Future-Outlier <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devprod go add ONLY when ready to merge, run all tests tune Tune-related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants