-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Revert "Global logging format changes" #34126
Conversation
This reverts commit dc558d5.
Cna you also comment which doc test has failed after merging this? |
Whoops. Not from docs 🙂 |
@rkooo567 it's 41 doctests, e.g. in this raw output search for "Expected:" I think most of them are related to datasets/DAG outputs printed from actors. |
Example:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey guys. Plz do not merge this yet. This pr requires reviews from many teams, and it was pretty difficult to merge it, so i’d like to see if I can fix the doc test rather than reverting it doing the same thing. If I fail by EoD today, I will revert it. |
@rkooo567 In the specific example above, IMO there is no bug here: these messages ought to be displayed to the user. For this particular case we can ignore the logging output in this doctest rather than revert the whole change. @rkooo567 Let's coordinate the fix here - I'm happy to work on this in the morning first thing if that works for you. |
@peytondmurray I see. So my guess is the right fix is the Btw, do you have insight why after your PR, the behavior is changed? My gut feeling is this should have been the same before, but it seems like your PR somehow changes this behavior... Also, yes. Can you take a look at the fix and make a PR asap? I blocked merging this for now, but we cannot delay this long. We should revert it if it is not fixed promptly... |
I believe this should fix the issue? Can you take a look? Also feel free to push code directly or make your own PR if other approach is needed |
Okay. We failed to find the root cause so far (it looks like we can fix the getting-started failure, but there are other failures that are only happening when tests are run by make doctest). Since I don't want to break the master long time, I'd be okay to merge this PR. @peytondmurray I think we should recreate a PR and bisect features to find the root cause of this failure.... |
Let's create a new PR and try fixing this issue... |
@rkooo567 Yep. I'll make a new PR now so we can start working on it. |
Adter manual bisection, I think this PR may be causing the "Documentation" tests to fail. The failure was previously masked by an actual failing doctest, but after this commit, actor outputs clutter the doctests and lead to mismatches in expected and actual output. Let's see if reverting fixes these problems. Reverts ray-project#32741 Signed-off-by: elliottower <[email protected]>
This reverts commit 45d5f65. Signed-off-by: pdmurray <[email protected]>
Adter manual bisection, I think this PR may be causing the "Documentation" tests to fail. The failure was previously masked by an actual failing doctest, but after this commit, actor outputs clutter the doctests and lead to mismatches in expected and actual output. Let's see if reverting fixes these problems. Reverts ray-project#32741 Signed-off-by: Jack He <[email protected]>
This reverts commit 45d5f65. Signed-off-by: pdmurray <[email protected]>
Attempts to consolidate logging configuration by introducing reasonable defaults in ray/log.py. This new logging configuration is done once in ray/__init__.py at the top of the module. Subsequent calls to the configuration are ignored. A logger for ray.rllib is configured at the WARN level, to address Revert "Simplify logging configuration. (#30863)" #31858. With this change, Revert "Simplify logging configuration. (#30863)" #31858 can be reverted, again simplifying and consolidating logging configuration. Modified test_output.py::test_logger_config to test only the logger config, not launch a ray cluster. The test was failing intermittently, I think due to a race condition between the launch of the cluster and the reading of the subprocess's stdout, and anyway it wasn't necessary to call ray.init here to check that logging was configured correctly. Modified python/ray/tune/tests/test_commands.py::test_ls_with_cfg to test the underlying data, not what gets printed to stdout (which has changed with the new logging system). Modified a logging message in ray.tune.automl.search_policy.AutoMLSearcher.on_trial_complete, which in certain cases emits a logging message which tries to format a NoneType into a %f during log message formatting. This was a previously-undetected bug which showed up because the default log level is now INFO. This fixes a test that was failing in test_automl_searcher.py::AutoMLSearcherTest.
…ay-project#34182) Attempts to consolidate logging configuration by introducing reasonable defaults in ray/log.py. This new logging configuration is done once in ray/__init__.py at the top of the module. Subsequent calls to the configuration are ignored. A logger for ray.rllib is configured at the WARN level, to address Revert "Simplify logging configuration. (ray-project#30863)" ray-project#31858. With this change, Revert "Simplify logging configuration. (ray-project#30863)" ray-project#31858 can be reverted, again simplifying and consolidating logging configuration. Modified test_output.py::test_logger_config to test only the logger config, not launch a ray cluster. The test was failing intermittently, I think due to a race condition between the launch of the cluster and the reading of the subprocess's stdout, and anyway it wasn't necessary to call ray.init here to check that logging was configured correctly. Modified python/ray/tune/tests/test_commands.py::test_ls_with_cfg to test the underlying data, not what gets printed to stdout (which has changed with the new logging system). Modified a logging message in ray.tune.automl.search_policy.AutoMLSearcher.on_trial_complete, which in certain cases emits a logging message which tries to format a NoneType into a %f during log message formatting. This was a previously-undetected bug which showed up because the default log level is now INFO. This fixes a test that was failing in test_automl_searcher.py::AutoMLSearcherTest.
…ay-project#34182) Attempts to consolidate logging configuration by introducing reasonable defaults in ray/log.py. This new logging configuration is done once in ray/__init__.py at the top of the module. Subsequent calls to the configuration are ignored. A logger for ray.rllib is configured at the WARN level, to address Revert "Simplify logging configuration. (ray-project#30863)" ray-project#31858. With this change, Revert "Simplify logging configuration. (ray-project#30863)" ray-project#31858 can be reverted, again simplifying and consolidating logging configuration. Modified test_output.py::test_logger_config to test only the logger config, not launch a ray cluster. The test was failing intermittently, I think due to a race condition between the launch of the cluster and the reading of the subprocess's stdout, and anyway it wasn't necessary to call ray.init here to check that logging was configured correctly. Modified python/ray/tune/tests/test_commands.py::test_ls_with_cfg to test the underlying data, not what gets printed to stdout (which has changed with the new logging system). Modified a logging message in ray.tune.automl.search_policy.AutoMLSearcher.on_trial_complete, which in certain cases emits a logging message which tries to format a NoneType into a %f during log message formatting. This was a previously-undetected bug which showed up because the default log level is now INFO. This fixes a test that was failing in test_automl_searcher.py::AutoMLSearcherTest. Signed-off-by: e428265 <[email protected]>
Adter manual bisection, I think this PR may be causing the "Documentation" tests to fail.
The failure was previously masked by an actual failing doctest, but after this commit, actor outputs clutter the doctests and lead to mismatches in expected and actual output.
Let's see if reverting fixes these problems.
Reverts #32741