Skip to content

Commit 84bffe6

Browse files
committed
chore: Test integration test with main branch
1 parent 57aeeb2 commit 84bffe6

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

packages/toolbox-core/integration.cloudbuild.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ steps:
3333
env:
3434
- TOOLBOX_URL=$_TOOLBOX_URL
3535
- TOOLBOX_VERSION=$_TOOLBOX_VERSION
36+
- TOOLBOX_BUCKET=$_TOOLBOX_BUCKET
3637
- GOOGLE_CLOUD_PROJECT=$PROJECT_ID
3738
args:
3839
- '-c'
@@ -43,4 +44,5 @@ options:
4344
logging: CLOUD_LOGGING_ONLY
4445
substitutions:
4546
_VERSION: '3.13'
46-
_TOOLBOX_VERSION: '0.7.0'
47+
_TOOLBOX_VERSION: 'main'
48+
_TOOLBOX_BUCKET: 'genai-toolbox-dev'

packages/toolbox-core/tests/conftest.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ def project_id() -> str:
101101
def toolbox_version() -> str:
102102
return get_env_var("TOOLBOX_VERSION")
103103

104+
@pytest_asyncio.fixture(scope="session")
105+
def toolbox_bucket() -> str:
106+
return get_env_var("TOOLBOX_BUCKET")
104107

105108
@pytest_asyncio.fixture(scope="session")
106109
def tools_file_path(project_id: str) -> Generator[str]:
@@ -130,11 +133,11 @@ def auth_token2(project_id: str) -> str:
130133

131134

132135
@pytest_asyncio.fixture(scope="session")
133-
def toolbox_server(toolbox_version: str, tools_file_path: str) -> Generator[None]:
136+
def toolbox_server(toolbox_version: str, toolbox_bucket: str, tools_file_path: str) -> Generator[None]:
134137
"""Starts the toolbox server as a subprocess."""
135138
print("Downloading toolbox binary from gcs bucket...")
136139
source_blob_name = get_toolbox_binary_url(toolbox_version)
137-
download_blob("genai-toolbox", source_blob_name, "toolbox")
140+
download_blob(toolbox_bucket, source_blob_name, "toolbox")
138141
print("Toolbox binary downloaded successfully.")
139142
try:
140143
print("Opening toolbox server process...")

0 commit comments

Comments
 (0)