Skip to content

Commit

Permalink
[ci/release] Update to recent anyscale API changes (#21149)
Browse files Browse the repository at this point in the history
Recent changes in the anyscale API rendered the current e2e script incompatible. This PR resolves these subtle API changes.
  • Loading branch information
krfricke authored Jan 4, 2022
1 parent abd3bef commit aa35045
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
15 changes: 6 additions & 9 deletions release/e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion release/requirements.txt
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
Expand Down

0 comments on commit aa35045

Please sign in to comment.