Premise Jun 6, 2023

Using Gradle Enterprise to Detect Configuration Regressions in an Android Gradle Build

Article Summary

Premise's mobile team caught a sneaky 3x build time regression that only showed up in CI. Here's how they hunted it down using Gradle Enterprise.

Android engineer Nate Ebel walks through a real debugging case study where PR builds suddenly slowed by 20%. The culprit? An AGP update that silently downloaded a 2GB NDK on every CI run.

Key Takeaways

Critical Insight

By consolidating NDK versions in a precompiled script plugin and monitoring configuration time, Premise eliminated a hidden regression that was costing 20% on every PR build.

The team also discovered why local builds weren't affected while CI was suffering, revealing a critical difference in how development machines handle NDK installations.

Recent from Premise

Related Articles