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] Error out for a non-exist SKYPILOT_CONFIG #3423

Merged
merged 3 commits into from
Apr 5, 2024

Conversation

Michaelvll
Copy link
Collaborator

@Michaelvll Michaelvll commented Apr 5, 2024

If the user's SKYPILOT_CONFIG does not point to a file, currently, it will just slient go through without any message. We should error out as it is likely unintentional.

Tested (run the relevant ones):

  • Code formatting: bash format.sh
  • Any manual or new tests for this PR (please specify below)
    • SKYPILOT_CONFIG="" sky launch -c test error out correctly
    • SKYPILOT_CONFIG="existing-path" sky launch -c test works correctly
    • SKYPILOT_DEBUG=1 SKYPILOT_CONFIG="existing-path" sky spot launch -n test echo hi
    • SKYPILOT_DEBUG=1 sky spot launch -n test echo hi
  • All smoke tests: pytest tests/test_smoke.py
  • Relevant individual smoke tests: pytest tests/test_smoke.py::test_fill_in_the_name
  • Backward compatibility tests: bash tests/backward_comaptibility_tests.sh

@Michaelvll Michaelvll merged commit 7672360 into master Apr 5, 2024
20 checks passed
@Michaelvll Michaelvll deleted the error-out-for-non-exist-config-path branch April 5, 2024 04:03
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.

2 participants