Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Remove okhttp's androidx.startup provider from the test APK - #4706

Merged
rvandermeulen merged 1 commit into
mozilla-mobile:masterfrom
rvandermeulen:androidtest-startup-provider
Dec 1, 2026
Merged

rvandermeulen merged 1 commit into
mozilla-mobile:masterfrom
rvandermeulen:androidtest-startup-provider

Conversation

@rvandermeulen

@rvandermeulen rvandermeulen commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

okhttp-android, which mockwebserver3 pulls in, declares androidx.startup's InitializationProvider, but the app already ships androidx.startup, so its classes are left out of the test APK. Since android-components stopped leaking androidx.test:core into the app (bug 2099366), ActivityScenario's bootstrap activities are declared only in the test APK and start its own process, which then crashes loading the provider. This broke the UI tests starting with Android Components 163.0.20261201090953.

Fenix and the android-components browser and glean samples remove the provider from their test APKs the same way.

@rvandermeulen
rvandermeulen requested a review from a team as a code owner December 1, 2026 21:54
@rvandermeulen
rvandermeulen requested review from bhearsum and removed request for a team December 1, 2026 21:54
@mergify

mergify Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@rvandermeulen
rvandermeulen force-pushed the androidtest-startup-provider branch from 584eab7 to 7be8a21 Compare December 1, 2026 22:08
@rvandermeulen
rvandermeulen requested review from jonalmeida and removed request for bhearsum December 1, 2026 22:08
okhttp-android, which mockwebserver3 pulls in, declares androidx.startup's InitializationProvider, but the app
already ships androidx.startup, so its classes are left out of the test APK. Since android-components stopped
leaking androidx.test:core into the app, ActivityScenario's bootstrap activities are declared only in the test
APK and start its own process, which then crashes loading the provider.
@rvandermeulen
rvandermeulen force-pushed the androidtest-startup-provider branch from 7be8a21 to c638c9a Compare December 1, 2026 22:14
@rvandermeulen rvandermeulen added the needs landing Auto lands approved and green PRs. label Dec 1, 2026
@rvandermeulen
rvandermeulen merged commit 0833bf2 into mozilla-mobile:master Dec 1, 2026
12 checks passed
@rvandermeulen
rvandermeulen deleted the androidtest-startup-provider branch December 1, 2026 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs landing Auto lands approved and green PRs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants