-
Notifications
You must be signed in to change notification settings - Fork 549
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 sky spot launch TPU #1249
Fix sky spot launch TPU #1249
Conversation
Great catch @infwinston. Can we add a smoke test? |
Just added! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - with this, does the user example run successfully as a managed spot job?
'sleep 600', # TPU takes a while to launch | ||
f's=$(sky spot status); printf "$s"; echo; echo; printf "$s" | grep {name} | head -n1 | grep "RUNNING\|SUCCEEDED"', | ||
], | ||
f'sky spot cancel -y -n {name}', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need a tear down command for managed spot jobs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh this smoke test will pass if the job changed from STARTING
to RUNNING
. In this case, we can actually kill the job to save some costs. But we can remove it if we want as the job is short.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I thought it was short - let's still keep it then.
Yes, it does run successfully now. |
This may change a bit of the authentication of the GCP account. Please run smoke tests before merging the PR. ; ) |
On RISE server, smoke test passed except for |
* Add active config * Add smoke test
* Add active config * Add smoke test
Now
sky spot launch
a TPU VM will fail due togcloud
not fully setup on the spot controller.This PR fixes it by uploading
~/.config/gcloud/active_config
.