How to Build an Android Memory Regression Gate at inDrive: CI Setup and Calibration
In the first article, I explained how I investigated measurement noise and turned a memory report into a blocking PR check. This companion guide covers our current setup: Macrobenchmark, the build and scenarios, CI emulators, baseline comparisons, verdict rules, cloud-hosted phones, and calibration. References to Parts 1–6 below point to the investigation in the first article.
System components
- Test: Macrobenchmark with a custom memory sampler running inside it.
- Build: a dedicated release-based build type that can access the test server.
- Scenarios: ten user journeys through the most memory-heavy screens.
- CI emulators: one Android 14 image; a fresh emulator for every scenario.
- Schedule: diff-selected scenarios on PRs; the full suite on main twice each night.
- Verdict: warn when growth exceeds max(3σ, 8 MB) relative to the main baseline; block 4 MB above that, never below 12 MB.
- Cloud phones: two BrowserStack models, run twice a day on main and in...
Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE