Repository navigation
WINDOWS: enable and fix failures in test_runtime_env_complicated - #22449
Conversation
There was a problem hiding this comment.
This change provides a nicer error message on windows when env is used but PATH is not provided. The default on windows is an empty PATH, which will almost always fail.
There was a problem hiding this comment.
Use the canonical method to find the top-level python directory. On windows python.exe can be either in the top-level directory or in Scripts, so using sys.prefix works around complicated logic.
There was a problem hiding this comment.
moved this to windows-only to make sure it does not break non-windows
There was a problem hiding this comment.
Remove the empty env={} which breaks windows (here and in other calls to exec_cmd_stream_to_logger)
There was a problem hiding this comment.
reverted this since it might be affecting linux
|
This passes for me locally after properly setting up conda. CI is failing left and right, the relevant part seems to be the windows run of test_runtime_env_complicated which complains |
8571888 to
274b19d
Compare
599da53 to
f1ece21
Compare
|
@architkulkarni thoughts? I think the failing tests do not involve the runtime environments and are flakey in general. |
|
Thanks for your help with this! The I've restarted the test just to get more data points. |
|
Yes, of course it is relevant. I wonder how I missed that failure. Sorry, I will try to fix it. |
|
No problem, I think we have too many other flaky tests which hide the real failures :( Anyways, thanks and I'm happy to pair program on this again any time! |
2fa1e3f to
43c6489
Compare
|
Weird. The windows test is failing but are marked passing in the summary here. |
|
Odd, could it be that windows Build & test buildkite job hasn't been set up to show up as a separate check mark in github, so it only shows up at the top level |
|
I enabled more tests from |
|
Sounds good! I just reviewed it and it looks great. I guess we should hold off on merging anything that removes the |
|
Yes, we should have more tests passing. It may take a few iterations to get CI to be happy with just these changes. I tried a few different scenarios and the tests seemed to pass locally: running with only conda init, running with conda activated, running with |
|
The calls to |
|
I am a bit at a loss here. Is there an easy way to get a summary of which tests are failing? |
|
Also it seems
Is it passing on HEAD? Is this because of a random combination of tests leaving too much cruft on |
|
I'm not sure about the timeout in PipProcessor, is it passing locally? |
Maybe @Catch-Bull has some idea about this? |
|
PipProcessor passes locally. |
|
5c53f65 to
ebff16f
Compare
a8c8ea3 to
6e738aa
Compare
|
I rebased to get #23373 and also changed the documentation. |
Co-authored-by: Archit Kulkarni <[email protected]>
|
The bad news is that one of the windows shards is failing. The less bad news is that it is in a test tht seems to be unrelated to this PR, in |
|
The |
|
Thanks--rerunning them for now to check if they're transient failures. |
|
That failure is gone now there is a different one, again, not on windows: |
|
Thanks, rerunning the RLlib test but it's flaky on master and I think it should be unrelated. |
|
Tests look good! @pcmoritz shall we merge this? I don't have merge privileges. |
Continuation of #22449 Fix pip activation so something like this will not crash ``` ray.init(runtime_env={"pip": ["toolz", "requests"]}) ``` Also enable test that hit this code path.
Continuation of #22342 to enable runtime_env tests on windows. Part of #22186
Enable runtime_env tests in test_runtime_env_complicated. The fixes involved getting paths correct in conda, virtualenvs, and base python, since there are differences between the layouts on linux and windows.