Skip to content

[train] Migrate/disable a few remaining tests for V2#57764

Merged
justinvyu merged 17 commits intoray-project:masterfrom
justinvyu:flipv2switch
Oct 17, 2025
Merged

[train] Migrate/disable a few remaining tests for V2#57764
justinvyu merged 17 commits intoray-project:masterfrom
justinvyu:flipv2switch

Conversation

@justinvyu
Copy link
Contributor

@justinvyu justinvyu commented Oct 15, 2025

Description

There's a few more tests that haven't been migrated -- this PR migrates them as preparation to flip the V2 switch.

Related issues

Types of change

  • Bug fix 🐛
  • New feature ✨
  • Enhancement 🚀
  • Code refactoring 🔧
  • Documentation update 📖
  • Chore 🧹
  • Style 🎨

Checklist

Does this PR introduce breaking changes?

  • Yes ⚠️
  • No

Testing:

  • Added/updated tests for my changes
  • Tested the changes manually
  • This PR is not tested ❌ (please explain why)

Code Quality:

  • Signed off every commit (git commit -s)
  • Ran pre-commit hooks (setup guide)

Documentation:

  • Updated documentation (if applicable) (contribution guide)
  • Added new APIs to doc/source/ (if applicable)

Additional context

Signed-off-by: Justin Yu <[email protected]>
@justinvyu justinvyu requested a review from a team as a code owner October 15, 2025 22:36
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 enables Ray Train V2 by default, a significant but intentional breaking change. The implementation is a simple and correct one-line modification in is_v2_enabled to change the default value. This aligns with the project's goal of migrating users to Train V2 while providing an escape hatch (RAY_TRAIN_V2_ENABLED=0) for those who need to remain on the deprecated V1. Based on the PR description that all related tests and examples have been migrated, the change appears sound.

@justinvyu justinvyu requested a review from a team as a code owner October 16, 2025 00:01
Copy link
Contributor

@matthewdeng matthewdeng left a comment

Choose a reason for hiding this comment

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

Image

Copy link
Contributor Author

@justinvyu justinvyu left a comment

Choose a reason for hiding this comment

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

I missed a few test suites (train doc test and train gpu py_doctest), so will do that in a followup.

@ray-gardener ray-gardener bot added the train Ray Train Related Issue label Oct 16, 2025
@justinvyu justinvyu changed the title [train] Turn V2 on by default [train] Migrate/disable a few remaining tests for V2 Oct 16, 2025
@justinvyu justinvyu added the go add ONLY when ready to merge, run all tests label Oct 16, 2025
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 October 16, 2025 23:42
Signed-off-by: Justin Yu <[email protected]>
@justinvyu justinvyu requested a review from a team as a code owner October 16, 2025 23:44
Signed-off-by: Justin Yu <[email protected]>
@justinvyu justinvyu merged commit ab784fb into ray-project:master Oct 17, 2025
6 checks passed
@justinvyu justinvyu deleted the flipv2switch branch October 17, 2025 19:27
justinyeh1995 pushed a commit to justinyeh1995/ray that referenced this pull request Oct 20, 2025
There's a few more tests that haven't been migrated -- this PR migrates
them as preparation to flip the V2 switch.

---------

Signed-off-by: Justin Yu <[email protected]>
xinyuangui2 pushed a commit to xinyuangui2/ray that referenced this pull request Oct 22, 2025
There's a few more tests that haven't been migrated -- this PR migrates
them as preparation to flip the V2 switch.

---------

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
There's a few more tests that haven't been migrated -- this PR migrates
them as preparation to flip the V2 switch.

---------

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
There's a few more tests that haven't been migrated -- this PR migrates
them as preparation to flip the V2 switch.

---------

Signed-off-by: Justin Yu <[email protected]>
Aydin-ab pushed a commit to Aydin-ab/ray-aydin that referenced this pull request Nov 19, 2025
There's a few more tests that haven't been migrated -- this PR migrates
them as preparation to flip the V2 switch.

---------

Signed-off-by: Justin Yu <[email protected]>
Signed-off-by: Aydin Abiar <[email protected]>
Future-Outlier pushed a commit to Future-Outlier/ray that referenced this pull request Dec 7, 2025
There's a few more tests that haven't been migrated -- this PR migrates
them as preparation to flip the V2 switch.

---------

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

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.

4 participants