Skip to content

Merge master into realtime-rc-merge and use Firebase executors. #4473

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 93 commits into from
Dec 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
6df2784
return exception if modelname is empty (#4226)
argzdev Oct 21, 2022
7861837
Add "create release PR" github action (#4236)
rlazo Oct 24, 2022
ae3bdb8
Sync spec tests from web SDK to Android SDK (#4230)
milaGGL Oct 24, 2022
d35d044
Update versions (#4238)
rlazo Oct 25, 2022
0ad4074
Exclude .github dir from `firebaseContinuousIntegration` paths (#4239)
rlazo Oct 25, 2022
9a80448
Performing IN expansion (#4221)
ehsannas Oct 25, 2022
aafdd1e
typo fix (#4237)
cherylEnkidu Oct 25, 2022
50fae3c
Firestore: Add test that verifies count query error message when miss…
dconeybe Oct 26, 2022
d939e63
refactor(functions): update firebase-iid to 21.1.0 (#4225)
thatfiredev Oct 26, 2022
6498bd0
Fix Firestore failing to return empty results from the local cache (#…
milaGGL Oct 26, 2022
1aefded
Remove plexus-utils from firebase-database's test dependency (#4233)
utzcoz Oct 27, 2022
854cba5
test(functions): fix instrumentation tests (#4249)
thatfiredev Oct 27, 2022
0798b98
Fix flakiness in MessagingAnalyticsRoboTest.java (#4259)
willxu-google Oct 28, 2022
ffca832
Update CHANGELOG entries across several sdks (#4240)
rlazo Oct 29, 2022
a0fcca1
Fix FAILED_PRECONDITION when writing to a deleted document in a trans…
milaGGL Nov 1, 2022
a3b86c8
Fix Javadoc link generation in Dackka (#4258)
daymxn Nov 2, 2022
0569f1e
Remove GenericTypeIndicator in error messages (#4268)
cherylEnkidu Nov 2, 2022
f6a79df
Early return in getDocumentsMatchingTarget (#4272)
cherylEnkidu Nov 2, 2022
62cfd00
Upgrade GRPC tp 1.50.2 (#4277)
tom-andersen Nov 3, 2022
82dc688
Add Dackka transform to remove leading groupId in Javadocs (#4278)
daymxn Nov 4, 2022
bcdf4a9
Add @CanIgnoreReturnValue to MockInputStreamHelper.injectExceptionAt(…
kluever Nov 7, 2022
0bd205d
Remove `@Deprecated` annotations. (#4289)
rosalyntan Nov 8, 2022
92af27d
Fix FrameMetrics NPE (#4284)
leotianlizhan Nov 8, 2022
fe756b1
Initial version of the build release artifacts workflow. (#4287)
rlazo Nov 8, 2022
a2f0534
Prepend 'releases/' to the name of the release branches (#4291)
rlazo Nov 8, 2022
31ab674
Add androidx.annotation package (#4286)
daymxn Nov 8, 2022
00d8c72
Add support of macrobenchmark result analysis in fireci (#4285)
yifanyang Nov 8, 2022
5204dd4
Fix broken code elements in docs (#4292)
daymxn Nov 8, 2022
ff209d4
[Fireperf][AASA] Additional experiments for `_experiment_as_ttid` (#4…
leotianlizhan Nov 8, 2022
4f41bde
Deflake `AppStateMonitorTest` (#4294)
leotianlizhan Nov 9, 2022
81bf400
Add executor documentation (#4298)
vkryachko Nov 10, 2022
6e5c1b8
Wrap &lt and &gt symbols in code blocks (#4299)
daymxn Nov 10, 2022
0ba9bc3
Add action to show a message when merging to the main branch (#4301)
rlazo Nov 10, 2022
d719e10
Fix multiline hyperlink renders (#4307)
daymxn Nov 11, 2022
3aac867
Fix ndk build. (#4311)
vkryachko Nov 11, 2022
ccba824
Revert "Add support of macrobenchmark result analysis in fireci (#428…
yifanyang Nov 11, 2022
d4cc84d
Update executors.md (#4306)
vkryachko Nov 14, 2022
c1adf5b
Switch from ktlint to ktfmt (#4318)
vkryachko Nov 14, 2022
e0cfdd6
Merge executors to master (#4322)
vkryachko Nov 15, 2022
e75d370
Replace Doclava with Dackka (#4324)
daymxn Nov 15, 2022
66b067d
Add support of macrobenchmark result analysis in fireci (#4323)
yifanyang Nov 15, 2022
42e5b8a
Avoid throwing in ForcedSender.sendBlocking (#4293)
mrober Nov 15, 2022
94ae2ac
Fix deadlock when handling simultaneous messages. (#4327)
gsakakihara Nov 17, 2022
89ee79b
Update build-release-artifacts.yml (#4354)
rlazo Nov 23, 2022
7b2e272
Improve fireci CLI for macrobenchmark (#4359)
yifanyang Nov 23, 2022
d6260ec
Fix warnings in the linter. (#4360)
vkryachko Nov 23, 2022
538a697
Add action to create bom (#4352)
emilypgoogle Nov 23, 2022
12a49fe
Update versions and changelogs (#4343)
rlazo Nov 23, 2022
956edd1
Migrate functions off of UI thread for continuations. (#4364)
vkryachko Nov 24, 2022
55b6dd5
Enable dead code elimination for vendored deps. (#4368)
vkryachko Nov 24, 2022
42a204c
Set jvm target for kotlin to jvm11 to match java. (#4369)
rlazo Nov 25, 2022
7b13cd7
Changed protobuf-java to latest version 3.21.9 (#4373)
argzdev Nov 28, 2022
8620216
Use dagger in functions. (#4366)
vkryachko Nov 28, 2022
b695dd2
Migrate fireperf content provider to component (#4242)
emilypgoogle Nov 28, 2022
54ab04e
Migrate ml to dagger DI. (#4370)
vkryachko Nov 28, 2022
0e57037
Add examples for new Flow operators in firestore-ktx (#4078)
zsmb13 Nov 29, 2022
c455bba
Set ndkVersion for Crashlytics NDK SDK. (#4310)
mrober Nov 29, 2022
58cee7d
Remove custom NDK installations (#4378)
yifanyang Nov 29, 2022
07dec7a
Add documentation, and address/remove some TODOs. (#4274)
ehsannas Nov 29, 2022
012ccea
Fix ci tests presubmit to work on all branches. (#4381)
vkryachko Nov 30, 2022
e461cb7
Add lint check that detects UI thread continuations. (#4363)
vkryachko Dec 1, 2022
0955f12
Fix copyrights (#4386)
vkryachko Dec 1, 2022
0fc9a70
Forbid creating ui thread Handler. (#4385)
vkryachko Dec 1, 2022
b5a821d
Add workflow triggers for startup time test (#4379)
yifanyang Dec 1, 2022
237ac95
Enable for Kotlin Gradle dsl. (#4392)
vkryachko Dec 2, 2022
0824cc4
Migrate RC to common executors. (#4393)
vkryachko Dec 2, 2022
d816ea8
Allow task subclasses to implement overloads. (#4394)
vkryachko Dec 2, 2022
8f50819
Remove unused Executor classes. (#4383)
gsakakihara Dec 6, 2022
72393e7
Invoke async api for processing startup time request (#4406)
yifanyang Dec 6, 2022
fc8aa1a
Upgrade JaCoCo plugin version (#4423)
yifanyang Dec 6, 2022
027ceef
Refine startup time test app (#4407)
yifanyang Dec 6, 2022
00ea7ee
Initial setup for Github Pages (#4427)
vkryachko Dec 7, 2022
7edaec4
Add Component documentation (#4429)
vkryachko Dec 7, 2022
3432f93
Create scorecards.yml
rlazo Dec 7, 2022
eb7480b
Change concurrency group for health metrics test to "github.sha" (#4428)
yifanyang Dec 7, 2022
fa88eee
Port app.get() check from errorprone to lint (#4434)
vkryachko Dec 8, 2022
e05db82
Added more docs (#4437)
vkryachko Dec 9, 2022
a841ab4
Migrate `firebase-appcheck` to use standard executors provided by Fir…
rosalyntan Dec 10, 2022
69ed2cb
Fix RC Executor annotation (#4395)
vkryachko Dec 12, 2022
66c7398
Integrate `AppCheckProvider`s with Firebase Components. (#4436)
rosalyntan Dec 12, 2022
fee7097
Add dependency injection docs (#4447)
vkryachko Dec 13, 2022
02dd166
Migrate firebase-inappmessaging SDK to go/firebase-android-executors.…
eldhosembabu Dec 13, 2022
f133454
Migrate remaining App Check SDKs to go/firebase-android-executors. (#…
rosalyntan Dec 13, 2022
c4395f2
Migrate core libraries to Gradle Kotlin DSL. (#4452)
vkryachko Dec 14, 2022
18fa5f3
Fix overlay bug leas to patch mutation optimization not being applied…
wu-hui Dec 14, 2022
ffe046b
Add Diff Javadoc workflow (#4426)
emilypgoogle Dec 14, 2022
e2e08a8
Move continuations off main thread for App Check SDKs. (#4453)
rosalyntan Dec 15, 2022
2c66f5d
update mlkitdownloader to use executors (#4382)
VinayGuthal Dec 15, 2022
7ad26c3
Replace tag targets with commits (#4460)
emilypgoogle Dec 16, 2022
aa923f7
Fix typo in comments. (#4462)
ehsannas Dec 19, 2022
de78e70
Merge branch 'master' into ds-realtime-rc-merge-master
danasilver Dec 20, 2022
a5d7969
Use Firebase executors for realtime.
danasilver Dec 20, 2022
e7ad15d
Format java.
danasilver Dec 20, 2022
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
  •  
  •  
  •  
9 changes: 0 additions & 9 deletions .github/workflows/api-information.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,6 @@ jobs:
java-version: 11
distribution: temurin
cache: gradle
- name: Set up NDK 21.4.7075529
run: |
ANDROID_ROOT=/usr/local/lib/android
ANDROID_SDK_ROOT=${ANDROID_ROOT}/sdk
ANDROID_NDK_ROOT=${ANDROID_SDK_ROOT}/ndk-bundle
SDKMANAGER=${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager
echo "y" | $SDKMANAGER "ndk;21.4.7075529"
ln -sfn ${ANDROID_SDK_ROOT}/ndk/21.4.7075529 ${ANDROID_NDK_ROOT}
echo "ANDROID_NDK_HOME=${ANDROID_NDK_ROOT}" >> $GITHUB_ENV
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/build-release-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build Release Artifacts

on:
workflow_dispatch:
pull_request:
branches:
- 'releases/**'

jobs:
build-artifacts:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3

- name: Perform gradle build
run: |
./gradlew firebasePublish -PprojectsToPublish=firebase-firestore -PpublishMode=RELEASE -PincludeFireEscapeArtifacts=true
- name: Upload generated artifacts
uses: actions/upload-artifact@v2
with:
name: release_artifacts
path: build/*.zip
retention-days: 5
9 changes: 1 addition & 8 deletions .github/workflows/build-src-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- name: Setup NDK
run: |
ANDROID_ROOT=/usr/local/lib/android
ANDROID_SDK_ROOT=${ANDROID_ROOT}/sdk
ANDROID_NDK_ROOT=${ANDROID_SDK_ROOT}/ndk-bundle
ln -sfn $ANDROID_SDK_ROOT/ndk/21.4.7075529 $ANDROID_NDK_ROOT

- name: Set up JDK 11
uses: actions/setup-java@v2
with:
Expand All @@ -33,7 +26,7 @@ jobs:
run: |
./gradlew -b buildSrc/build.gradle.kts -PenablePluginTests=true check
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
uses: EnricoMi/publish-unit-test-result-action@94ba6dbddef5ec4aa827fc275cf7d563bc4d398f
with:
files: "**/build/test-results/**/*.xml"
check_name: "buildSrc Test Results"
29 changes: 0 additions & 29 deletions .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ concurrency:
cancel-in-progress: true
on:
pull_request:
branches:
- '*'
push:
branches:
- master
Expand All @@ -22,15 +20,6 @@ jobs:
with:
fetch-depth: 2
submodules: true
- name: Set up NDK 21.4.7075529
run: |
ANDROID_ROOT=/usr/local/lib/android
ANDROID_SDK_ROOT=${ANDROID_ROOT}/sdk
ANDROID_NDK_ROOT=${ANDROID_SDK_ROOT}/ndk-bundle
SDKMANAGER=${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager
echo "y" | $SDKMANAGER "ndk;21.4.7075529"
ln -sfn ${ANDROID_SDK_ROOT}/ndk/21.4.7075529 ${ANDROID_NDK_ROOT}
echo "ANDROID_NDK_HOME=${ANDROID_NDK_ROOT}" >> $GITHUB_ENV

- name: Set up JDK 11
uses: actions/setup-java@v2
Expand Down Expand Up @@ -59,15 +48,6 @@ jobs:
with:
fetch-depth: 2
submodules: true
- name: Set up NDK 21.4.7075529
run: |
ANDROID_ROOT=/usr/local/lib/android
ANDROID_SDK_ROOT=${ANDROID_ROOT}/sdk
ANDROID_NDK_ROOT=${ANDROID_SDK_ROOT}/ndk-bundle
SDKMANAGER=${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager
echo "y" | $SDKMANAGER "ndk;21.4.7075529"
ln -sfn ${ANDROID_SDK_ROOT}/ndk/21.4.7075529 ${ANDROID_NDK_ROOT}
echo "ANDROID_NDK_HOME=${ANDROID_NDK_ROOT}" >> $GITHUB_ENV

- name: Set up JDK 11
uses: actions/setup-java@v2
Expand Down Expand Up @@ -118,15 +98,6 @@ jobs:
with:
fetch-depth: 2
submodules: true
- name: Set up NDK 21.4.7075529
run: |
ANDROID_ROOT=/usr/local/lib/android
ANDROID_SDK_ROOT=${ANDROID_ROOT}/sdk
ANDROID_NDK_ROOT=${ANDROID_SDK_ROOT}/ndk-bundle
SDKMANAGER=${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager
echo "y" | $SDKMANAGER "ndk;21.4.7075529"
ln -sfn ${ANDROID_SDK_ROOT}/ndk/21.4.7075529 ${ANDROID_NDK_ROOT}
echo "ANDROID_NDK_HOME=${ANDROID_NDK_ROOT}" >> $GITHUB_ENV

- name: Set up JDK 11
uses: actions/setup-java@v2
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/copyright-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
-e py \
-e gradle \
-e java \
-e kt \
-e groovy \
-e sh \
-e proto
49 changes: 49 additions & 0 deletions .github/workflows/create_releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Create release

on:
workflow_dispatch:
inputs:
name:
description: 'Release name'
required: true
type: string

jobs:
create-branches:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Create base branch
uses: peterjgrainger/action-create-branch@c2800a3a9edbba2218da6861fa46496cf8f3195a
with:
branch: 'releases/${{ inputs.name }}'
- name: Create release branch
uses: peterjgrainger/action-create-branch@c2800a3a9edbba2218da6861fa46496cf8f3195a
with:
branch: 'releases/${{ inputs.name }}.release'

create-pull-request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Create release configuration template
run: |
git config user.name 'Create Release GA'
git config user.email '[email protected]'
echo "[release]" > release.cfg
echo "name = ${{ inputs.name }}" >> release.cfg
echo "mode = RELEASE" >> release.cfg
echo "" >> release.cfg
echo "[modules]" >> release.cfg
echo "" >> release.cfg
git add release.cfg
git commit -a -m 'Create release config'

- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
base: 'releases/${{ inputs.name }}'
branch: 'releases/${{ inputs.name }}.release'
title: '${{ inputs.name}} release'
67 changes: 67 additions & 0 deletions .github/workflows/diff-javadoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Diff Javadoc

on:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Make Dir
run: mkdir ~/diff

- uses: actions/checkout@v3
with:
fetch-depth: 2
submodules: true

- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
distribution: temurin
cache: gradle

- name: Changed Modules
id: changed-modules
run: |
git diff --name-only HEAD~1 | xargs printf -- '--changed-git-paths %s\n' | xargs ./gradlew writeChangedProjects --output-file-path=modules.json --only-firebase-sdks
echo "run=$(cat modules.json | sed "s/[]\"[]//g" | sed "s/,/\n/g" | xargs printf -- "%s:kotlinDoc ")" >> $GITHUB_OUTPUT

- name: Build
run: ./gradlew ${{ steps.changed-modules.outputs.run }}

- name: Move original docs
run: mv build ~/diff/modified

- uses: actions/checkout@v3
with:
ref: ${{ github.base_ref }}

- name: Build
run: ./gradlew ${{ steps.changed-modules.outputs.run }}

- name: Move modified docs
run: mv build ~/diff/original

- name: Diff docs
run: >
`# Recursively diff directories, including new files, git style, with 3 lines of context`
diff -wEburN ~/diff/original ~/diff/modified
`# Remove the first line and new file signifier of the output`
| tail -n +2
`# Replace the diff new file signifier with the end and start of a new codeblock`
| sed "s/^diff.*$/\`\`\`\\n\`\`\`diff/g"
`# Add a collapsable block, summary, and start the first code block on the first line`
| sed "1s/^/<details>\\n<summary>Javadoc Changes:<\/summary>\\n\\n\`\`\`diff\\n/"
`# Close the final code block and close the collapsable on the final line`
| sed "$ s/$/\\n\`\`\`\\n<\/details>/"
`# Write to diff.md for later`
> diff.md

- name: Add comment
uses: mshick/add-pr-comment@a65df5f64fc741e91c59b8359a4bc56e57aaf5b1
with:
message-path: diff.md
4 changes: 3 additions & 1 deletion .github/workflows/fireci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ jobs:
- uses: actions/[email protected]
- uses: actions/setup-python@v2
with:
python-version: '3.9'
python-version: '3.8'
- run: |
pip install -e "ci/fireci[test]"
- run: |
pytest ci/fireci
- run: |
mypy --config-file ci/fireci/setup.cfg ci/fireci/
9 changes: 0 additions & 9 deletions .github/workflows/fireperf-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,6 @@ jobs:
java-version: 11
distribution: temurin
cache: gradle
- name: Set up NDK 21.4.7075529
run: |
ANDROID_ROOT=/usr/local/lib/android
ANDROID_SDK_ROOT=${ANDROID_ROOT}/sdk
ANDROID_NDK_ROOT=${ANDROID_SDK_ROOT}/ndk-bundle
SDKMANAGER=${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager
echo "y" | $SDKMANAGER "ndk;21.4.7075529"
ln -sfn ${ANDROID_SDK_ROOT}/ndk/21.4.7075529 ${ANDROID_NDK_ROOT}
echo "ANDROID_NDK_HOME=${ANDROID_NDK_ROOT}" >> $GITHUB_ENV
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
Expand Down
86 changes: 65 additions & 21 deletions .github/workflows/health-metrics.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
name: Health Metrics

on: [ pull_request, push ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

on:
pull_request:
push:
branches:
- master
# add other feature branches here
# TODO(yifany): support workflow_dispatch for metric tests (or only for startup time test)

env:
GITHUB_PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }}

jobs:
coverage:
name: Coverage
if: (github.repository == 'Firebase/firebase-android-sdk' && github.event_name == 'push') || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
if: |
(github.event_name == 'push' && github.repository == 'firebase/firebase-android-sdk')
|| (github.event_name == 'pull_request'
&& github.event.pull_request.head.repo.full_name == github.repository)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -21,15 +34,6 @@ jobs:
java-version: 11
distribution: temurin
cache: gradle
- name: Set up NDK 21.4.7075529
run: |
ANDROID_ROOT=/usr/local/lib/android
ANDROID_SDK_ROOT=${ANDROID_ROOT}/sdk
ANDROID_NDK_ROOT=${ANDROID_SDK_ROOT}/ndk-bundle
SDKMANAGER=${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager
echo "y" | $SDKMANAGER "ndk;21.4.7075529"
ln -sfn ${ANDROID_SDK_ROOT}/ndk/21.4.7075529 ${ANDROID_NDK_ROOT}
echo "ANDROID_NDK_HOME=${ANDROID_NDK_ROOT}" >> $GITHUB_ENV
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
Expand All @@ -49,7 +53,10 @@ jobs:

size:
name: Size
if: (github.repository == 'Firebase/firebase-android-sdk' && github.event_name == 'push') || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
if: |
(github.event_name == 'push' && github.repository == 'firebase/firebase-android-sdk')
|| (github.event_name == 'pull_request'
&& github.event.pull_request.head.repo.full_name == github.repository)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -62,15 +69,6 @@ jobs:
java-version: 11
distribution: temurin
cache: gradle
- name: Set up NDK 21.4.7075529
run: |
ANDROID_ROOT=/usr/local/lib/android
ANDROID_SDK_ROOT=${ANDROID_ROOT}/sdk
ANDROID_NDK_ROOT=${ANDROID_SDK_ROOT}/ndk-bundle
SDKMANAGER=${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager
echo "y" | $SDKMANAGER "ndk;21.4.7075529"
ln -sfn ${ANDROID_SDK_ROOT}/ndk/21.4.7075529 ${ANDROID_NDK_ROOT}
echo "ANDROID_NDK_HOME=${ANDROID_NDK_ROOT}" >> $GITHUB_ENV
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
Expand All @@ -87,3 +85,49 @@ jobs:
- name: Run size tests (post-submit)
if: ${{ github.event_name == 'push' }}
run: fireci binary_size

startup_time:
name: Startup Time
if: |
(github.event_name == 'push' && github.repository == 'firebase/firebase-android-sdk')
|| (github.event_name == 'pull_request'
&& github.event.pull_request.head.repo.full_name == github.repository)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
submodules: true
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
distribution: temurin
cache: gradle
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: google-github-actions/auth@v0
with:
credentials_json: '${{ secrets.GCP_SERVICE_ACCOUNT }}'
- uses: google-github-actions/setup-gcloud@v0
- name: Set up fireci
run: pip3 install -e ci/fireci
- name: Add google-services.json
env:
INTEG_TESTS_GOOGLE_SERVICES: ${{ secrets.INTEG_TESTS_GOOGLE_SERVICES }}
BENCHMARK_APP_LOCATION: health-metrics/benchmark/template/app/google-services.json
run: |
echo $INTEG_TESTS_GOOGLE_SERVICES | base64 -d > $BENCHMARK_APP_LOCATION
- name: Run startup-time tests (presubmit)
if: ${{ github.event_name == 'pull_request' }}
run: |
git diff --name-only HEAD~1 | \
xargs printf -- '--changed-git-paths %s\n' | \
xargs ./gradlew writeChangedProjects --output-file-path=modules.json
fireci macrobenchmark ci --pull-request --changed-modules-file modules.json
- name: Run startup-time tests (post-submit)
if: ${{ github.event_name == 'push' }}
run: |
fireci macrobenchmark ci --push
Loading