Skip to content

Add OkHttp 3 compatibility CI for ReactAndroid - #60342

Merged
cortinico merged 1 commit into
react:mainfrom
cortinico:codex/okhttp3-ci
Nov 29, 2026
Merged

cortinico merged 1 commit into
react:mainfrom
cortinico:codex/okhttp3-ci

Conversation

@cortinico

@cortinico cortinico commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

Add a dedicated Android CI job that compiles ReactAndroid and runs its JVM tests against OkHttp 3.14.9. A job-scoped Gradle init script pins the OkHttp artifacts and verifies the resolved compile, runtime, and test classpaths. Normal Android builds continue using the version in the catalog. This guards against OkHttp 4-only APIs reaching shared Android sources, as happened before #60318.

Changelog:

[INTERNAL] - Add OkHttp 3 source-compatibility validation to Android CI.

Test Plan:

  • git diff --cached --check — passed before commit.
  • Parsed .github/workflows/test-all.yml with Ruby YAML and verified the job exists — passed.
  • ./gradlew --init-script .github/workflow-scripts/okhttp3-compat.gradle :packages:react-native:ReactAndroid:verifyOkHttp3Compatibility --dry-run --no-daemon — blocked locally because the hermes-compiler placeholder needs the CI yarn-install hook.
  • ./gradlew -Preact.internal.useHermesNightly=false --init-script .github/workflow-scripts/okhttp3-compat.gradle :packages:react-native:ReactAndroid:verifyOkHttp3Compatibility --dry-run --no-daemon — reached test dependency resolution but could not fetch a missing Gradle artifact from Maven Central (Operation not permitted in this environment).
  • Full compilation and JVM tests could not run locally; the new GitHub Actions job runs both against OkHttp 3.14.9.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 27, 2026
@cortinico
cortinico marked this pull request as ready for review November 27, 2026 17:14
@cortinico

Copy link
Copy Markdown
Contributor Author

cc @vonovak as this will prevent your PR from failing internally again 👍

@cortinico
cortinico enabled auto-merge (squash) November 27, 2026 17:28
@cortinico
cortinico disabled auto-merge November 27, 2026 17:28
@cortinico
cortinico merged commit 868828f into react:main Nov 29, 2026
102 of 105 checks passed
@cortinico
cortinico deleted the codex/okhttp3-ci branch November 29, 2026 18:16
@vonovak

vonovak commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

cc @vonovak as this will prevent your PR from failing internally again 👍

here's the new PR to re-land it @cortinico #60403

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants