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

Suppress noisy Ray prints #9

Open
honno opened this issue Jul 12, 2022 · 0 comments
Open

Suppress noisy Ray prints #9

honno opened this issue Jul 12, 2022 · 0 comments

Comments

@honno
Copy link
Member

honno commented Jul 12, 2022

Due to ray-project/ray#21424, Ray (and thus Modin) is making pytest reports very noisy.

Presumably because of Ray printing these things on a separate server, something like money-patching print as a no-op doesn't work. I tried playing around with pytest's *Report objects, which get exposed in various hooks, however it seems none of these actually hold these captures (i.e. in report.sections). Interestingly pytest is capturing these prints and reporting them in the stdout/stderr capture sections in the terminal report, but none of the relevant hooks seem to expose those for us to remove. Note terminal summary (i.e. pytest_terminal_summary) comes after captured stdout/stderror, .

I'll have to have another look as these prints make testing with Modin/Ray rather impractical. I focused on Ray as the engine as that seems to be the more common and supported use case, but I might just see how Dask plays as an engine (or indeed test with both).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant