Skip to content

[RuntimeEnv] Fixes spaces in paths causing failures on Windows - #25659

Merged
edoakes merged 1 commit into
ray-project:masterfrom
bushshrub:runtimeenv-fix-windows-spaces
Jun 15, 2022
Merged

edoakes merged 1 commit into
ray-project:masterfrom
bushshrub:runtimeenv-fix-windows-spaces

Conversation

@bushshrub

@bushshrub bushshrub commented Jun 10, 2022 •

Copy link
Copy Markdown
Contributor

Why are these changes needed?

This is a follow-up to the previous PR (GitHub did some funky things when I did a rebase, so I had to create a new one)

On Windows systems, the exec_worker method may fail due to spaces being present in arguments that are file paths. This addresses said issue.

Related issue number

Closes #24574

Checks

cc @mattip @architkulkarni @SJ-L

@mattip

mattip commented Jun 12, 2022

Copy link
Copy Markdown
Contributor

LGTM, although I do wonder if we can use subprocess.run for all platforms instead of os.execvp. I tried this over unssuccessfully at #25546, which makes me wonder why tests are passing here that failed there. Is the use of subprocess.run going to cause future failures as we enable more windows runtime environment tests?

@bushshrub

bushshrub commented Jun 12, 2022 •

Copy link
Copy Markdown
Contributor Author

I agree. Rather strange that my tests are passing while yours are failing. Not sure what's so different. Isn't subprocess.run supposed to standardize things across platforms? I did only enable this for Windows platforms, considering that the other code wasn't broken I really didn't want to touch it. Anyone familiar with runtime env?

@mattip

mattip commented Jun 12, 2022

Copy link
Copy Markdown
Contributor

There is an open PR #23613 that should be merged soon to enable conda runtime environment tests on windows. I wonder if merging that PR will expose some breakage here?

@bushshrub

Copy link
Copy Markdown
Contributor Author

There is an open PR #23613 that should be merged soon to enable conda runtime environment tests on windows. I wonder if merging that PR will expose some breakage here?

I will try rebasing this PR on that PR and see if it works

@mattip

mattip commented Jun 14, 2022

Copy link
Copy Markdown
Contributor

#23613 was merged. Could you rebase this on master to get those changes?

@bushshrub

Copy link
Copy Markdown
Contributor Author

Will do

@bushshrub
bushshrub force-pushed the runtimeenv-fix-windows-spaces branch from 778afde to cb1c525 Compare June 15, 2022 00:33
@bushshrub

Copy link
Copy Markdown
Contributor Author

Builds look fine to me @mattip

@mattip

mattip commented Jun 15, 2022

Copy link
Copy Markdown
Contributor

OK. Can you remove the "draft" status? I think this is ready for review.

@bushshrub
bushshrub marked this pull request as ready for review June 15, 2022 08:26
@mattip

mattip commented Jun 15, 2022

Copy link
Copy Markdown
Contributor

@architkulkarni want to take a look? I think this solves the problems. There may be more tweaks needed as more runtime_env tests are enabled, the current set passes here including the tricky conda activate xxx && conda <command>

@architkulkarni architkulkarni left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me!

@architkulkarni

Copy link
Copy Markdown
Contributor

@architkulkarni

Copy link
Copy Markdown
Contributor

Assigning @edoakes for merge privileges

@edoakes
edoakes merged commit b4d85a2 into ray-project:master Jun 15, 2022
@mattip mattip mentioned this pull request Jun 16, 2022
1 of 6 tasks
@bushshrub
bushshrub deleted the runtimeenv-fix-windows-spaces branch June 16, 2022 05:19
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.

[Ray cannot find Python.exe because of spaces in path<Ray component: Core|RLlib|etc...>]

4 participants