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

[Azure] Use SkyPilot provisioner for status query #3696

Merged
merged 11 commits into from
Jul 1, 2024

Conversation

Michaelvll
Copy link
Collaborator

@Michaelvll Michaelvll commented Jun 27, 2024

This PR uses SkyPilot provisioned to query the VM status for Azure, making it more robust against the original CLI-based query.

Tested (run the relevant ones):

  • Code formatting: bash format.sh
  • Any manual or new tests for this PR (please specify below)
    • sky launch -c test-azure-query -i 0 --cloud azure --cpus 2 echo hi
    • for i in `seq 1 10000`; do sky status -r test-azure-query; done
    • sky autostop --down -i 0 test-azure-query
    • for i in `seq 1 10000`; do sky status -r test-azure-query; done
    • sky launch -c test-azure-query -i 0 --cloud azure --cpus 2 --num-nodes 2 echo hi
    • for i in `seq 1 10000`; do sky status -r test-azure-query; done
    • for i in `seq 1 10`; do sky launch --cloud azure --cpus 2 --num-nodes 2 -y echo hi; done and sky status -r
  • 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: conda deactivate; bash -i tests/backward_compatibility_tests.sh

@Michaelvll Michaelvll marked this pull request as ready for review June 27, 2024 07:54
@Michaelvll Michaelvll requested a review from cblmemo June 28, 2024 06:36
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 updating this @Michaelvll ! It looks great to me 🚀 Left several nits, other than that it is ready to go!

@Michaelvll Michaelvll merged commit 3d9c6ca into master Jul 1, 2024
20 checks passed
@Michaelvll Michaelvll deleted the azure-query-status branch July 1, 2024 05:10
Michaelvll added a commit that referenced this pull request Aug 23, 2024
* Use SkyPilot for status query

* format

* Avoid reconfig

* Add todo

* Fix filtering for autodown clusters

* remove comment

* Address comments

* typing
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