Don Turner
4e17010b97
Merge pull request #1772 from SimonMarquis/gradle-configuration-cache
...
Gradle Configuration Cache on CI
9 months ago
Don Turner
edf91bdc0e
Merge pull request #1771 from SimonMarquis/patch-2
...
Fix CI workflow OOM
9 months ago
Simon Marquis
88fdb1709f
Remove unnecessary steps
9 months ago
Simon Marquis
46f2390c0e
Remove last bits of GMD requirements from regular build workflow
...
The removal was initiated in:
- https://github.com/android/nowinandroid/pull/1757
9 months ago
Simon Marquis
e5f1b842ee
Gradle Configuration Cache on CI
...
- https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#saving-configuration-cache-data
- https://docs.gradle.org/current/userguide/configuration_cache.html#config_cache:secrets
And enable parallel Configuration Cache:
- https://docs.gradle.org/current/userguide/configuration_cache.html#config_cache:usage:parallel
This needs a `GRADLE_ENCRYPTION_KEY` secret to be configured in the repository [settings/secrets/actions](https://github.com/android/nowinandroid/settings/secrets/actions ), otherwise no configuration cache will be saved or restored.
As explained in the docs, you can use this tool to generate a configuration-cache compatible key: `openssl rand -base64 16`.
9 months ago
Simon Marquis
1f285ce070
Fix CI workflow OOM
...
Don't change the start directory with `-p :build-logic` which makes Gradle look for `build-logic/gradle.properties` file that does not exist.
Therefore, the heap size was configured with default values (`-Xmx512m`) which is definitely not enough for our linting.
Fixes #1769
9 months ago
Don Turner
400e368551
Merge pull request #1763 from SimonMarquis/patch-3
...
Remove default (and deprecated) `gradle-setup` parameters
9 months ago
Simon Marquis
2b2cf6349e
Remove default (and deprecated) `gradle-setup` parameters
...
- https://github.com/gradle/actions/blob/main/docs/deprecation-upgrade-guide.md#the-gradle-home-cache-cleanup-input-parameter-has-been-replaced-by-cache-cleanup
- https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#gradle-wrapper-validation
9 months ago
Simon Marquis
194447ac3c
Check presence of sarif files before executing `codeql-action/upload-sarif`
...
because the action behavior is to throw errors when no sarif files are available...
Closes #1759
9 months ago
Don Turner
dac7ff0b14
Remove benchmarks from Build workflow
9 months ago
Ben Weiss
6f55f79be0
Remove GMD from regular build
...
Change-Id: Id63af908823a6bef576ebc35f65833847bacc5c4
9 months ago
Simon Marquis
ceab72b247
Add missing `security-events: write` permission
...
Required by codeql-action: https://github.com/github/codeql-action/tree/main?tab=readme-ov-file#workflow-permissions
9 months ago
Don Turner
57d98cc2e2
Merge pull request #921 from SimonMarquis/sarif
...
Enable SARIF support on GitHub Actions
9 months ago
Jaehwa Noh
b9105c61f7
Replace github action `always` into `!cancelled`. ( #1440 )
...
* Replace method always into cancelled.
Change-Id: I6518ce38a6640d42b9089e264c529ddaf75766b8
* Remove redundant if state.
9 months ago
Don Turner
3a3643e258
Merge pull request #1725 from android/dt/add-api34emu
...
Add API 34 emulator
9 months ago
Jaehwa Noh
e6ec99e793
Add clear instruction at CI screenshot tests error output ( #1423 )
...
* Add clear instruction
- Your fork's CI will take screenshots for your fork.
Change-Id: I7ea1a437be4f9723fcf71d4d18932f8f44f46fa8
* Remove screenshots to see CI instruction.
Change-Id: Ib12f0ee4ff4faff8287f9ddfd5e533868abca4f8
* Revert "Remove screenshots to see CI instruction."
This reverts commit 36de3be9ba
.
9 months ago
Simon Marquis
2e1232c136
Merge remote-tracking branch 'upstream/main' into sarif
10 months ago
Don Turner
cc50941173
Add API 34 emulator
10 months ago
Don Turner
8267b619d6
Removing API 30 emulator while investigating flakiness
10 months ago
Simon Marquis
78dbdfac53
Bump `github/codeql-action/upload-sarif@v3`
10 months ago
Simon Marquis
085347e5e2
Merge branch 'main' into sarif
10 months ago
dependabot[bot]
274c38c154
Bump madrapps/jacoco-report from 1.7.0 to 1.7.1 ( #1627 )
...
Bumps [madrapps/jacoco-report](https://github.com/madrapps/jacoco-report ) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/madrapps/jacoco-report/releases )
- [Commits](https://github.com/madrapps/jacoco-report/compare/v1.7.0...v1.7.1 )
---
updated-dependencies:
- dependency-name: madrapps/jacoco-report
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
10 months ago
Simon Marquis
12b77d6a20
Fix Gradle setup action
12 months ago
Ben Weiss
c01a129e4a
Nightly builds with baseline profiles ( #1173 )
...
* Overall build
* Enable nightly builds
* Enable Startup Profile generation for release builds
* Skip BP generation for regular Builds
* Test baseline profiles for all variants
* Cleanup
* Remove stale baseline-prof.txt
* Add generated profiles to .gitignore
* GMD
* Setup GMD in separate step
* Add GMD setup to all workflows
* Lower GMD specs
* Update GMD and Android SDK setup
* Add options test options for GMD startup
* Ensure only one device is used for bp / benchmark
* Apply guidance from issuetracker b/287312019
* Add new metrics for baseline profile measurement
Added custom metrics to better understand how effective a baseline
profile is. These TraceSectionMetrics keep track of JIT compilations
as well as class initializations which should go down when a BP is
properly applied to the app.
1 year ago
Don Turner
a636a16db9
Merge pull request #1561 from android/dependabot/github_actions/gradle/actions-4
...
Bump gradle/actions from 3 to 4
1 year ago
dependabot[bot]
32893a837d
Bump madrapps/jacoco-report from 1.6.1 to 1.7.0
...
Bumps [madrapps/jacoco-report](https://github.com/madrapps/jacoco-report ) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/madrapps/jacoco-report/releases )
- [Commits](https://github.com/madrapps/jacoco-report/compare/v1.6.1...v1.7.0 )
---
updated-dependencies:
- dependency-name: madrapps/jacoco-report
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
1 year ago
dependabot[bot]
73a938c2cb
Bump gradle/actions from 3 to 4
...
Bumps [gradle/actions](https://github.com/gradle/actions ) from 3 to 4.
- [Release notes](https://github.com/gradle/actions/releases )
- [Commits](https://github.com/gradle/actions/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: gradle/actions
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
1 year ago
Don Turner
6c4dbc56fd
Merge branch 'main' into gradle-actions
1 year ago
Don Turner
31b0cf4c63
Merge pull request #1378 from android/dependabot/github_actions/gradle/wrapper-validation-action-3
...
Bump gradle/wrapper-validation-action from 2 to 3
1 year ago
Jose Alcérreca
ead3f49f7b
Fixes flakiness in app's screenshot tests ( #1395 )
...
* Disables WM init in app's screenshot tests
Change-Id: Ib0994e744f49b53f58c0eebd52f80c0eba67bbed
* Spotless
Change-Id: Ic0212889354481433ce45ec4292ae7be9bd24b2e
* [CI] Uploads roborazzi reports if they fail
Change-Id: I5a25a7e156d3fcb72a396d3b503e62068a20b417
* Uses unused test module and enables LocalInspection
Change-Id: Iac36347dc3d702248d7515a74823e0bc0cbf2a2b
* Fixes timezone in snackbar screenshot tests
Change-Id: Ic517e8822218abeaddd3f8d2740b03e651d72d31
* Fixes conflict
Change-Id: Ia42fb78781d2469a608183594fc25c7c69f7e76c
* 🤖 Updates screenshots
1 year ago
Simon Marquis
be1a2b28e0
Configure `validate-wrappers: true` with `gradle/actions/setup-gradle`
1 year ago
Simon Marquis
44e673b52e
Fix typo
1 year ago
Simon Marquis
5470cf98ca
Migrate legacy Gradle actions to the new official `gradle/actions`
1 year ago
dependabot[bot]
c306ab756e
Bump gradle/wrapper-validation-action from 2 to 3
...
Bumps [gradle/wrapper-validation-action](https://github.com/gradle/wrapper-validation-action ) from 2 to 3.
- [Release notes](https://github.com/gradle/wrapper-validation-action/releases )
- [Commits](https://github.com/gradle/wrapper-validation-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: gradle/wrapper-validation-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
1 year ago
Jose Alcérreca
78e3725f9f
Sets up jacoco coverage with a combined report and a GHA ( #1303 )
...
* Uses jacoco coverage reporting in AGP
2 years ago
dependabot[bot]
a96526a79b
Bump gradle/wrapper-validation-action from 1 to 2
...
Bumps [gradle/wrapper-validation-action](https://github.com/gradle/wrapper-validation-action ) from 1 to 2.
- [Release notes](https://github.com/gradle/wrapper-validation-action/releases )
- [Commits](https://github.com/gradle/wrapper-validation-action/compare/v1...v2 )
---
updated-dependencies:
- dependency-name: gradle/wrapper-validation-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Don Turner
dd05d22c95
Merge pull request #1184 from android/dependabot/github_actions/gradle/gradle-build-action-3
...
Bump gradle/gradle-build-action from 2 to 3
2 years ago
Jose Alcérreca
dba36d694f
[CI] Adds free-disk-space action to fix CI ( #1219 )
...
* [CI] Adds free-disk-space action to fix CI
2 years ago
Ben Weiss
f64f1c0aa2
Remove legacy benchmark build type ( #1207 )
...
* Remove legacy benchmark build type
Now that we have the baseline profile gradle plugin,
there is no need for a benchmark build type.
The plugin does the setup and configuration and runs against the
correct app flavor.
* Remove explicit benchmark build type from benchmark module
* Remove stale build task exclusions
* Fix tracing import location
FYI @mlykotom
2 years ago
Jonathan Koren
96b554d6a2
Fix name and message of dependency guard actions ( #1196 )
...
Change-Id: I9f4c51036f8322302653287db508a76415801a56
2 years ago
Jonathan Koren
c1d6c88bb0
Run dependencyGuard task during CI ( #1064 )
...
* Run dependencyGuard task during CI
Run the `dependencyGuard` task during CI, which will fail if there are
detected changes.
Change-Id: If5f2b18a4c765bd38a3353df2adaaa91cf1739c3
* Add actions to update dependency guard baselines
* Update baselines
* Better glob for update baselines action
2 years ago
dependabot[bot]
20c8db6b0c
Bump gradle/gradle-build-action from 2 to 3
...
Bumps [gradle/gradle-build-action](https://github.com/gradle/gradle-build-action ) from 2 to 3.
- [Release notes](https://github.com/gradle/gradle-build-action/releases )
- [Commits](https://github.com/gradle/gradle-build-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: gradle/gradle-build-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Alex Vanyo
3d1550be45
Enable KVM on base Linux image
...
Change-Id: Id653fae78712a878a978ef731235e76a5288c1e8
2 years ago
Don Turner
c847866f6b
Merge pull request #1098 from android/dependabot/github_actions/actions/upload-artifact-4
...
Bump actions/upload-artifact from 3 to 4
2 years ago
Don Turner
c8c4ffba1f
Merge pull request #1073 from android/dependabot/github_actions/actions/setup-java-4
...
Bump actions/setup-java from 3 to 4
2 years ago
Don Turner
a49e901fb4
Don't run unit tests on prodDebug variant
...
Change-Id: I0adf6c70b9634de876aed64400a7d3b4033983b3
2 years ago
dependabot[bot]
f9a498caf6
Bump actions/upload-artifact from 3 to 4
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Alex Vanyo
8a992996a4
Enable stricter validation for build-logic convention plugins
...
Change-Id: I1955393c76e91bebfe4b7e349734c81a10263c8c
2 years ago
dependabot[bot]
a96e0709d8
Bump actions/setup-java from 3 to 4
...
Bumps [actions/setup-java](https://github.com/actions/setup-java ) from 3 to 4.
- [Release notes](https://github.com/actions/setup-java/releases )
- [Commits](https://github.com/actions/setup-java/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/setup-java
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Ben Weiss
aa8ce0e1f6
Add automated baseline profile generation ( #880 )
...
Baseline profile generation is disabled for the PR level Build task. Release tasks require a fresh baseline profile. A new profile is generated using the baseline profile Gradle plugin.
* Prepare for usage of dex layout optimizations which can be actively used once NiA switches to AGP 8.2+.
* Add GMD config to release build
* Switch to macos-latest
* Update names for StartupBenchmark tests to better reflect states
* Stable release and recent GMD device
* Reduce flakiness by adding wait to benchmark
* More convenient waiting for objects
* Rename junit dependency to androidx-junit
* Only run baseline profile benchmarks during GH workflow
* Enable automatic BP generation for only release builds
* Disable BP generation from Build workflow
* Specify modules and skip benchmarking Build workflow
Bug: b/299334172
2 years ago