~/talk

Bazel on Android: The Good, The Bad and The Ugly

Talkat droidcon London 2025 · 2025-10-30..10-31· [android]
speakerdeck:valeraz
slides:none on file

Slack migrates Android builds to Bazel, builds the full app target and runs 45,000+ unit tests in CI, and measures ~70% faster test result times in CI with a p50 unit-test config under three minutes versus Gradle’s ~11–12 minutes. Migration uses rules_java/rules_kotlin/rules_android, rules_jvm_external, custom SQLDelight codegen, emulatorWTF for instrumentation, and a sync pipeline (Aaron plugin then a Bulldozer-backed Python script that syncs in ~3 seconds). It works for hermetic CI caching but fails to deliver acceptable local IDE experience and incremental compilation is slower, so rollout stalls.

AI-written summary · about

  1. 0:00Introduction
  2. 1:08Considering Bazel for Android
  3. 3:34Gradle configuration pain
  4. 5:18Modularization and Bazel appeal
  5. 6:42Slack’s build goals
  6. 7:45Bazel without disrupting Gradle
  7. 8:46Gradle plugins and Bazel rules
  8. 11:58Replacing Gradle plugins
  9. 13:04External APIs and tool invocations
  10. 14:47Community rules challenges
  11. 15:29Migration progress
  12. 16:51Developer testing handoff
  13. 17:57Bazel to main branch
  14. 19:19CI builds and sync tools
  15. 20:20Gradle to Bazel sync
  16. 21:45Developer feedback and rollback
  17. 22:49PR-based Bazel workflow
  18. 24:11Bazel testing quirks
  19. 24:53Instrumentation tests issues
  20. 26:21Test runner limitations
  21. 27:45Hermetic builds benefits
  22. 28:48Bazel vs Gradle performance
  23. 31:14IDE integration challenges
  24. 33:41JetBrains H Garden support
  25. 34:22Developer preview feedback
  26. 36:07Pausing Bazel project
  27. 36:5015-month journey reflections
  28. 37:11Good, bad, and ugly of Bazel
  29. 39:39Incremental compilation limits
  30. 40:22Would we do it again
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.