Repository navigation
ci(ios): cache React Native prebuilt tarballs - #32
Merged
Merged
Conversation
mfazekas
force-pushed
the
ci/cache-rn-prebuilt-tarballs
branch
from
October 28, 2026 11:44
77cb82d to
58ff164
Compare
mfazekas
marked this pull request as ready for review
October 28, 2026 20:19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
build-iosdownloads the React Native 0.84 prebuilt tarballs (reactnative-core-{debug,release},reactnative-dependencies-debug) from repo1.maven.org inpod install, and stalled twice on that download in #28. Most PRs never reach pod install because the turborepobuild:ioscache hits and skips it. That's the cache other PRs benefit from. It misses whenever a PR touchesios/,example/ios, the podspec orsrc/, and then every run downloads from Maven again. Thesteps.cocoapods-cachecondition on "Install cocoapods" pointed at a step that doesn't exist.This caches
example/ios/Pods/ReactNativeCore-artifactsandReactNativeDependencies-artifacts, keyed on the installed react-nativepackage.json. RN's podspec helpers skip the download when the tarball is already there. The dead condition is removed.build-expo-iosalready restores these directories as part of itsexpo-example/ios/Podscache.Verification, with a temporary
example/ios/Podfileedit (since dropped) to force a turbo miss: the first run reproduced the stall (curl: (56) Recv failure: Operation timed outon the dependencies tarball after 17 min, thenConnection reset by peeron the core tarball; cancelled after an hour). The rerun downloaded normally and savedmacOS-rn-prebuilt-366dc891.... The next rerun restored it and pod install made no RN core/dependencies download:Caches saved on a PR branch are only visible to that branch. Other PRs, including fork PRs, get this one once main saves it, which happens on the first push to main that misses the turbo cache. Hermes still comes from Maven, because CocoaPods fetches its pod source URL directly.