Deep Dive: Fan out Builds for faster performance and stability on Bitrise

Deep Dive: Fan out Builds for faster performance and stability on Bitrise

May 5, 2020

If you think your team or product could benefit from learning more about Bitrise, reach out to us on https://www.bitrise.io/contact and read our dedicated blog post: https://blog.bitrise.io/fan-out-parallel-builds-and-test-reports-on-bitrise

Success on mobile is about speed and it’s about quality. To ensure quality, rigorous testing of your mobile builds are crucial, but these tests take time. In this webinar, Bitrise mobile DevOps engineer Damien Murphy explains how to get the best of both, by demonstrating how to combine speed and quality by speeding up tests on Bitrise.

Parallel testing and test reporting
In the first section of the webinar, Damien will demonstrate exactly how to split up your tests into schemes and how to run the workflows featuring those schemes in parallel on Bitrise. Results are dependent on your available concurrencies and the specifics of your tests, but anecdotally this configuration has reduced build time by more than 40%.

In this specific example, Damien will use xcodebuild build-for-testing & test-without-building to reuse the generated build artifacts. From a high level, the process will look like:

  1. Trigger X test workflows from a Primary workflow and wait for them to complete
  2. Gather the test results from all X fan out workflows via the Bitrise API using NodeJS
  3. Generate a single Test Report for all X test results using bash