-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci/release] Update to recent anyscale API changes (#21149)
Recent changes in the anyscale API rendered the current e2e script incompatible. This PR resolves these subtle API changes.
- Loading branch information
Showing
2 changed files
with
7 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -212,7 +212,7 @@ | |
|
||
import anyscale | ||
import anyscale.conf | ||
from anyscale.api import instantiate_api_client | ||
from anyscale.authenticate import get_auth_api_client | ||
from anyscale.controllers.session_controller import SessionController | ||
from anyscale.sdk.anyscale_client.sdk import AnyscaleSDK | ||
|
||
|
@@ -243,7 +243,7 @@ def getenv_default(key: str, default: Optional[str] = None): | |
"ANYSCALE_USER": getenv_default("ANYSCALE_USER", | ||
"[email protected]"), | ||
"ANYSCALE_HOST": getenv_default("ANYSCALE_HOST", | ||
"https://beta.anyscale.com"), | ||
"https://console.anyscale.com"), | ||
"ANYSCALE_CLI_TOKEN": getenv_default("ANYSCALE_CLI_TOKEN"), | ||
"ANYSCALE_CLOUD_ID": getenv_default( | ||
"ANYSCALE_CLOUD_ID", | ||
|
@@ -1307,13 +1307,10 @@ def run_test_config( | |
# So we use the session controller instead. | ||
sdk = AnyscaleSDK(auth_token=GLOBAL_CONFIG["ANYSCALE_CLI_TOKEN"]) | ||
|
||
session_controller = SessionController( | ||
api_client=instantiate_api_client( | ||
cli_token=GLOBAL_CONFIG["ANYSCALE_CLI_TOKEN"], | ||
host=GLOBAL_CONFIG["ANYSCALE_HOST"], | ||
), | ||
anyscale_api_client=sdk.api_client, | ||
) | ||
get_auth_api_client( | ||
cli_token=GLOBAL_CONFIG["ANYSCALE_CLI_TOKEN"], | ||
host=GLOBAL_CONFIG["ANYSCALE_HOST"]) | ||
session_controller = SessionController() | ||
|
||
cloud_id = test_config["cluster"].get("cloud_id", None) | ||
cloud_name = test_config["cluster"].get("cloud_name", None) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
ray | ||
click | ||
anyscale==0.5.0 | ||
anyscale>0.5.0 | ||
slackclient | ||
boto3 | ||
PyGithub | ||
|