Skip to content

Commit 35b425d

Browse files
committed
Merge remote-tracking branch 'public/master' into dataconnect
2 parents 3426039 + fd8bd4b commit 35b425d

File tree

95 files changed

+671
-361
lines changed

Some content is hidden

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

95 files changed

+671
-361
lines changed

.changeset/chilly-moons-play.md

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

.changeset/chilly-plums-burn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@firebase/rules-unit-testing': patch
3+
---
4+
5+
Upgrade firebase-admin to 11.11.1

.changeset/clever-dryers-double.md

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

.changeset/fifty-mayflies-hug.md

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

.changeset/flat-scissors-suffer.md

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

.changeset/happy-trees-battle.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@firebase/analytics': patch
3+
'@firebase/app-check': patch
4+
---
5+
6+
Begin using [safevalues](https://github.com/google/safevalues) to sanitize HTML vulnerable to XSS.

.changeset/light-cheetahs-arrive.md

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

.changeset/orange-rings-own.md

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

.changeset/silver-crews-build.md

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Check Vertex AI Responses
16+
17+
on: pull_request
18+
19+
jobs:
20+
check-version:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: Clone mock responses
25+
run: scripts/update_vertexai_responses.sh
26+
- name: Find cloned and latest versions
27+
run: |
28+
CLONED=$(git describe --tags)
29+
LATEST=$(git tag --sort=v:refname | tail -n1)
30+
echo "cloned_tag=$CLONED" >> $GITHUB_ENV
31+
echo "latest_tag=$LATEST" >> $GITHUB_ENV
32+
working-directory: packages/vertexai/test-utils/vertexai-sdk-test-data
33+
- name: Find comment from previous run if exists
34+
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e
35+
id: fc
36+
with:
37+
issue-number: ${{github.event.number}}
38+
body-includes: Vertex AI Mock Responses Check
39+
- name: Comment on PR if newer version is available
40+
if: ${{env.cloned_tag != env.latest_tag && !steps.fc.outputs.comment-id}}
41+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
42+
with:
43+
issue-number: ${{github.event.number}}
44+
body: >
45+
### Vertex AI Mock Responses Check :warning:
46+
47+
A newer major version of the mock responses for Vertex AI unit tests is available.
48+
[update_vertexai_responses.sh](https://github.com/firebase/firebase-js-sdk/blob/main/scripts/update_vertexai_responses.sh)
49+
should be updated to clone the latest version of the responses: `${{env.latest_tag}}`
50+
- name: Delete comment when version gets updated
51+
if: ${{env.cloned_tag == env.latest_tag && steps.fc.outputs.comment-id}}
52+
uses: detomarco/delete-comment@850734dd44d8b15fef55b45252613b903ceb06f0
53+
with:
54+
comment-id: ${{ steps.fc.outputs.comment-id }}

0 commit comments

Comments
 (0)