Android Builds and Tests at Scale: The Panel Discussion
summary
Panel covers concrete fixes and numbers: teams run thousands of tests (one org cites ~5k unit + 1k integration; another trims 6,000 tests to ~25 minutes with selective testing), use Gradle build scans to find slow plugins and GC hotspots (lint spent ~20% GC time; increasing heap cut CI by ~10 minutes), adopt configuration cache (Gradle 6.7/6.8) and org.gradle.caching=true, move UI checks to Firebase Test Lab or Paparazzi to avoid flaky Espresso, and use modularization, max parallel forks and remote build cache to speed CI.
AI-written summary · about
chapters (17)
- 0:00Introduction and panel setup
- 1:57Gradle API backward compatibility
- 6:12Local build caching with Dagger
- 8:50Managing multiple build files
- 11:37Test scale and CI challenges
- 15:57Handling flaky tests at scale
- 21:02Jetpack Compose and Robolectric tests
- 22:30Reducing long CI build times
- 26:39Local build cache on developer machines
- 28:24Lint versioning with AGP
- 29:29Managing memory in CI tests
- 30:56Kotlin DSL future in Android builds
- 32:45Project Nitrogen updates
- 33:45Configuration caching benefits
- 36:58Slow generateBuildConfig troubleshooting
- 37:40Gradle module size recommendations
- 39:24Closing remarks and contacts
