Skip to content

Preload Gradle 9.4.1 in the Android image - #251

Merged
cortinico merged 1 commit into
mainfrom
ci/preload-gradle-9.4.1
Sep 21, 2026
Merged

cortinico merged 1 commit into
mainfrom
ci/preload-gradle-9.4.1

Conversation

@cortinico

Copy link
Copy Markdown
Member

Summary

  • preload the Gradle 9.4.1 wrapper distribution in the image
  • keep the wrapper cache in /opt/gradle-home, outside the ephemeral GitHub Actions HOME mount
  • verify the distribution checksum and retry transient image-build downloads
  • verify in CI that React Native's real wrapper starts with container networking disabled

Motivation

React Native job 106382584327 failed before compilation because its fresh container had to download gradle-9.4.1-bin.zip and the wrapper hit its 10-second timeout. The debug matrix sibling downloaded the same distribution successfully and completed, confirming this was a transient network failure rather than a build failure.

Pre-seeding the wrapper cache makes Gradle startup independent of that external download while preserving use of ./gradlew and its version selection.

Test plan

  • git diff --check
  • Parsed .github/workflows/build.yml with Ruby YAML
  • Added a CI check that runs ./gradlew --version with --network none
  • Full image build not run locally because no container daemon was active

@cortinico
cortinico marked this pull request as ready for review September 21, 2026 15:43
@cortinico
cortinico force-pushed the ci/preload-gradle-9.4.1 branch from bdef35f to 39477fc Compare September 21, 2026 15:44
@cortinico
cortinico enabled auto-merge (squash) September 21, 2026 15:45
@cortinico
cortinico force-pushed the ci/preload-gradle-9.4.1 branch from 39477fc to 0056143 Compare September 21, 2026 18:21
@cortinico
cortinico merged commit 11840c6 into main Sep 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants