-
Notifications
You must be signed in to change notification settings - Fork 539
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
[Dependency] Fix the lazy import failure for OCI #3463
Conversation
sky/serve/core.py
Outdated
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.
This is actually fixed in #3363; see the pic attached.
If we want to separate this into a single PR and merge it first, IIUC change the
if (not controller_exist and
controller_resources_in_config.cloud is None):
to
if (not controller_exist and
controller_resources_in_config.cloud is None and requested_clouds):
could resolve this problem.
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.
why the current version does not work, which seems simpler to me
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.
This should work as well. Just trying to reduce the merge conflict 😂
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.
Actually, it seems that #3363 covers more cases, and is ready to go. I am going to get rid of the handling of the clouds here, and we can get that PR merged first : )
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.
Just tried and it works well! LGTM.
sky/serve/core.py
Outdated
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.
This should work as well. Just trying to reduce the merge conflict 😂
ea6cc94
to
7d5926a
Compare
Fixes #3462The problem is caused by we setting the controller resources with an empty resource field when no cloud is specified.#3462 should be fixed in #3363.
This PR now only fixes the issue where OCI is imported even if the user does not have it enabled. This is introduced by #3394.
This can affect all new users of SkyServe who don't have OCI setup.
Tested (run the relevant ones):
bash format.sh
sky serve up -n new llm/llama-3/llama3.yaml
with no existing controllerpytest tests/test_smoke.py
pytest tests/test_smoke.py::test_fill_in_the_name
bash tests/backward_comaptibility_tests.sh