-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat - Added Product Screenshot Testing (#1123)
- Loading branch information
Showing
53 changed files
with
27,483 additions
and
29,188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: NightlyBaselineProfiles | ||
|
||
on: | ||
schedule: | ||
- cron: '40 3 * * 6' | ||
workflow_dispatch: | ||
inputs: | ||
reason: | ||
description: 'Reason for manual trigger' | ||
required: false | ||
default: 'Manual build requested' | ||
|
||
jobs: | ||
baseline_profiles: | ||
name: "Generate Baseline Profiles" | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
|
||
timeout-minutes: 60 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Enable KVM group perms | ||
run: | | ||
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules | ||
sudo udevadm control --reload-rules | ||
sudo udevadm trigger --name-match=kvm | ||
ls /dev/kvm | ||
- name: Copy CI gradle.properties | ||
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 17 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
|
||
- name: Setup Android SDK | ||
uses: android-actions/setup-android@v3 | ||
|
||
- name: Accept licenses | ||
run: yes | sdkmanager --licenses || true | ||
|
||
- name: Check build-logic | ||
run: ./gradlew check -p build-logic | ||
|
||
- name: Setup GMD | ||
run: ./gradlew :benchmarks:pixel6Api33Setup | ||
--info | ||
-Pandroid.experimental.testOptions.managedDevices.emulator.showKernelLogging=true | ||
-Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" | ||
|
||
- name: Build all build type and flavor permutations including baseline profiles | ||
run: ./gradlew :app:assemble | ||
-Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=baselineprofile | ||
-Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" | ||
-Pandroid.experimental.testOptions.managedDevices.emulator.showKernelLogging=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,6 @@ jobs: | |
ref: 'main', | ||
inputs: { | ||
"release_type": "beta", | ||
"amazon": "false", | ||
"amazon": "true", | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13,917 changes: 6,678 additions & 7,239 deletions
13,917
app/src/demoRelease/generated/baselineProfiles/baseline-prof.txt
Large diffs are not rendered by default.
Oops, something went wrong.
13,917 changes: 6,678 additions & 7,239 deletions
13,917
app/src/demoRelease/generated/baselineProfiles/startup-prof.txt
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.