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

[Core] Fix quote in command runner #3572

Merged
merged 7 commits into from
May 22, 2024
Merged

[Core] Fix quote in command runner #3572

merged 7 commits into from
May 22, 2024

Conversation

Michaelvll
Copy link
Collaborator

@Michaelvll Michaelvll commented May 21, 2024

We did not quote the command to be executed by SSH correctly when the command_runner runs a command with source_bashrc=False.
This should also fix #3531 without adding source_bashrc=True for the jobs and serve logs in #3536 and #3537

Tested (run the relevant ones):

  • Code formatting: bash format.sh
  • Any manual or new tests for this PR (please specify below)
  • All smoke tests: pytest tests/test_smoke.py
  • All smoke tests: pytest tests/test_smoke.py --aws
  • All smoke tests: pytest tests/test_smoke.py --kubernetes
  • Relevant individual smoke tests: pytest tests/test_smoke.py::test_fill_in_the_name
  • Backward compatibility tests: conda deactivate; bash -i tests/backward_compatibility_tests.sh

@Michaelvll Michaelvll changed the title [Core] Fix quote the command runner [Core] Fix quote in command runner May 21, 2024
@Michaelvll Michaelvll requested a review from cblmemo May 21, 2024 23:06
Copy link
Collaborator

@cblmemo cblmemo left a comment

Choose a reason for hiding this comment

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

Thanks for the fix! LGTM.

sky/utils/command_runner.py Outdated Show resolved Hide resolved
sky/utils/command_runner.py Outdated Show resolved Hide resolved
@Michaelvll Michaelvll merged commit ccfc3b1 into master May 22, 2024
18 of 20 checks passed
@Michaelvll Michaelvll deleted the fix-quote branch May 22, 2024 09:47
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.

[Jobs][k8s] Streaming logs fails for job controller
2 participants