Download React Native artifacts from the proxy cache server first (#57325) - #57325
Open
coado wants to merge 1 commit into
Open
Download React Native artifacts from the proxy cache server first (#57325)#57325coado wants to merge 1 commit into
coado wants to merge 1 commit into
Conversation
cortinico
reviewed
Jun 24, 2026
cortinico
left a comment
Contributor
There was a problem hiding this comment.
Great stuff 👍 love the direction
coado
marked this pull request as ready for review
June 26, 2026 10:24
cortinico
reviewed
Jun 26, 2026
cortinico
approved these changes
Jul 27, 2026
|
@coado has imported this pull request. If you are a Meta employee, you can view this in D113902346. |
coado
force-pushed
the
@coado/maven-repo-switch
branch
from
July 28, 2026 15:35
7800b85 to
9351dd3
Compare
coado
added a commit
to coado/react-native
that referenced
this pull request
Jul 28, 2026
…act#57325) Summary: This PR adds pull-through cache support for React Native Maven artifacts by trying `https://repo.reactnative.dev/maven2` before Maven Central for release artifacts. - Updates the Android Gradle resolution by adding cache repository before `mavenCentral()` scoped to React Native groups via `includeGroupByRegex`. - Updates iOS CocoaPods prebuilt artifact resolution to try the cache first, then fall back to `https://repo1.maven.org/maven2`. - Updates SwiftPM/iOS prebuild JS tooling with the same cache-first fallback behavior. - Preserves `ENTERPRISE_REPOSITORY` behavior as an explicit single custom repository override. - Avoids duplicate artifact existence probes in Ruby and JS by checking candidate URLs directly and caching JS HEAD results within the process. ## Changelog: <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [GENERAL][CHANGED] - Add React Native Maven pull-through cache fallback for prebuilt artifacts. Pull Request resolved: react#57325 Test Plan: Run: ```sh react-native % RN_DEP_VERSION=0.81.0 \ HERMES_VERSION=250829098.0.13 \ node scripts/ios-prebuild -s -f Debug ``` The logs confirm that React Native artifacts are cached and pulled from the proxy: ```sh [ReactNativeDependencies] Using download prebuild Debug tarball [ReactNativeDependencies] Using release tarball from URL: https://rnmaven.swmtest.xyz/com/facebook/react/react-native-artifacts/0.81.0/react-native-artifacts-0.81.0-reactnative-dependencies-debug.tar.gz [ReactNativeDependencies] Downloading ReactNativeDependencies tarball from https://rnmaven.swmtest.xyz/com/facebook/react/react-native-artifacts/0.81.0/react-native-artifacts-0.81.0-reactnative-dependencies-debug.tar.gz ``` Added gradle plugin tests which can be run with: ```sh ./gradlew :react-native-gradle-plugin:test --tests com.facebook.react.utils.DependencyUtilsTest ``` Reviewed By: cortinico Differential Revision: D113902346 Pulled By: coado
|
@coado has exported this pull request. If you are a Meta employee, you can view the originating Diff in D113902346. |
…act#57325) Summary: This PR adds pull-through cache support for React Native Maven artifacts by trying `https://repo.reactnative.dev/maven2` before Maven Central for release artifacts. - Updates the Android Gradle resolution by adding cache repository before `mavenCentral()` scoped to React Native groups via `includeGroupByRegex`. - Updates iOS CocoaPods prebuilt artifact resolution to try the cache first, then fall back to `https://repo1.maven.org/maven2`. - Updates SwiftPM/iOS prebuild JS tooling with the same cache-first fallback behavior. - Preserves `ENTERPRISE_REPOSITORY` behavior as an explicit single custom repository override. - Avoids duplicate artifact existence probes in Ruby and JS by checking candidate URLs directly and caching JS HEAD results within the process. ## Changelog: <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [GENERAL][CHANGED] - Add React Native Maven pull-through cache fallback for prebuilt artifacts. Pull Request resolved: react#57325 Test Plan: Run: ```sh react-native % RN_DEP_VERSION=0.81.0 \ HERMES_VERSION=250829098.0.13 \ node scripts/ios-prebuild -s -f Debug ``` The logs confirm that React Native artifacts are cached and pulled from the proxy: ```sh [ReactNativeDependencies] Using download prebuild Debug tarball [ReactNativeDependencies] Using release tarball from URL: https://rnmaven.swmtest.xyz/com/facebook/react/react-native-artifacts/0.81.0/react-native-artifacts-0.81.0-reactnative-dependencies-debug.tar.gz [ReactNativeDependencies] Downloading ReactNativeDependencies tarball from https://rnmaven.swmtest.xyz/com/facebook/react/react-native-artifacts/0.81.0/react-native-artifacts-0.81.0-reactnative-dependencies-debug.tar.gz ``` Added gradle plugin tests which can be run with: ```sh ./gradlew :react-native-gradle-plugin:test --tests com.facebook.react.utils.DependencyUtilsTest ``` Reviewed By: cortinico Differential Revision: D113902346 Pulled By: coado
coado
force-pushed
the
@coado/maven-repo-switch
branch
from
July 28, 2026 15:45
9351dd3 to
9f59039
Compare
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.
Summary:
This PR adds pull-through cache support for React Native Maven artifacts by trying
https://repo.reactnative.dev/maven2before Maven Central for release artifacts.mavenCentral()scoped to React Native groups viaincludeGroupByRegex.https://repo1.maven.org/maven2.ENTERPRISE_REPOSITORYbehavior as an explicit single custom repository override.Changelog:
[GENERAL][CHANGED] - Add React Native Maven pull-through cache fallback for prebuilt artifacts.
Test Plan:
Run:
The logs confirm that React Native artifacts are cached and pulled from the proxy:
Added gradle plugin tests which can be run with:
Reviewed By: cortinico
Differential Revision: D113902346
Pulled By: coado