Skip to content

Commit 57877ed

Browse files
committed
chore: Update secret version for accessing correct tools manifest
1 parent 26bfef4 commit 57877ed

File tree

6 files changed

+17
-4
lines changed

6 files changed

+17
-4
lines changed

packages/toolbox-core/integration.cloudbuild.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
steps:
1616
- id: Install library requirements
1717
name: 'python:${_VERSION}'
18+
dir: 'packages/toolbox-core'
1819
args:
1920
- install
2021
- '-r'
21-
- 'packages/toolbox-core/requirements.txt'
22+
- 'requirements.txt'
2223
- '--user'
2324
entrypoint: pip
2425
- id: Install test requirements
@@ -34,6 +35,7 @@ steps:
3435
- TOOLBOX_URL=$_TOOLBOX_URL
3536
- TOOLBOX_VERSION=$_TOOLBOX_VERSION
3637
- GOOGLE_CLOUD_PROJECT=$PROJECT_ID
38+
- TOOLBOX_MANIFEST_VERSION=${_TOOLBOX_MANIFEST_VERSION}
3739
args:
3840
- '-c'
3941
- >-
@@ -44,3 +46,4 @@ options:
4446
substitutions:
4547
_VERSION: '3.13'
4648
_TOOLBOX_VERSION: '0.12.0'
49+
_TOOLBOX_MANIFEST_VERSION: '34'

packages/toolbox-core/tests/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ def toolbox_version() -> str:
106106
def tools_file_path(project_id: str) -> Generator[str]:
107107
"""Provides a temporary file path containing the tools manifest."""
108108
tools_manifest = access_secret_version(
109-
project_id=project_id, secret_id="sdk_testing_tools"
109+
project_id=project_id,
110+
secret_id="sdk_testing_tools",
111+
version_id=os.environ.get("TOOLBOX_MANIFEST_VERSION", "latest"),
110112
)
111113
tools_file_path = create_tmpfile(tools_manifest)
112114
yield tools_file_path

packages/toolbox-langchain/integration.cloudbuild.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ steps:
3535
- TOOLBOX_URL=$_TOOLBOX_URL
3636
- TOOLBOX_VERSION=$_TOOLBOX_VERSION
3737
- GOOGLE_CLOUD_PROJECT=$PROJECT_ID
38+
- TOOLBOX_MANIFEST_VERSION=${_TOOLBOX_MANIFEST_VERSION}
3839
args:
3940
- '-c'
4041
- >-
@@ -45,3 +46,4 @@ options:
4546
substitutions:
4647
_VERSION: '3.13'
4748
_TOOLBOX_VERSION: '0.12.0'
49+
_TOOLBOX_MANIFEST_VERSION: '34'

packages/toolbox-langchain/tests/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ def toolbox_version() -> str:
106106
def tools_file_path(project_id: str) -> Generator[str]:
107107
"""Provides a temporary file path containing the tools manifest."""
108108
tools_manifest = access_secret_version(
109-
project_id=project_id, secret_id="sdk_testing_tools"
109+
project_id=project_id,
110+
secret_id="sdk_testing_tools",
111+
version_id=os.environ.get("TOOLBOX_MANIFEST_VERSION", "latest"),
110112
)
111113
tools_file_path = create_tmpfile(tools_manifest)
112114
yield tools_file_path

packages/toolbox-llamaindex/integration.cloudbuild.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ steps:
3535
- TOOLBOX_URL=$_TOOLBOX_URL
3636
- TOOLBOX_VERSION=$_TOOLBOX_VERSION
3737
- GOOGLE_CLOUD_PROJECT=$PROJECT_ID
38+
- TOOLBOX_MANIFEST_VERSION=${_TOOLBOX_MANIFEST_VERSION}
3839
args:
3940
- '-c'
4041
- >-
@@ -45,3 +46,4 @@ options:
4546
substitutions:
4647
_VERSION: '3.13'
4748
_TOOLBOX_VERSION: '0.12.0'
49+
_TOOLBOX_MANIFEST_VERSION: '34'

packages/toolbox-llamaindex/tests/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ def toolbox_version() -> str:
106106
def tools_file_path(project_id: str) -> Generator[str]:
107107
"""Provides a temporary file path containing the tools manifest."""
108108
tools_manifest = access_secret_version(
109-
project_id=project_id, secret_id="sdk_testing_tools"
109+
project_id=project_id,
110+
secret_id="sdk_testing_tools",
111+
version_id=os.environ.get("TOOLBOX_MANIFEST_VERSION", "latest"),
110112
)
111113
tools_file_path = create_tmpfile(tools_manifest)
112114
yield tools_file_path

0 commit comments

Comments
 (0)