Addressing Test Flakiness

Practical Approaches in a Database-Reliant Industrial System

Conference Paper (2026)
Author(s)

George Vegelien (Student TU Delft)

Carolin Brandt (TU Delft - Electrical Engineering, Mathematics and Computer Science)

Bas Graaf (Exact)

Arie Van Deursen (TU Delft - Electrical Engineering, Mathematics and Computer Science)

Research Group
Software Engineering
DOI related publication
https://doi.org/10.1145/3786583.3786891 Final published version
More Info
expand_more
Publication Year
2026
Language
English
Research Group
Software Engineering
Pages (from-to)
497-507
Publisher
ACM
ISBN (electronic)
9798400724268
Event
48th International Conference on Software Engineering: Software Engineering in Practice, ICSE-SEIP 2026 (2026-04-12 - 2026-04-18), Rio de Janeiro, Brazil
Page Views
24
Reuse Rights

Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.

Abstract

Flaky tests - tests that pass or fail unpredictably even without code changes - undermine the speed and trustworthiness of modern, database-heavy software systems. This study investigates the underlying causes of flakiness at Exact, a large-scale industrial system in which shared database states and resource contention introduced frequent test instability. By repeatedly rerunning the same commit, we pinpointed recurring problem areas and implemented three targeted solutions: (1) minimizing redundant background database tasks, and two strategies for cleaning up "dirty"tests: (2) explicitly disposing of test data and (3) disabling polluting tests with a database sanity check. Together, these interventions raised Exact's chance of a passing pipeline run from 27% to 95% and boosted their monthly release rate from 60% to 96%. Our findings confirm that rich, systematic measurement and well-prioritized fixes can significantly reduce flakiness in industrial-scale software.