Closed Bug 2050307 Opened 20 hours ago Closed 15 hours ago

Stop minifying the Focus instrumented-test APKs

Categories

(Firefox Build System :: Task Configuration, task)

task

Tracking

(firefox154 fixed)

RESOLVED FIXED
154 Branch
Tracking Status
firefox154 --- fixed

People

(Reporter: RyanVM, Assigned: RyanVM)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

focus-android-test-nightly and focus-android-test-beta in taskcluster/kinds/build-apk/kind.yml are missing disable-optimization: true, which every Fenix android-test job and every *-firebase job already sets. These jobs build a signed androidTest APK for Firebase (the build type only controls the signing key); they are not meant to exercise minification.

Because of that, the Focus nightly/beta androidTest APKs are R8-processed. Under AGP 8's lenient R8, the resulting missing-class references (optional LeakCanary integrations pulled in transitively) are tolerated as warnings, but AGP 9's default R8 full mode makes them fatal, breaking the build.

We should add disable-optimization: true to both jobs so they match the Fenix jobs and skip minification. This corrects a pre-existing Focus/Fenix inconsistency and is backwards-compatible with AGP 8.

The focus-android-test-nightly and focus-android-test-beta jobs build a signed androidTest APK for
Firebase, which requires the test APK and the app under test to share a signing key (hence the
nightly/beta build type). These APKs are not meant to exercise minification, but unlike the
equivalent Fenix jobs - and unlike every *-firebase job - they were missing disable-optimization,
so R8 ran on the test APK. Add disable-optimization to match, assembling the test APKs without
shrinking.

Status: NEW → RESOLVED
Closed: 15 hours ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: