Hunting for hidden bugs: dealing with test flakiness in SKA control software

TUBG006
23 Sept 2025, 11:30
15m
Grand Ballroom (Palmer House Hilton Chicago)

Grand Ballroom

Palmer House Hilton Chicago

17 East Monroe Street Chicago, IL 60603, United States of America
Contributed Oral Presentation MC12: Software Development and Management Tools TUBG MC12 Software Development and Management Tools

Speaker

Gianluca Marotta (INAF - OAA (Arcetri Astropysical Observatory))

Description

Test flakiness—when a test intermittently passes or fails without changes to the code—poses a significant challenge in the validation of distributed control systems. This paper presents an investigation into test flakiness in CSP.LMC (Local Monitoring and Control for the Central Signal Processor), a key subsystem of the SKA (Square Kilometre Array) telescope. CSP.LMC is a Python application built on the TANGO framework, that is tested using a multi-level testing approach combining unit, component, and integration tests. To achieve scalable and reproducible deployment, the entire SKA control software runs within a Kubernetes environment. We systematically collect test outcomes and execution benchmarks to monitor system stability over time. A data mining approach is applied to uncover correlations and hidden patterns associated with test instability. Our analysis aims to uncover subtle software issues that are not easily detected through standard test evaluation. Furthermore, we aim to explore how the complexity of both the software architecture and its deployment may introduce sources of non-determinism that can lead to flaky tests. We discuss the impact of flakiness on the reliability of SKA control software and propose practical strategies to benchmark, detect, and mitigate flaky tests in complex distributed environments.

Author

Gianluca Marotta (INAF - OAA (Arcetri Astropysical Observatory))

Co-authors

Elisabetta Giani (INAF - OAA (Arcetri Astropysical Observatory)) Stefano Di Frischia (INAF - OAAb (Abruzzo Astronomycal Observatory)) Ivana Novak (Cosylab Switzerland) Martino Colciago (Cosylab Switzerland) Giorgio Brajnik (University of Udine, IDS Srl) Emanuele Lena (IDS Srl) Carlo Baffa (INAF - OAA (Arcetri Astropysical Observatory))

Presentation materials

There are no materials yet.