Commit 4583f44
Enhance Android PR CI with Concurrent JDK Matrix (#4301)
* Enhance Android PR CI to run concurrently with JDK 8, 11, 17, 21, and 25.
- Updated `.github/workflows/scripts-android.yml` to use a matrix strategy for JDK versions.
- Modified `scripts/build-android-app.sh` and `scripts/run-android-instrumentation-tests.sh` to respect `JDK_HOME` env var.
- Updated `scripts/lib/cn1ss.sh` to support failing on screenshot mismatch and skipping PR comments via env vars `CN1SS_FAIL_ON_MISMATCH` and `CN1SS_SKIP_COMMENT`.
- Configured matrix jobs to fail on mismatch and skip comments for non-default JDKs.
* Update Android PR CI matrix to run on Default: 8, 17, and 21.
- Renamed 'current' matrix entry to 'Default: 8'.
- Removed JDK 11 and 25 from the matrix as requested.
- Updated conditional logic to skip artifact uploads (screenshots, coverage) for non-default runs to prevent conflicts.
- Updated test runner script block to skip coverage generation for non-default runs.
- Preserved existing logic for JDK setup and env vars for non-default runs.
* Fix Android PR CI Matrix logic and artifacts.
- Refactored matrix to use `include` with `id`, `name`, and `java_version` to avoid string quoting issues and provide robust logic.
- Removed JDK 11 and 25 from the matrix as requested.
- Updated conditional logic to use `matrix.id` for checking default vs. custom jobs.
- Fixed artifact conflict by strictly limiting uploads to the `default` job using the robust `matrix.id == 'default'` check.
- Added explicit job name `Build Android ${{ matrix.name }}` for better visibility in PR checks.
* Fix syntax error in Android PR workflow and simplify coverage logic.
- Removed malformed shell script block in `scripts-android.yml` that caused syntax errors in the emulator runner.
- Moved logic to skip coverage report generation into `run-android-instrumentation-tests.sh` using the `CN1SS_SKIP_COVERAGE` env var.
- Updated workflow to set `CN1SS_SKIP_COVERAGE=1` for non-default matrix jobs.
- Simplified `android-emulator-runner` script input to a single line command.
* Fix Android emulator disk space issue by cleaning up runner.
- Added "Free Disk Space" step for non-default matrix jobs to remove unused large packages (dotnet, ndk, ghc, swift) and prevent `Not enough space to create userdata partition` errors during emulator creation.
- Verified that `mvnw` Java version mismatch is non-blocking for the build process.
* Updated screenshots
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Shai Almog <[email protected]>1 parent e257e6b commit 4583f44
File tree
12 files changed
+69
-21
lines changed- .github/workflows
- scripts
- android/screenshots
- lib
12 files changed
+69
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
75 | 88 | | |
76 | 89 | | |
77 | 90 | | |
| |||
82 | 95 | | |
83 | 96 | | |
84 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
85 | 120 | | |
86 | 121 | | |
87 | 122 | | |
| |||
100 | 135 | | |
101 | 136 | | |
102 | 137 | | |
103 | | - | |
104 | | - | |
105 | | - | |
| 138 | + | |
106 | 139 | | |
107 | | - | |
| 140 | + | |
108 | 141 | | |
109 | 142 | | |
110 | 143 | | |
| |||
113 | 146 | | |
114 | 147 | | |
115 | 148 | | |
116 | | - | |
| 149 | + | |
117 | 150 | | |
118 | 151 | | |
119 | 152 | | |
| |||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Loading
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
0 commit comments