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

Fix creating $PWD/~/sky_logs in some cases. #2009

Merged
merged 1 commit into from
Jun 2, 2023
Merged

Conversation

concretevitamin
Copy link
Member

@concretevitamin concretevitamin commented Jun 1, 2023

Thanks for the report from a user. #1913 had a bug where sometimes we call os.makedirs('~/sky_logs/...', ...), causing $PWD/~/sky_logs to be created in some cases.

Repro:

sky spot launch --cloud gcp echo hi  # Or pass a YAML where _execute_file_mounts() is to be triggered
# observe `$PWD/~/sky_logs` is created

With this PR, the above succeeds & $PWD/~/sky_logs is no longer created.

cc @cblmemo to take a look too.

Tested (run the relevant ones):

  • Any manual or new tests for this PR (please specify below): above
  • All smoke tests: pytest tests/test_smoke.py: running
  • Relevant individual smoke tests: pytest tests/test_smoke.py::test_fill_in_the_name
  • Backward compatibility tests: bash tests/backward_comaptibility_tests.sh

Copy link
Collaborator

@Michaelvll Michaelvll 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 @concretevitamin! LGTM.

@cblmemo
Copy link
Collaborator

cblmemo commented Jun 2, 2023

LGTM too 🫡

@concretevitamin concretevitamin merged commit 08eadcc into master Jun 2, 2023
@concretevitamin concretevitamin deleted the fix-log-path branch June 2, 2023 01:06
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.

3 participants