Back to search

Queen's University at Kingston

Pragmatic Approaches to Schedule Less Builds in Continuous Integration

Abstract

dc:description.abstract

Continuous integration (CI) is an efficient practice used for code integration and testing of software products. Yet, for large software projects, developers push hundreds of commits to the main code base everyday. Ensuring the quality of all these commits involves building, i.e., compiling and testing, every incoming commit in the CI environment. At the same time, dozens of additional builds also need to be performed to ensure that the software can reliably be executed on all supported platforms, hardware and configurations. Hence, CI becomes an expensive process. In this thesis, we study techniques that can help reduce the cost of CI by scheduling less builds. We study the existing approaches SmartBuildSkip, CI-Skip rules and Batching algorithms (Batch4, BatchStop4, BatchDivide4 and BatchBisect), then perform empirical studies to analyse the advantages and drawbacks of existing techniques and propose 3 novel heuristics based on them i.e., ML-CI, Timeout Rule and Lightweight Dynamic batching. In our two large scale studies of 79,482 builds from 20 open-source projects and 286,848 commits from 50 open-source projects, we find that our novel heuristics can match the performance of state-of-the-art heuristics and even improve upon them by enhancing them with simple history based features. In particular, we observe that by combining the prediction power of SmartBuildSkip with the ability of Batching algorithms to drastically reduce the number of scheduled builds during CI in our ML-CI and Timeout rule approach, we require 38.21% less builds than batching algorithms and 96% less turn-around-time than SmartBuildSkip. Moreover, we find that we can use simple and lightweight techniques to further enhance the performance of static batching algorithms by 4.3% to 11.9% and can also match the performance of the more complex state-of-the-art dynamic batching algorithm.

Degree

thesis:*
Department dc:contributor.department
Computing
Grantor
Queen's University at Kingston

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Kamath, Divya M.
Advisor dc:contributor.supervisor
  • Adams, Bram

Subjects

dc:subject × 4

Rights

Language dc:language.iso
eng

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/1974/31996

Chain of custody

source
Harvested from
Queens University
Base URL
qspace.library.queensu.ca/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Kamath, Divya M.. Pragmatic Approaches to Schedule Less Builds in Continuous Integration. Queen's University at Kingston, https://hdl.handle.net/1974/31996