Accelerating Continuous Integration with Parallel Batch Testing

08/25/2023
by   Emad Fallahzadeh, et al.
0

Continuous integration at scale is costly but essential to software development. Various test optimization techniques including test selection and prioritization aim to reduce the cost. Test batching is an effective alternative, but overlooked technique. This study evaluates parallelization's effect by adjusting machine count for test batching and introduces two novel approaches. We establish TestAll as a baseline to study the impact of parallelism and machine count on feedback time. We re-evaluate ConstantBatching and introduce DynamicBatching, which adapts batch size based on the remaining changes in the queue. We also propose TestCaseBatching, enabling new builds to join a batch before full test execution, thus speeding up continuous integration. Our evaluations utilize Ericsson's results and 276 million test outcomes from open-source Chrome, assessing feedback time, execution reduction, and providing access to Chrome project scripts and data. The results reveal a non-linear impact of test parallelization on feedback time, as each test delay compounds across the entire test queue. ConstantBatching, with a batch size of 4, utilizes up to 72 maintain the actual average feedback time and provides a constant execution reduction of up to 75 feedback time with up to 91 reduction of up to 99 feedback time with up to 81 reduction of up to 67 TestCaseBatching to reduce the required testing machines efficiently. Analyzing historical data to find the threshold where adding more machines has minimal impact on feedback time is also crucial for resource-effective testing.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/14/2021

DeepOrder: Deep Learning for Test Case Prioritization in Continuous Integration Testing

Continuous integration testing is an important step in the modern softwa...
research
04/22/2022

Comparative Study of Machine Learning Test Case Prioritization for Continuous Integration Testing

There is a growing body of research indicating the potential of machine ...
research
11/14/2022

An approach for Test Impact Analysis on the Integration Level in Java programs

Test Impact Analysis is an approach to obtain a subset of tests impacted...
research
01/14/2019

Towards Testing of Deep Learning Systems with Training Set Reduction

Testing the implementation of deep learning systems and their training r...
research
09/27/2021

Scalable and Accurate Test Case Prioritization in Continuous Integration Contexts

Continuous Integration (CI) requires efficient regression testing to ens...
research
06/02/2023

Constraint-Guided Test Execution Scheduling: An Experience Report at ABB Robotics

Automated test execution scheduling is crucial in modern software develo...
research
03/17/2021

An Integration Test Order Strategy to Consider Control Coupling

Integration testing is a very important step in software testing. Existi...

Please sign up or login with your details

Forgot password? Click here to reset