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

[Spot] Retry until up for spot #2004

Merged
merged 5 commits into from
Jun 1, 2023
Merged

[Spot] Retry until up for spot #2004

merged 5 commits into from
Jun 1, 2023

Conversation

Michaelvll
Copy link
Collaborator

@Michaelvll Michaelvll commented May 31, 2023

Previously, when sky spot launch --retry-until-up echo hi is executed, the retry_until_up will be set to False (weird semantics of the click package). This PR fixes that issue from #1781

Tested (run the relevant ones):

  • Any manual or new tests for this PR (please specify below)
    • sky spot launch --retry-until-up echo hi correctly warn and retry_until_up is True
    • sky spot launch --no-retry-until-up echo hi correctly warn and retry_until_up is False
    • sky spot launch echo hi no warning and retry_until_up is True
    • sky spot launch --r echo hi correctly warn and retry_until_up is True
    • sky spot launch --no-r echo hi correctly warn and retry_until_up is False
  • 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 added bug Something isn't working P0 labels May 31, 2023
Copy link
Member

@concretevitamin concretevitamin left a comment

Choose a reason for hiding this comment

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

Great catch @Michaelvll, thanks!

sky/cli.py Outdated Show resolved Hide resolved
Michaelvll and others added 2 commits May 31, 2023 16:59
Co-authored-by: Zongheng Yang <[email protected]>
@Michaelvll Michaelvll merged commit 905b61e into master Jun 1, 2023
@Michaelvll Michaelvll deleted the retry-until-up-for-spot branch June 1, 2023 00:05
concretevitamin added a commit that referenced this pull request Jun 3, 2023
* Fix retry-until-up for spot launch

* format

* abbr

* Update sky/cli.py

Co-authored-by: Zongheng Yang <[email protected]>

* format

---------

Co-authored-by: Zongheng Yang <[email protected]>
concretevitamin added a commit that referenced this pull request Jun 4, 2023
* Fix retry-until-up for spot launch

* format

* abbr

* Update sky/cli.py

Co-authored-by: Zongheng Yang <[email protected]>

* format

---------

Co-authored-by: Zongheng Yang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants