Closed andylizf closed 1 week ago
I'll look into this. Something doesn't quite add up, because if it's as you say, --generic-cloud aws
(as in the docs) wouldn't have worked before my change.
Understood - it might also be that the documentation needs updating.
Yeah, looks like this never worked properly. (pytest tests/test_smoke.py --generic-cloud aws
runs on GCP if you go to the commit before my change.)
Throwing up a PR to fix.
When running smoke tests with
--generic-cloud gcp
, the tests still use AWS instead of GCP, which is inconsistent with the behavior documented in CONTRIBUTING.md.This appears to be related to PR #4182 which changed the default clouds. The current implementation in
conftest.py
makesdefault_clouds_to_run
override the user-specified--generic-cloud
value if that cloud is not indefault_clouds_to_run
.Example:
This behavior is inconsistent with the documentation in CONTRIBUTING.md which states:
https://github.com/skypilot-org/skypilot/blob/24982a1f0ca411862b67660e580e2360310812b2/CONTRIBUTING.md?plain=1#L44-L48
I believe the
default_clouds_to_run
should not affect the validity of user-specified--generic-cloud
. If a user explicitly specifies a cloud via--generic-cloud
, that choice should be respected regardless of whether that cloud is in the default set.The issue was introduced in PR #4182 which changed how default clouds are handled.
cc @cg505