Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AIR] Hard deprecate train.report, warn on air.session misuse #29613

Merged
merged 5 commits into from
Oct 25, 2022

Conversation

Yard1
Copy link
Member

@Yard1 Yard1 commented Oct 24, 2022

Signed-off-by: Antoni Baum antoni.baum@protonmail.com

Why are these changes needed?

Hard deprecates ray.train.report and other session functions and ensures that the user is informed when using ray.air.session if they are not in session for consistency with the old functions.

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Yard1 added 3 commits October 24, 2022 18:41
Signed-off-by: Antoni Baum <antoni.baum@protonmail.com>
Signed-off-by: Antoni Baum <antoni.baum@protonmail.com>
@Yard1 Yard1 changed the title [AIR] Hard deprecate train.report [AIR] Hard deprecate train.report, warn on air.session misuse Oct 24, 2022
Signed-off-by: Antoni Baum <antoni.baum@protonmail.com>
@Yard1 Yard1 marked this pull request as ready for review October 24, 2022 21:47
_session = None
_session_v2 = None
Copy link
Contributor

Choose a reason for hiding this comment

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

oh wow...good catch

Copy link
Contributor

@amogkam amogkam left a comment

Choose a reason for hiding this comment

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

Thanks a lot @Yard1! Much needed cleanup!

python/ray/air/session.py Outdated Show resolved Hide resolved
@amogkam amogkam merged commit 9b29fd6 into ray-project:master Oct 25, 2022
@Yard1 Yard1 deleted the deprecate_train_report branch October 25, 2022 16:57
WeichenXu123 pushed a commit to WeichenXu123/ray that referenced this pull request Dec 19, 2022
…oject#29613)

Signed-off-by: Antoni Baum antoni.baum@protonmail.com

Hard deprecates `ray.train.report` and other session functions and ensures that the user is informed when using `ray.air.session` if they are not in session for consistency with the old functions.

Signed-off-by: Weichen Xu <weichen.xu@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants