Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/firebase_test_lab.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Runs Macro Benchmarks on Firebase Test Lab

Check warning on line 1 in .github/workflows/firebase_test_lab.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

firebase_test_lab.yml:1: overly broad permissions: default permissions used due to no permissions: block

on:
push:
Expand All @@ -13,7 +13,7 @@
# It sets the outputs.macrobenchmark to true/false based on the changes.
# In the next build job, it checks for needs.changes.outputs.macrobenchmark == 'true'
# or skips the job otherwise.
changes:

Check warning on line 16 in .github/workflows/firebase_test_lab.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

firebase_test_lab.yml:16: overly broad permissions: default permissions used due to no permissions: block
if: github.repository_owner == 'android'
runs-on: ubuntu-latest
# Set job outputs to values from filter step to be able to use it in next job
Expand All @@ -21,36 +21,36 @@
macrobenchmark: ${{ steps.filter.outputs.macrobenchmark }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7

Check failure on line 24 in .github/workflows/firebase_test_lab.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 24 in .github/workflows/firebase_test_lab.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

firebase_test_lab.yml:24: unpinned action reference: action is not pinned to a hash (required by blanket policy)
with:
fetch-depth: 1
- uses: dorny/paths-filter@v3
- uses: dorny/paths-filter@v4

Check failure on line 27 in .github/workflows/firebase_test_lab.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 27 in .github/workflows/firebase_test_lab.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

firebase_test_lab.yml:27: unpinned action reference: action is not pinned to a hash (required by blanket policy)
id: filter
with:
filters: |
macrobenchmark:
- 'MacrobenchmarkSample/**'

build:

Check warning on line 34 in .github/workflows/firebase_test_lab.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

firebase_test_lab.yml:34: overly broad permissions: default permissions used due to no permissions: block
needs: changes
# Only run action for the main repo & not forks and if change is in macrobenchmark sample
if: github.repository_owner == 'android' && needs.changes.outputs.macrobenchmark == 'true'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7

Check failure on line 41 in .github/workflows/firebase_test_lab.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 41 in .github/workflows/firebase_test_lab.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

firebase_test_lab.yml:41: unpinned action reference: action is not pinned to a hash (required by blanket policy)
with:
fetch-depth: 1

- name: Setup JDK
id: setup-java
uses: actions/setup-java@v4
uses: actions/setup-java@v5

Check failure on line 47 in .github/workflows/firebase_test_lab.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 47 in .github/workflows/firebase_test_lab.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

firebase_test_lab.yml:47: unpinned action reference: action is not pinned to a hash (required by blanket policy)
with:
java-version: '17'
distribution: 'zulu'

- name: Build Macrobenchmark Sample
uses: eskatos/gradle-command-action@v3

Check failure on line 53 in .github/workflows/firebase_test_lab.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 53 in .github/workflows/firebase_test_lab.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

firebase_test_lab.yml:53: unpinned action reference: action is not pinned to a hash (required by blanket policy)
env:
JAVA_HOME: ${{ steps.setup-java.outputs.path }}
with:
Expand All @@ -62,12 +62,12 @@
wrapper-directory: ${{ github.workspace }}/MacrobenchmarkSample/gradle/wrapper

- name: 'Authenticate Cloud SDK'
uses: 'google-github-actions/auth@v2'
uses: 'google-github-actions/auth@v3'

Check failure on line 65 in .github/workflows/firebase_test_lab.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 65 in .github/workflows/firebase_test_lab.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

firebase_test_lab.yml:65: unpinned action reference: action is not pinned to a hash (required by blanket policy)
with:
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'

- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v2
uses: google-github-actions/setup-gcloud@v3

Check failure on line 70 in .github/workflows/firebase_test_lab.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 70 in .github/workflows/firebase_test_lab.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

firebase_test_lab.yml:70: unpinned action reference: action is not pinned to a hash (required by blanket policy)

- name: Install Cloud SDK Beta components
run: gcloud components install beta
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/generate-bp.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Generate Baseline Profiles

Check warning on line 1 in .github/workflows/generate-bp.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

generate-bp.yml:1: overly broad permissions: default permissions used due to no permissions: block

on:
# We ONLY want to build baseline profiles for pushes on main.
Expand All @@ -17,7 +17,7 @@
# It sets the outputs.macrobenchmark to true/false based on the changes.
# In the next build job, it checks for needs.changes.outputs.macrobenchmark == 'true'
# or skips the job otherwise.
changes:

Check warning on line 20 in .github/workflows/generate-bp.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

generate-bp.yml:20: overly broad permissions: default permissions used due to no permissions: block
if: github.repository_owner == 'android'
runs-on: ubuntu-latest
# Set job outputs to values from filter step to be able to use it in next job
Expand All @@ -25,15 +25,15 @@
macrobenchmark: ${{ steps.filter.outputs.macrobenchmark }}
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
uses: actions/checkout@v7

Check failure on line 28 in .github/workflows/generate-bp.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 28 in .github/workflows/generate-bp.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

generate-bp.yml:28: unpinned action reference: action is not pinned to a hash (required by blanket policy)
- uses: dorny/paths-filter@v4

Check failure on line 29 in .github/workflows/generate-bp.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/unpinned-uses

unpinned action reference: action is not pinned to a hash (required by blanket policy)

Check failure on line 29 in .github/workflows/generate-bp.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

generate-bp.yml:29: unpinned action reference: action is not pinned to a hash (required by blanket policy)
id: filter
with:
filters: |
macrobenchmark:
- 'MacrobenchmarkSample/**'

baseline-profile:

Check warning on line 36 in .github/workflows/generate-bp.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

generate-bp.yml:36: overly broad permissions: default permissions used due to no permissions: block
needs: changes
# # Only run action for the main repo & not forks and if change is in macrobenchmark sample
if: github.repository_owner == 'android' && (needs.changes.outputs.macrobenchmark == 'true' || github.event_name == 'workflow_dispatch')
Expand All @@ -44,17 +44,17 @@
working-directory: ./MacrobenchmarkSample
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7

Check failure on line 47 in .github/workflows/generate-bp.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

unpinned-uses

generate-bp.yml:47: unpinned action reference: action is not pinned to a hash (required by blanket policy)

- name: Setup JDK
id: setup-java
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
java-version: 17
distribution: "zulu"

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
uses: gradle/actions/setup-gradle@v6
with:
gradle-home-cache-cleanup: true

Expand All @@ -75,7 +75,7 @@
-Pandroid.experimental.testOptions.managedDevices.maxConcurrentDevices=1

- name: Upload app with Baseline Profile
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: "Production App"
path: MacrobenchmarkSample/app/build/outputs/apk/release/*.apk
10 changes: 5 additions & 5 deletions .github/workflows/macrobenchmark.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Builds Macrobenchmarks

Check warning on line 1 in .github/workflows/macrobenchmark.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

macrobenchmark.yml:1: overly broad permissions: default permissions used due to no permissions: block

on:
workflow_dispatch:
Expand All @@ -12,7 +12,7 @@
# It sets the outputs.macrobenchmark to true/false based on the changes.
# In the next build job, it checks for needs.changes.outputs.macrobenchmark == 'true'
# or skips the job otherwise.
changes:

Check warning on line 15 in .github/workflows/macrobenchmark.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

macrobenchmark.yml:15: overly broad permissions: default permissions used due to no permissions: block
if: github.repository_owner == 'android'
runs-on: ubuntu-latest
# Set job outputs to values from filter step to be able to use it in next job
Expand All @@ -20,15 +20,15 @@
macrobenchmark: ${{ steps.filter.outputs.macrobenchmark }}
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
uses: actions/checkout@v7
- uses: dorny/paths-filter@v4
id: filter
with:
filters: |
macrobenchmark:
- 'MacrobenchmarkSample/**'

build:

Check warning on line 31 in .github/workflows/macrobenchmark.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

macrobenchmark.yml:31: overly broad permissions: default permissions used due to no permissions: block
needs: changes
# Only run action for the main repo & not forks and if change is in macrobenchmark sample
if: github.repository_owner == 'android' && (needs.changes.outputs.macrobenchmark == 'true' || github.event_name == 'workflow_dispatch')
Expand All @@ -38,17 +38,17 @@
working-directory: ./MacrobenchmarkSample
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Setup JDK
id: setup-java
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'zulu'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
uses: gradle/actions/setup-gradle@v6
with:
gradle-home-cache-cleanup: true

Expand Down
18 changes: 9 additions & 9 deletions JankStatsSample/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@

[versions]

agp = "8.11.1"
agp = "9.3.1"
appcompat = "1.7.1"
activity = "1.10.1"
composeBom = "2025.07.00"
coroutines = "1.10.2"
constraint_layout = "2.2.1"
activity = "1.13.0"
composeBom = "2026.06.01"
coroutines = "1.11.0"
constraint_layout = "2.2.2"
core = "1.9.0"
jankstats = "1.0.0-beta02"
kotlin = "2.2.0"
material = "1.12.0"
navigation = "2.9.3"
jankstats = "1.0.0"
kotlin = "2.4.10"
material = "1.14.0"
navigation = "2.9.8"
tracing = "1.3.0"

[libraries]
Expand Down
2 changes: 1 addition & 1 deletion JankStatsSample/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.7.0-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
2 changes: 1 addition & 1 deletion MacrobenchmarkSample/functions/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22.17.1
24.19.0
8 changes: 4 additions & 4 deletions MacrobenchmarkSample/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@
"logs": "firebase functions:log"
},
"engines": {
"node": "22.17.1"
"node": "24.19.0"
},
"main": "lib/index.js",
"dependencies": {
"@google-cloud/monitoring": "^5.0.0",
"@google-cloud/storage": "^7.13.0",
"firebase-admin": "^13.0.0",
"firebase-functions": "^6.0.1"
"firebase-admin": "^14.0.0",
"firebase-functions": "^7.0.0"
},
"devDependencies": {
"firebase-functions-test": "^3.3.0",
"typescript": "^5.6.2"
"typescript": "^7.0.0"
},
"private": true
}
Loading
Loading