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 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
4445substitutions :
4546 _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:
101101def 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" )
106109def 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..." )
You can’t perform that action at this time.
0 commit comments