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

Added confirmation prompt for sky storage delete, and --yes flag to skip it #2726

Merged
merged 19 commits into from
Nov 1, 2023

Conversation

aseriesof-tubes
Copy link
Contributor

This is for issue #2635

Added a feature for sky storage delete where by default it shows a confirmation prompt before deleting, like in sky down or sky stop. Like those commands, users can add a --yes flag to skip the confirmation prompt. Also changed some tests in test_smoke for TestStorageWithCredentials for the tests to automatically use the --yes flag.

Tested (run the relevant ones):

  • Code formatting: bash format.sh
  • Any manual or new tests for this PR (please specify below)
    Changed some check_output commands to include the --yes flag, so previously if it was check_output( ['sky', 'storage', 'delete', storage_name]), now it's check_output(['sky', 'storage', 'delete', storage_name, '--yes'])
  • All smoke tests: pytest tests/test_smoke.py
  • Relevant individual smoke tests: pytest tests/test_smoke.py::TestStorageWithCredentials
  • Backward compatibility tests: bash tests/backward_comaptibility_tests.sh

Copy link
Collaborator

@landscapepainter landscapepainter left a comment

Choose a reason for hiding this comment

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

@aseriesof-tubes Thanks for your contribution! Left some comments :)

sky/cli.py Outdated Show resolved Hide resolved
sky/cli.py Outdated Show resolved Hide resolved
aseriesof-tubes and others added 5 commits October 22, 2023 12:15
Co-authored-by: Doyoung Kim <34902420+landscapepainter@users.noreply.github.com>
Copy link
Collaborator

@romilbhardwaj romilbhardwaj left a comment

Choose a reason for hiding this comment

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

Welcome to SkyPilot @aseriesof-tubes! I noticed some redundant messages and a bug when non-existent storage is specified, noted in comments below.

sky/cli.py Outdated Show resolved Hide resolved
sky/cli.py Outdated Show resolved Hide resolved
sky/cli.py Outdated Show resolved Hide resolved
@aseriesof-tubes
Copy link
Contributor Author

Thank you for the warm welcome @romilbhardwaj and @landscapepainter, your reviews are appreciated, and changes have been made!

Copy link
Collaborator

@landscapepainter landscapepainter 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 theq quick update @aseriesof-tubes ! Left some comments. This should be ready to merge after 👍

sky/cli.py Outdated Show resolved Hide resolved
sky/cli.py Outdated Show resolved Hide resolved
tests/test_smoke.py Outdated Show resolved Hide resolved
aseriesof-tubes and others added 5 commits October 30, 2023 13:41
Co-authored-by: Doyoung Kim <34902420+landscapepainter@users.noreply.github.com>
@aseriesof-tubes
Copy link
Contributor Author

Hi @landscapepainter @romilbhardwaj, the PR is ready for review again! Thank you for your patience :)

Copy link
Collaborator

@landscapepainter landscapepainter left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the contribution @aseriesof-tubes

sky/cli.py Outdated Show resolved Hide resolved
Co-authored-by: Doyoung Kim <34902420+landscapepainter@users.noreply.github.com>
sky/cli.py Outdated Show resolved Hide resolved
@landscapepainter landscapepainter merged commit da2d6ec into skypilot-org:master Nov 1, 2023
18 checks passed
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.

None yet

3 participants