build: drop the gradle worker limit again
CI / checks (push) Successful in 2m33s

This commit is contained in:
ponas committed 2026-10-30 03:03:15 +01:00
1 parent 0c7f9eb1aa
commit ce13d56cb8
2 files changed
+15 -14

No files matched your search

+13 -10
View File
@@ -2,16 +2,19 @@
Remove items from this list once they are done.
- check that Android release builds now fit on EAS's default worker (4 vCPUs, 15.6 GB): two builds
ran out of memory there, one stalling in the C++ step until EAS's 45-minute limit and the next
failing with "Gradle build daemon disappeared unexpectedly". Reproduced locally under the same
limits (`taskset -c 0-3` and a 15 GB, no-swap systemd scope): the build succeeds in 20 minutes
but peaks at 13.3 GB of anonymous memory while Skia, Reanimated/Worklets, Screens and Sentry
compile their C++ for four ABIs in parallel. Both build profiles in `eas.json` now set
`GRADLE_OPTS: "-Dorg.gradle.workers.max=2"` (Gradle uses 2 worker leases instead of one per CPU).
If that still fails or nears 45 minutes, try `"resourceClass": "large"` for Android (paid plan);
meanwhile `eas build -p android --profile production --local` works, with the .aab submitted
through `eas submit -p android --profile beta --path <aab>`
- check that Android release builds now fit on EAS's default worker (4 vCPUs, 15.6 GB). Three
builds failed on the Skia step: one stalled in `:shopify_react-native-skia:buildCMakeRelWithDebInfo
[arm64-v8a]` until EAS's 45-minute limit, two failed with "Gradle build daemon disappeared
unexpectedly", the last even with Gradle limited to two workers. Cause: a memory regression in
`@shopify/react-native-skia` 2.14.0 (Expo SDK 58's pin), whose `ViewProperty.cpp` and
`RNSkPictureView.cpp` include the whole JSI API, so three translation units of ~2.5, 2.6 and
4.5 GB compile in parallel inside Skia's own ninja build
([wcandillon/react-native-skia#4284](https://github.com/wcandillon/react-native-skia/pull/4284)).
Locally under the same limits (`taskset -c 0-3`, a 15 GB no-swap systemd scope) the build peaked at
13.3 GB of anonymous memory. Fixed in 2.15.2, which the moved project publishes as
`react-native-skia`, so `package.json` aliases `@shopify/react-native-skia` to
`npm:react-native-skia@2.15.2` and lists it in `expo.install.exclude`. Drop the alias and the
exclusion once Expo pins a Skia with the fix
- check that release builds' source maps make Bugsink's stack traces readable: the upload works
(build 31's log shows `Uploaded files to Sentry` once `SENTRY_URL` was set in `eas.json`), so
throw an error in a release build and check for symbolicated frames in Bugsink's `cnapp` project