Aurimas
5ba16edde9
Apply spotless by default ( #2055 )
...
* Apply spotless by default
- Upgrades to spotless 8.2.1
- Moves spotless setup from an init.gradle.kts to build-logic
- Narrows down the scope of `target` in spotless configuration to
be more precise to workaround https://github.com/diffplug/spotless/issues/2717
- Updates all references to init.gradle.kts
Ran gradle-profiler ./gradlew build --dry-run to validate performance
impact.
Before PR:
Mean 10,527.96 ms with 289.01 ms std dev
After PR:
Mean 11,251.78 ms with 530.29 ms std dev
Regression is there, but quite minor.
Test: ./gradlew spotlessCheck
* Address comments from AI overlords
* Fix usage of rootProject
* Enable spotless for build-logic via root project
5 months ago
Aurimas
ade8065442
Merge pull request #1970 from Jaehwa-Noh/bump-setup-java
...
Bump setup-java to v5
7 months ago
Don Turner
003dbb07aa
Update .github/workflows/Build.yaml
...
Co-authored-by: Simon Marquis <contact@simon-marquis.fr>
7 months ago
Don Turner
a223ed6d16
Re-enable graph creation using CI
7 months ago
Don Turner
b51d49c9e5
Disable graphUpdate due to flakiness
7 months ago
Don Turner
cedc689f1a
Disable checkGraphs CI step as it is failing for an unknown reason
7 months ago
Don Turner
da4e0874d5
Attempt to fix failing check graphs build step
7 months ago
Jaehwa Noh
cc7326190a
Bump setup-java to v5
...
Change-Id: Icf141ee6a0d9b66d1041a9a65bba0d8c2f0cac9a
10 months ago
Don Turner
6b14f4fec8
Merge pull request #1961 from SimonMarquis/minifyWithR8
...
Disable R8 minfication step on PRs
10 months ago
Simon Marquis
fcab2605fa
Disable R8 minfication step on PRs
10 months ago
Simon Marquis
c21ce2dcbe
Fix graphUpdate naming in workflow
10 months ago
Simon Marquis
29e3dae062
Fix workflow
10 months ago
Simon Marquis
175164f76f
Detect changes when rendering graphs and auto-commit
10 months ago
Don Turner
ec63a7574e
Merge pull request #1811 from cdsap/main
...
Publishing GHA builds to scans.gradle.com
12 months ago
Simon Marquis
e821058d34
Fix issue with `github/codeql-action/upload-sarif@v3`
...
where multiple runs of the same tool (e.g. through mutliple files) is now considered an error.
https://github.blog/changelog/2025-07-21-code-scanning-will-stop-combining-multiple-sarif-runs-uploaded-in-the-same-sarif-file/
12 months ago
Don Turner
5c283200db
Merge pull request #1882 from SimonMarquis/patch-5
...
Update GHA JDK to the latest LTS version (21)
1 year ago
Christopher Cartland
ba1a463498
CI: Integrate workflow_triggers for nowinandroid from cartland's fork ( #1873 )
...
* Update workflow triggers
- Build.yaml: Add workflow_dispatch, specify branches for pull_request.
- NightlyBaselineProfiles.yaml: Add workflow_dispatch and push (main) triggers.
- Release.yml: Add workflow_dispatch trigger.
* Allow build for PR on all branches
* Remove the push trigger for NightlyBaselineProfiles.yaml
1 year ago
Simon Marquis
b9b654acf3
Update GHA JDK to the latest LTS version (21)
1 year ago
Inaki Villar
23f602637b
publishing to scans.gradle.com
2 years ago
Don Turner
4e17010b97
Merge pull request #1772 from SimonMarquis/gradle-configuration-cache
...
Gradle Configuration Cache on CI
2 years ago
Don Turner
edf91bdc0e
Merge pull request #1771 from SimonMarquis/patch-2
...
Fix CI workflow OOM
2 years ago
Simon Marquis
88fdb1709f
Remove unnecessary steps
2 years 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
2 years 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`.
2 years 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
2 years ago
Don Turner
400e368551
Merge pull request #1763 from SimonMarquis/patch-3
...
Remove default (and deprecated) `gradle-setup` parameters
2 years 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
2 years 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
2 years ago
Don Turner
dac7ff0b14
Remove benchmarks from Build workflow
2 years ago
Ben Weiss
6f55f79be0
Remove GMD from regular build
...
Change-Id: Id63af908823a6bef576ebc35f65833847bacc5c4
2 years 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
2 years ago
Don Turner
57d98cc2e2
Merge pull request #921 from SimonMarquis/sarif
...
Enable SARIF support on GitHub Actions
2 years ago
Jaehwa Noh
b9105c61f7
Replace github action `always` into `!cancelled`. ( #1440 )
...
* Replace method always into cancelled.
Change-Id: I6518ce38a6640d42b9089e264c529ddaf75766b8
* Remove redundant if state.
2 years ago
Don Turner
3a3643e258
Merge pull request #1725 from android/dt/add-api34emu
...
Add API 34 emulator
2 years 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 .
2 years ago
Simon Marquis
2e1232c136
Merge remote-tracking branch 'upstream/main' into sarif
2 years ago
Don Turner
cc50941173
Add API 34 emulator
2 years ago
Don Turner
8267b619d6
Removing API 30 emulator while investigating flakiness
2 years ago
Simon Marquis
78dbdfac53
Bump `github/codeql-action/upload-sarif@v3`
2 years ago
Simon Marquis
085347e5e2
Merge branch 'main' into sarif
2 years 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>
2 years ago
Simon Marquis
12b77d6a20
Fix Gradle setup action
2 years 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.
2 years ago
Don Turner
a636a16db9
Merge pull request #1561 from android/dependabot/github_actions/gradle/actions-4
...
Bump gradle/actions from 3 to 4
2 years 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>
2 years 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>
2 years ago
Don Turner
6c4dbc56fd
Merge branch 'main' into gradle-actions
2 years 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
2 years 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
2 years ago
Simon Marquis
be1a2b28e0
Configure `validate-wrappers: true` with `gradle/actions/setup-gradle`
2 years ago