Skip to content

Conversation

@justinvyu
Copy link
Contributor

Why are these changes needed?

This PR fixes a log that was getting output when it shouldn't have. The RunConfig can be specified in both the Trainer and the Tuner. When it's passed into both, then the one passed to the Tuner will be preferred, and Tune will emit this as a log. However, there was an incorrect ordering in the code that caused this log to be output every time, even if no config was passed to the Trainer. All the cases are covered in the unit test now.

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 added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • 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 :(

Signed-off-by: Justin Yu <justinvyu@berkeley.edu>
Signed-off-by: Justin Yu <justinvyu@berkeley.edu>
Signed-off-by: Justin Yu <justinvyu@berkeley.edu>
Signed-off-by: Justin Yu <justinvyu@berkeley.edu>
@justinvyu justinvyu added the tests-ok The tagger certifies test failures are unrelated and assumes personal liability. label Mar 20, 2023
@justinvyu justinvyu requested a review from gjoliver March 20, 2023 20:50
@gjoliver gjoliver merged commit 25ad8f9 into ray-project:master Mar 21, 2023
edoakes pushed a commit to edoakes/ray that referenced this pull request Mar 22, 2023
…er + tuner (ray-project#33454)

Signed-off-by: Justin Yu <justinvyu@berkeley.edu>
Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
elliottower pushed a commit to elliottower/ray that referenced this pull request Apr 22, 2023
…er + tuner (ray-project#33454)

Signed-off-by: Justin Yu <justinvyu@berkeley.edu>
Signed-off-by: elliottower <elliot@elliottower.com>
ProjectsByJackHe pushed a commit to ProjectsByJackHe/ray that referenced this pull request May 4, 2023
…er + tuner (ray-project#33454)

Signed-off-by: Justin Yu <justinvyu@berkeley.edu>
Signed-off-by: Jack He <jackhe2345@gmail.com>
@justinvyu justinvyu deleted the tune/fix_runconfig_warning branch October 15, 2024 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests-ok The tagger certifies test failures are unrelated and assumes personal liability.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants