File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 33
33
env :
34
34
- TOOLBOX_URL=$_TOOLBOX_URL
35
35
- TOOLBOX_VERSION=$_TOOLBOX_VERSION
36
+ - TOOLBOX_BUCKET=$_TOOLBOX_BUCKET
36
37
- GOOGLE_CLOUD_PROJECT=$PROJECT_ID
37
38
args :
38
39
- ' -c'
@@ -43,4 +44,5 @@ options:
43
44
logging : CLOUD_LOGGING_ONLY
44
45
substitutions :
45
46
_VERSION : ' 3.13'
46
- _TOOLBOX_VERSION : ' 0.8.0'
47
+ _TOOLBOX_VERSION : ' main'
48
+ _TOOLBOX_BUCKET : ' genai-toolbox-dev'
Original file line number Diff line number Diff line change @@ -101,6 +101,9 @@ def project_id() -> str:
101
101
def toolbox_version () -> str :
102
102
return get_env_var ("TOOLBOX_VERSION" )
103
103
104
+ @pytest_asyncio .fixture (scope = "session" )
105
+ def toolbox_bucket () -> str :
106
+ return get_env_var ("TOOLBOX_BUCKET" )
104
107
105
108
@pytest_asyncio .fixture (scope = "session" )
106
109
def tools_file_path (project_id : str ) -> Generator [str ]:
@@ -130,11 +133,11 @@ def auth_token2(project_id: str) -> str:
130
133
131
134
132
135
@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 ]:
134
137
"""Starts the toolbox server as a subprocess."""
135
138
print ("Downloading toolbox binary from gcs bucket..." )
136
139
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" )
138
141
print ("Toolbox binary downloaded successfully." )
139
142
try :
140
143
print ("Opening toolbox server process..." )
You can’t perform that action at this time.
0 commit comments