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 a bug in sorting VMs with --cpus requirement #2037

Merged
merged 4 commits into from
Jun 7, 2023
Merged

Conversation

WoosukKwon
Copy link
Collaborator

Currently, SkyPilot selects the VM with the smallest number of vCPUs when --cpus is specified. This PR corrects this behavior by sorting the candidate VMs based on their prices.

Tested (run the relevant ones):

  • Any manual or new tests for this PR (please specify below)
  • 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

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.

LGTM, thanks @WoosukKwon.

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.

Great catch @WoosukKwon! Thanks for fixing this

@WoosukKwon WoosukKwon merged commit d293e99 into master Jun 7, 2023
15 checks passed
@WoosukKwon WoosukKwon deleted the sort-cpu branch June 7, 2023 08:16
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