Commit aa03ebc
Keep the master build runner from being OOM-killed and give unit tests a bigger heap (#1895)
Every recent failure of the Android CI workflow ends with "The runner has
received a shutdown signal" 17-20 minutes in, while one flavour's R8 pass
overlaps another flavour's bundle packaging. That is the 16 GB runner VM being
killed for memory: the Gradle daemon runs with -Xmx8g and the Kotlin daemon
inherits the same 8g.
Build the three bundles in separate Gradle invocations so packaging of one
flavour never overlaps R8 of the next, cap the Kotlin daemon at 3g on CI, and
add an 8 GB swapfile as a safety net.
The PR check has separately been failing with OutOfMemoryError in
testModernDebugUnitTest; the Gradle test worker default is 512m and the
Robolectric suite is over 1200 tests, so raise it to 4g.
Co-authored-by: Utkarsh Dalal <utkarsh.dalal@toptal.com>1 parent 58ec930 commit aa03ebc
2 files changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
26 | 33 | | |
27 | 34 | | |
28 | 35 | | |
| |||
81 | 88 | | |
82 | 89 | | |
83 | 90 | | |
84 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
85 | 96 | | |
86 | 97 | | |
87 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
232 | 233 | | |
233 | 234 | | |
234 | 235 | | |
| |||
0 commit comments