Slashing CI Wait Times: How Pinterest Cut Android Testing Build Times by 36%+
medium.com·14h
Flag this post

13 min readJust now

George Kandalaft | Software Engineer II, Test Tools; Alice Yang | Staff Software Engineer, Test Tools

Press enter or click to view image in full size

TL;DR

Problem Statement

Our Android end-to-end testing builds in CI were slow and flaky because the test shards were unbalanced and the entire build had to wait for the single slowest shard on a third-party testing platform.

Solution

We built a runtime-aware sharding mechanism that uses historical test duration and stability data to pack tests greedily in an in-house testing platform with EC2-hosted emulators, ensuring all shards have a similar total runtime.

Impact

The end-to-end build time was reduced by 9 minutes (a 36% improvement), decreased the slowest shard’s runtime by 55%, and com…

Similar Posts

Loading similar posts...