Skip to content

Commit 18e5d6b

Browse files
authored
VertexAI: use shared repository for test golden files (#13186)
1 parent 26fcf04 commit 18e5d6b

File tree

45 files changed

+35
-879
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+35
-879
lines changed

.github/workflows/spm.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ jobs:
4242
- uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
4343
with:
4444
cache_key: spm${{ matrix.os }}-${{ matrix.xcode }}-${{ matrix.target }}
45+
- name: Clone mock responses for Vertex AI unit tests
46+
run: scripts/update_vertexai_responses.sh
4547
- name: Xcode
4648
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
4749
- name: Initialize xcodebuild
@@ -74,6 +76,8 @@ jobs:
7476
- uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
7577
with:
7678
cache_key: device${{ matrix.os }}${{ matrix.xcode }}
79+
- name: Clone mock responses for Vertex AI unit tests
80+
run: scripts/update_vertexai_responses.sh
7781
- name: Xcode
7882
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
7983
- name: Initialize xcodebuild

.github/workflows/vertexai.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT: 1
2929
steps:
3030
- uses: actions/checkout@v4
31+
- name: Clone mock responses
32+
run: scripts/update_vertexai_responses.sh
3133
- name: Xcode
3234
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
3335
- name: Initialize xcodebuild

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,3 +162,6 @@ FirebaseAppCheck/Apps/AppCheckCustomProvideApp/AppCheckCustomProvideApp/GoogleSe
162162
.terraform.lock.hcl
163163
*.tfstate
164164
*.tfstate.*
165+
166+
# FirebaseVertexAI test data
167+
vertexai-sdk-test-data

FirebaseVertexAI/Tests/Unit/Responses/streaming-failure-empty-content.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

FirebaseVertexAI/Tests/Unit/Responses/streaming-failure-error-mid-stream.txt

Lines changed: 0 additions & 17 deletions
This file was deleted.

FirebaseVertexAI/Tests/Unit/Responses/streaming-failure-finish-reason-safety.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

FirebaseVertexAI/Tests/Unit/Responses/streaming-failure-invalid-json.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

FirebaseVertexAI/Tests/Unit/Responses/streaming-failure-malformed-content.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

FirebaseVertexAI/Tests/Unit/Responses/streaming-failure-prompt-blocked-safety.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

FirebaseVertexAI/Tests/Unit/Responses/streaming-failure-recitation-no-content.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)