Skip to content

Merge main #7016

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 162 commits into from
Jun 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
162 commits
Select commit Hold shift + click to select a range
e37be5a
add new recipe entries to BoM generator (#6702)
davidmotson Feb 21, 2025
aa97aa3
Improve imagen Java API (#6712)
rlazo Feb 24, 2025
680ce8c
Remove test code left by mistake (#6717)
rlazo Feb 24, 2025
22be120
Add missing optIn declarations to reduce compilation noise (#6713)
rlazo Feb 24, 2025
a2244f9
Support custom tabs in more browsers (#6705)
Fry-kun Feb 24, 2025
5712a26
Update CHANGELOG for Crashlytics and NDK (#6719)
mrober Feb 24, 2025
4cf2825
Bump well known types (#6716)
daymxn Feb 24, 2025
1e8c218
Update CHANGELOG.md (#6718)
lfkellogg Feb 24, 2025
c3308a3
Add custom signal limits link and fix Javadoc List Formatting (#6722)
tusharkhandelwal8 Feb 26, 2025
91ea30e
Fix documentation for ImagenGenerationResponse (#6728)
davidmotson Feb 26, 2025
ba0941b
Add copyApiTxtFile task (#6724)
emilypgoogle Feb 26, 2025
043bdc0
dataconnect: minor cosmetic changes to the github actions workflow (#…
dconeybe Feb 26, 2025
72c0dcb
Bump truth from 1.4.2 to 1.4.4 (#6723)
dependabot[bot] Feb 27, 2025
9f96db8
Bump semver from 7.5.0 to 7.5.4 in /smoke-tests/src/androidTest/backe…
dependabot[bot] Feb 27, 2025
3e54107
build(deps): bump com.fasterxml.jackson.core:jackson-databind from 2.…
dependabot[bot] Feb 27, 2025
00c2919
dataconnect: DataConnectExecutableVersions.json updated with versions…
dconeybe Feb 27, 2025
16d2ba8
dataconnect: change grpc api version from "v1beta" to "v1" (#6729)
dconeybe Feb 27, 2025
ad7618b
Add Metalava SemVer Task (#6725)
emilypgoogle Feb 28, 2025
ec26a52
Use lazy encoding in utf-8 encoded string comparison (#6706)
milaGGL Mar 3, 2025
d701c34
Avoid Process.myProcessName() on Android 13 (#6720)
mrober Mar 3, 2025
79deb5f
Fix bug that let responsePayloadBytes get set to -1 (#6721)
mrober Mar 3, 2025
92632af
Update datastore dependency to 1.1.3 (#6688)
mrober Mar 4, 2025
1aaa6cd
build(deps): bump org.eclipse.jgit:org.eclipse.jgit from 6.3.0.202209…
dependabot[bot] Mar 4, 2025
e12597e
build(deps): bump kotestAssertionsCore from 5.5.5 to 5.8.1 (#6736)
rlazo Mar 5, 2025
4128d9a
Remove unnecessary steps in CI Testing for vertex (#6743)
rlazo Mar 7, 2025
a232b6d
Update functions changelog (#6751)
rlazo Mar 10, 2025
123c9d7
[VertexAI] Add initial support to export covered API (#6749)
rlazo Mar 10, 2025
aa2bab8
Remove code style from deprecated message (#6753)
mrober Mar 10, 2025
af5fd66
Store registered context for sync task unregistrations (#6752)
welishr Mar 10, 2025
7c03f49
Extend Firebase SDK with new APIs to consume streaming callable funct…
MustafaJadid2025 Mar 10, 2025
dfd0d7c
[Functions] Send the placeholder appcheck token in case of error (#6750)
rlazo Mar 10, 2025
68f52ed
Read version control info from Android resource (#6754)
mrober Mar 11, 2025
9340503
Use Dagger for dependency injection in Sessions (#6745)
mrober Mar 11, 2025
c9287ee
Add warning for known issue b/328687152 (#6755)
mrober Mar 11, 2025
d0fd4ca
m160 mergeback (#6757)
google-oss-bot Mar 11, 2025
9f6cacb
[Vertex AI] Remove `golden-files` directory (#6740)
andrewheard Mar 11, 2025
512251b
build(deps): bump app.cash.turbine:turbine from 1.0.0 to 1.2.0 (#6738)
dependabot[bot] Mar 11, 2025
8f8a74d
Update changelogs and versions for Crashlytics, Perf, and AQS (#6758)
mrober Mar 11, 2025
bcdb963
build(deps): bump com.google.firebase:firebase-appdistribution-gradle…
dependabot[bot] Mar 12, 2025
17c302e
Adjust Create Release (#6761)
emilypgoogle Mar 12, 2025
bdb330e
Add GenerationConfig to CountTokenRequest's (#6768)
rlazo Mar 13, 2025
19dd95b
[VertexAI] Remove redundant tests (#6762)
rlazo Mar 13, 2025
b9be9f1
Add m161 changelog for functions (#6769)
emilypgoogle Mar 13, 2025
f7e98b8
dataconnect: demo: upgrade versions in build.gradle.kts (#6776)
dconeybe Mar 14, 2025
1aca899
chore(functions): export reactive-streams as a transitive dependency …
thatfiredev Mar 14, 2025
0554f0d
fix(functions): use notifyError() instead of throwing (#6773)
thatfiredev Mar 14, 2025
9b42d84
fix for new version of golden files (#6771)
davidmotson Mar 17, 2025
76990d9
build(deps): bump androidx.core:core from 1.2.0 to 1.15.0 (#6764)
dependabot[bot] Mar 18, 2025
f86d40d
Simplify settings package and a few more classes using DI (#6778)
mrober Mar 19, 2025
236df1f
Setup kotlinx.serialization plugin (#6783)
mrober Mar 19, 2025
af1fe93
Swap external action to verify changed files for inline code (#6779)
rlazo Mar 19, 2025
60a021d
[github actions] Pin actions to hash commits (#6784)
rlazo Mar 19, 2025
d0dc250
Add transform action to remove package prefix in toc files (#6787)
daymxn Mar 20, 2025
49dd6e0
include the full googleid module in GenerateTutorialBundleTask.kt (#6…
thatfiredev Mar 21, 2025
51a9b1d
ci: add missing permissions to .github/workflows/plugins-check.yml (#…
thatfiredev Mar 21, 2025
2d5cabe
dataconnect: remove "beta" version marker and graduate the data conne…
dconeybe Mar 21, 2025
f9d1802
m161 mergeback (#6793)
google-oss-bot Mar 21, 2025
615352d
[Functions] Several functions improvements (#6796)
rlazo Mar 24, 2025
16aed70
[DataConnect] Update release configuration (#6798)
rlazo Mar 24, 2025
c1ca021
[DataConnect] Add changelog entry back (#6799)
rlazo Mar 24, 2025
e36a15b
dataconnect: DataConnectExecutableVersions.json updated with versions…
dconeybe Mar 24, 2025
75be716
dataconnect: generateApiTxtFile.sh added (#6802)
dconeybe Mar 24, 2025
ba69975
feat: dataconnect: DataConnectOperationException added to support par…
dconeybe Mar 24, 2025
baa335c
Add fix for API info task (#6808)
emilypgoogle Mar 25, 2025
1cf65b9
[VertexAI] Bump timeout for error test (#6807)
rlazo Mar 25, 2025
564734a
[Vertex AI] Return `ImagenInlineImage.data` as binary (#6800)
andrewheard Mar 25, 2025
8a72ed5
Add ML monitoring info to GenAI requests (#6804)
davidmotson Mar 25, 2025
f67d32d
[VertexAI] Log warning for unsupported model names (#6805)
rlazo Mar 25, 2025
5ff9d95
Updated internal Crashpad version (#6797)
mrober Mar 26, 2025
dbeecd4
Add basic Vertex Java compilation tests (#6810)
emilypgoogle Mar 26, 2025
cf2b7a8
Upgrade to Android ndk r27c and update Crashpad to latest commit (#6814)
mrober Mar 27, 2025
9da772e
Fix startup check failures (#6820)
daymxn Mar 28, 2025
e65e93f
[Functions] Bump all test timeouts to 10 seconds (#6821)
rlazo Mar 28, 2025
d2e72df
Bidirectional Streaming Android (#6759)
VinayGuthal Mar 28, 2025
278e437
Changes in the Session Test App to verify behaviour with Fireperf #no…
tejasd Mar 31, 2025
395e9dd
fix emulator listening to itself (#6823)
VinayGuthal Mar 31, 2025
2cdac31
Update changelog file (#6825)
rlazo Apr 1, 2025
3d41253
m162 mergeback (#6831)
google-oss-bot Apr 2, 2025
75cdf96
dataconnect: QuerySubscriptionIntegrationTest.kt: fix flaky test usin…
dconeybe Apr 2, 2025
a0a02a7
dataconnect: github actions cache key fix (#6829)
dconeybe Apr 2, 2025
8af38c9
dataconnect: fix flaky test that ensures deserialize() throws Illegal…
dconeybe Apr 4, 2025
9a07498
dataconnect: dataconnect.yml: some minor improvements (#6838)
dconeybe Apr 5, 2025
f97833e
[encoders] Replace deprecated Kotlin Stdlib functions with recommende…
rlazo Apr 8, 2025
6e3be78
use bytestream instead of bytearray (#6847)
VinayGuthal Apr 8, 2025
f826b40
dataconnect: fix two flaky tests due to their failure to wait for Fir…
dconeybe Apr 8, 2025
dbf5d01
dataconnect: auth code internal cleanup (#6836)
dconeybe Apr 8, 2025
58b9da4
[fireci] Update fireci setup declaration (#6851)
rlazo Apr 9, 2025
5081e7c
Disconnect from Remote Config real-time server when app is background…
tusharkhandelwal8 Apr 9, 2025
9e89b28
Add support for HarmBlockThreshold.OFF (#6843)
daymxn Apr 9, 2025
210dc02
dataconnect: AuthIntegrationTest.kt: add missing import for FirebaseD…
dconeybe Apr 9, 2025
d7a56a1
upate release notes (#6837)
VinayGuthal Apr 9, 2025
a362e45
dataconnect: dataconnect.yml: add job to comment on an issue (#6858)
dconeybe Apr 9, 2025
3b7e1e4
Adjust Metalava SemVer task (#6846)
emilypgoogle Apr 10, 2025
70c8e89
Improve the integration test coverage for online vs offline compariso…
ehsannas Apr 10, 2025
cad26b9
[Perf] Cache attribute key validation regex (#6865)
rlazo Apr 11, 2025
edcea54
fix: remove null value inclusion from `whereNotEqualTo` and `whereNot…
milaGGL Apr 11, 2025
33e989f
update javadocs (#6848)
VinayGuthal Apr 11, 2025
4797eea
[plugins] Remove JavaPluginConvention from FirebaseJavaLibraryPlugin …
rlazo Apr 11, 2025
9293eec
Add write permisison to VertexAI Response Checking task (#6869)
emilypgoogle Apr 12, 2025
329760f
build(deps): bump com.google.android.play:integrity from 1.2.0 to 1.4…
dependabot[bot] Apr 15, 2025
24b9dad
build(deps): bump requests from 2.31.0 to 2.32.2 in /ci/fireci (#6853)
dependabot[bot] Apr 15, 2025
5aff679
[RC] Remove package declaration from testapp manifest (#6875)
rlazo Apr 15, 2025
24fba9b
fix: Improve efficiency of online/offline composite index tests. (#6868)
ehsannas Apr 15, 2025
47e37b5
Update LiveModelFutures to return LiveSessionFutures instead of LiveS…
VinayGuthal Apr 15, 2025
40b7637
Refactor live bidi (#6870)
daymxn Apr 15, 2025
19c8c7f
fix: avoid android.os.strictmode.UnbufferedIoViolation (resubmission …
gubatron Apr 15, 2025
fb6189c
[SmokeTests] Enable desugaring in smoke tests (#6884)
rlazo Apr 16, 2025
e98dd2c
build(deps): bump glide from 4.11.0 to 4.16.0 (#6767)
dependabot[bot] Apr 16, 2025
51b4a1c
dataconnect: Improve usage of MutableStateFlow to improve readability…
dconeybe Apr 16, 2025
bd2cb5f
dataconnect: create python script to post comments about scheduled ru…
dconeybe Apr 17, 2025
fd65539
dataconnect: use firebase-tools to launch fdc emulator instead of lau…
dconeybe Apr 18, 2025
fda3351
Handle error when stream was cancelled prior to calling halfClose. (#…
tom-andersen Apr 21, 2025
534cc53
FirebaseDataConnectImpl.kt: use MutableStateFlow to store state, rath…
dconeybe Apr 22, 2025
e9ef479
Enable multimodal response generation in android (#6901)
VinayGuthal Apr 23, 2025
d568e84
Refactor: Rename encodeBitmapToBase64Png to encodeBitmapToBase64Jpeg …
rlazo Apr 23, 2025
b0d8622
Pin protolite-well-known-types (#6908)
emilypgoogle Apr 24, 2025
4fb4dfd
Migrate LiveContentResponse.Status to properties (#6906)
daymxn Apr 24, 2025
12127e6
encodeBitmapToBase64Png -> encodeBitmapToBase64Jpeg (#6912)
davidmotson Apr 25, 2025
b4a2197
Exclude protolite well known types from version bump. (#6909)
daymxn Apr 28, 2025
7cbb80b
Davidmotson.firebase ai (#6911)
davidmotson Apr 28, 2025
7924813
[ai] Use .json for unary tests instead of .txt (#6916)
rlazo Apr 29, 2025
a6010b2
Add Firebase AI to BoM (#6920)
daymxn Apr 29, 2025
a879354
Add inlineDataParts helper property (#6922)
daymxn Apr 29, 2025
cbd9636
Add ResponseModality support to GenerationConfig (#6921)
daymxn Apr 30, 2025
7b7e11e
Fix AI test timeout (#6917)
daymxn Apr 30, 2025
2b23887
Align LiveSeverMessage related protos (#6910)
daymxn Apr 30, 2025
2491ec2
m163 mergeback (#6913)
google-oss-bot May 1, 2025
4b12b33
Add Java VertexAI bidi compile tests (#6903)
emilypgoogle May 1, 2025
0a880cc
[Ai] Add workaround for invalid SafetyRating from the backend. (#6925)
rlazo May 1, 2025
f5ec0a6
fix more strict mode violation (#6937)
themiswang May 5, 2025
24dd7c4
Fix AI builders for Java consumers (#6930)
emilypgoogle May 5, 2025
bbe3de1
[Ai] Fix test code to point to the right resource dir (#6932)
rlazo May 6, 2025
525f293
[Ai] Update test response check to verify firebase-ai (#6926)
rlazo May 6, 2025
4c29e0b
Add headers to be able to track bidi usage (#6939)
VinayGuthal May 6, 2025
4c4c7c9
[Storage] Migrate from Robolectric.flushForegroundThreadScheduler to …
rlazo May 6, 2025
88f50d5
dataconnect: include relevant logcat snippets in github actions logs …
dconeybe May 6, 2025
548dc28
Fix NetworkOnMainThreadException for API levels below 26 (#6940)
tusharkhandelwal8 May 7, 2025
7b1855d
Prepare VertexAI SDK for release (#6941)
daymxn May 7, 2025
f4649cd
Update headers to track vertex ai/developer usage in kotlin (#6944)
VinayGuthal May 8, 2025
a996019
Update Crashlytics changelog (#6945)
mrober May 8, 2025
78360ad
Add crashlytics-ndk changelog entry (#6946)
daymxn May 8, 2025
2a17764
update headers in the correct location (#6948)
VinayGuthal May 8, 2025
eee76b4
Revert "Update headers to track vertex ai/developer usage in kotlin (…
daymxn May 9, 2025
1e2e2c1
Add Firebase AI to recipe version generation (#6951)
daymxn May 9, 2025
9f50104
[ai] Include missing dependency suffix to firebase-ai (#6954)
rlazo May 11, 2025
24cc366
[action] Only include merge message on sdk changes (#6955)
rlazo May 11, 2025
f2257e4
dataconnect: update dependencies in demo app (#6952)
dconeybe May 12, 2025
129cb89
Update changelog and Vertex version from M164 (#6970)
daymxn May 20, 2025
331905b
m164 mergeback (#6973)
google-oss-bot May 20, 2025
9c00477
fix(ai): pass FunctionDeclaration#description arg to internal class (…
thatfiredev May 20, 2025
82ad185
Fix Firebase AI StackOverflow (#6972)
emilypgoogle May 20, 2025
5db7bfb
Use correct name in release notes for vertexai (#6976)
rlazo May 20, 2025
61d972c
build(deps): bump com.google.firebase:firebase-components from 18.0.0…
dependabot[bot] May 21, 2025
9f5839f
Add macrobenchmark module for sessions test app (#6982)
mrober May 22, 2025
ec4b353
Migrate from Robolectric.flushForegroundThreadScheduler to ShadowLoop…
hoisie May 22, 2025
4e027a9
Update ImagenPersonFilterLevel refdocs to match the iOS SDK (#6995)
thatfiredev May 27, 2025
366095f
Add a NamedThreadFactory to WithinAppServiceConnection's Executor. (#…
gsakakihara May 28, 2025
af24598
update voice (#6996)
VinayGuthal May 28, 2025
b2fe881
dataconnect: Fixed occasional `NullPointerException` leading to erron…
dconeybe May 30, 2025
bfd3c76
dataconnect: DataConnectExecutableVersions.json updated with versions…
dconeybe May 30, 2025
f03fe1c
Add a flag to the Firebase Sessions test app for verbose Sessions (#7…
tejasd Jun 2, 2025
d4a3068
Davidmotson.google count token modelname (#7011)
davidmotson Jun 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
71 changes: 71 additions & 0 deletions .github/actions/dataconnect-send-notifications/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Data Connect Workflow Notifications
description: Notify a GitHub Issue with the results of a workflow.

inputs:
python-version:
required: true
default: "3.13"
github-issue-for-scheduled-runs:
required: true
job-results-file:
required: true

runs:
using: "composite"
steps:
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: ${{ inputs.python-version }}

- run: pip install -r requirements.txt
shell: bash
working-directory: firebase-dataconnect/ci

- id: issue-id
name: Determine GitHub Issue For Commenting
working-directory: firebase-dataconnect/ci
shell: bash
run: |
args=(
python
calculate_github_issue_for_commenting.py
--issue-output-file=github_issue_number.txt
--github-repository='${{ github.repository }}'
--github-ref='${{ github.ref }}'
--github-event-name='${{ github.event_name }}'
--pr-body-github-issue-key=trksmnkncd_notification_issue
--github-issue-for-scheduled-run='${{ inputs.github-issue-for-scheduled-runs }}'
)
echo "${args[*]}"
"${args[@]}"

set -xv
issue="$(cat github_issue_number.txt)"
echo "issue=$issue" >> "$GITHUB_OUTPUT"

- name: Post Comment on GitHub Issue
if: steps.issue-id.outputs.issue != ''
working-directory: firebase-dataconnect/ci
shell: bash
run: |
args=(
python
post_comment_for_job_results.py
--github-issue='${{ steps.issue-id.outputs.issue }}'
--github-workflow='${{ github.workflow }}'
--github-repository='${{ github.repository }}'
--github-ref='${{ github.ref }}'
--github-event-name='${{ github.event_name }}'
--github-sha='${{ github.sha }}'
--github-repository-html-url='${{ github.event.repository.html_url }}'
--github-run-id='${{ github.run_id }}'
--github-run-number='${{ github.run_number }}'
--github-run-attempt='${{ github.run_attempt }}'
)

while read -r line; do
args=("${args[@]}" "$line")
done <'${{ inputs.job-results-file }}'

echo "${args[*]}"
exec "${args[@]}"
6 changes: 3 additions & 3 deletions .github/workflows/api-information.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ jobs:
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 2
submodules: true
- name: Set up JDK 17
uses: actions/setup-java@v4.1.0
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
with:
java-version: 17
distribution: temurin
cache: gradle
- name: Set up Python 3.10
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: '3.10'
- name: Set up fireci
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build-release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4.1.1
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Set up JDK 17
uses: actions/setup-java@v4.1.0
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
with:
java-version: 17
distribution: temurin
Expand All @@ -26,21 +26,21 @@ jobs:
./gradlew firebasePublish

- name: Upload m2 repo
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
with:
name: m2repository
path: build/m2repository/
retention-days: 15

- name: Upload release notes
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
with:
name: release_notes
path: build/release-notes/
retention-days: 15

- name: Upload kotlindocs
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
with:
name: kotlindocs
path: build/firebase-kotlindoc/
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
env:
BUNDLE_GEMFILE: ./ci/danger/Gemfile
steps:
- uses: actions/checkout@v4.1.1
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 100
submodules: true
- uses: ruby/setup-ruby@v1
- uses: ruby/setup-ruby@1a615958ad9d422dd932dc1d5823942ee002799f # v1.227.0
with:
ruby-version: '2.7'
- name: Setup Bundler
Expand Down
Original file line number Diff line number Diff line change
@@ -1,40 +1,42 @@
name: Check Vertex AI Responses
name: Check Firebase AI Responses

Check failure

Code scanning / Scorecard

Token-Permissions High

score is 0: no topLevel permission defined
Remediation tip: Visit https://app.stepsecurity.io/secureworkflow.
Tick the 'Restrict permissions for GITHUB_TOKEN'
Untick other options
NOTE: If you want to resolve multiple issues at once, you can visit https://app.stepsecurity.io/securerepo instead.
Click Remediation section below for further remediation help

on: pull_request

jobs:
check-version:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Clone mock responses
run: firebase-vertexai/update_responses.sh
run: firebase-ai/update_responses.sh
- name: Find cloned and latest versions
run: |
CLONED=$(git describe --tags)
LATEST=$(git tag --sort=v:refname | tail -n1)
echo "cloned_tag=$CLONED" >> $GITHUB_ENV
echo "latest_tag=$LATEST" >> $GITHUB_ENV
working-directory: firebase-vertexai/src/test/resources/vertexai-sdk-test-data
working-directory: firebase-ai/src/test/resources/vertexai-sdk-test-data
- name: Find comment from previous run if exists
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e # v3.1.0
id: fc
with:
issue-number: ${{github.event.number}}
body-includes: Vertex AI Mock Responses Check
body-includes: Firebase AI Mock Responses Check
- name: Comment on PR if newer version is available
if: ${{env.cloned_tag != env.latest_tag && !steps.fc.outputs.comment-id}}
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
with:
issue-number: ${{github.event.number}}
body: >
### Vertex AI Mock Responses Check :warning:
A newer major version of the mock responses for Vertex AI unit tests is available.
[update_responses.sh](https://github.com/firebase/firebase-android-sdk/blob/main/firebase-vertexai/update_responses.sh)
### Firebase AI Mock Responses Check :warning:

A newer major version of the mock responses for Firebase AI unit tests is available.
[update_responses.sh](https://github.com/firebase/firebase-android-sdk/blob/main/firebase-ai/update_responses.sh)
should be updated to clone the latest version of the responses: `${{env.latest_tag}}`
- name: Delete comment when version gets updated
if: ${{env.cloned_tag == env.latest_tag && steps.fc.outputs.comment-id}}
uses: detomarco/delete-comment@850734dd44d8b15fef55b45252613b903ceb06f0
uses: detomarco/delete-comment@dd37d1026c669ebfb0ffa5d23890010759ff05d5 # v1.1.0
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
4 changes: 2 additions & 2 deletions .github/workflows/check-head-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
check-head-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JDK 17
uses: actions/setup-java@v4.1.0
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
with:
java-version: 17
distribution: temurin
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ jobs:
outputs:
modules: ${{ steps.changed-modules.outputs.modules }}
steps:
- uses: actions/checkout@v4.1.1
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 2
submodules: true

- name: Set up JDK 17
uses: actions/setup-java@v4.1.0
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
with:
java-version: 17
distribution: temurin
Expand All @@ -44,13 +44,13 @@ jobs:
module: ${{ fromJSON(needs.determine_changed.outputs.modules) }}

steps:
- uses: actions/checkout@v4.1.1
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 2
submodules: true

- name: Set up JDK 17
uses: actions/setup-java@v4.1.0
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
with:
java-version: 17
distribution: temurin
Expand Down
37 changes: 16 additions & 21 deletions .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ jobs:
outputs:
modules: ${{ steps.changed-modules.outputs.modules }}
steps:
- uses: actions/checkout@v4.1.1
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 2
submodules: true

- name: Set up JDK 17
uses: actions/setup-java@v4.1.0
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
with:
java-version: 17
distribution: temurin
Expand All @@ -44,30 +44,25 @@ jobs:
module: ${{ fromJSON(needs.determine_changed.outputs.modules) }}

steps:
- uses: actions/checkout@v4.1.1
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 2
submodules: true

- name: Set up JDK 17
uses: actions/setup-java@v4.1.0
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
with:
java-version: 17
distribution: temurin
cache: gradle

- name: Pull genai-common
- name: Clone vertexai mock responses
if: matrix.module == ':firebase-vertexai'
run: |
git clone https://github.com/google-gemini/generative-ai-android.git
cd generative-ai-android
./gradlew :common:updateVersion common:publishToMavenLocal
cd ..
run: firebase-vertexai/update_responses.sh

- name: Clone mock responses
if: matrix.module == ':firebase-vertexai'
run: |
firebase-vertexai/update_responses.sh
- name: Clone ai mock responses
if: matrix.module == ':firebase-ai'
run: firebase-ai/update_responses.sh

- name: Add google-services.json
env:
Expand All @@ -85,7 +80,7 @@ jobs:
MODULE=${{matrix.module}}
echo "ARTIFACT_NAME=${MODULE//:/_}" >> $GITHUB_ENV
- name: Upload Test Results
uses: actions/upload-artifact@v4.3.3
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
if: always()
with:
name: unit-test-result-${{env.ARTIFACT_NAME}}
Expand Down Expand Up @@ -122,13 +117,13 @@ jobs:
- module: :firebase-functions:ktx

steps:
- uses: actions/checkout@v4.1.1
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 2
submodules: true

- name: Set up JDK 17
uses: actions/setup-java@v4.1.0
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
with:
java-version: 17
distribution: temurin
Expand All @@ -139,10 +134,10 @@ jobs:
INTEG_TESTS_GOOGLE_SERVICES: ${{ secrets.INTEG_TESTS_GOOGLE_SERVICES }}
run: |
echo $INTEG_TESTS_GOOGLE_SERVICES | base64 -d > google-services.json
- uses: google-github-actions/auth@v2
- uses: google-github-actions/auth@71f986410dfbc7added4569d411d040a91dc6935 # v2.1.8
with:
credentials_json: ${{ secrets.GCP_SERVICE_ACCOUNT }}
- uses: google-github-actions/setup-gcloud@v2
- uses: google-github-actions/setup-gcloud@77e7a554d41e2ee56fc945c52dfd3f33d12def9a # v2.1.4
- name: ${{ matrix.module }} Integ Tests
env:
FIREBASE_CI: 1
Expand All @@ -168,11 +163,11 @@ jobs:

steps:
- name: Download Artifacts
uses: actions/download-artifact@v4.1.7
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
with:
path: artifacts

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@82082dac68ad6a19d980f8ce817e108b9f496c2a
uses: EnricoMi/publish-unit-test-result-action@170bf24d20d201b842d7a52403b73ed297e6645b # v2.18.0
with:
files: "artifacts/**/*.xml"
8 changes: 4 additions & 4 deletions .github/workflows/config-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:

steps:
- name: Checkout firebase-config
uses: actions/checkout@v4.1.1
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: set up JDK 17
uses: actions/setup-java@v4.1.0
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
with:
java-version: '17'
distribution: 'temurin'
Expand All @@ -31,10 +31,10 @@ jobs:
run: |
echo $REMOTE_CONFIG_E2E_GOOGLE_SERVICES | base64 -d > google-services.json

- uses: google-github-actions/auth@v2
- uses: google-github-actions/auth@71f986410dfbc7added4569d411d040a91dc6935 # v2.1.8
with:
credentials_json: ${{ secrets.GCP_service_account }}
- uses: google-github-actions/setup-gcloud@v2
- uses: google-github-actions/setup-gcloud@77e7a554d41e2ee56fc945c52dfd3f33d12def9a # v2.1.4
- name: Run Remote Config end-to-end tests
env:
FTL_RESULTS_BUCKET: fireescape
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/copyright-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
copyright-check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4.1.1
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: '3.9'
- run: |
Expand Down
Loading
Loading