Delta Debugging for Cyber-Physical Systems with Flaky Test Executions
Pablo Valle, Shaukat Ali, Aitor Arrieta
Abstract
Simulation-based testing is widely used to validate Cyber-Physical Systems (CPSs), yet modern CPS simulators frequently exhibit non-deterministic (flaky) behavior, making failures difficult to reproduce and debug. Although delta debugging has proven effective for deterministic systems, its underlying assumptions do not hold in stochastic environments. This paper presents three delta debugging algorithms that combine statistical failure analysis, repeated executions, and environment-aware reduction to isolate minimal failure-inducing test inputs for stochastic CPSs. We evaluate the proposed techniques on two complementary case study systems: an industrial elevator dispatching system employing stochastic optimization and an autonomous mobile robot exhibiting simulator-induced non-determinism. The results show that the proposed approaches substantially reduce debugging time while preserving the original failure behavior. More importantly, we observe that minimizing failure-inducing test inputs frequently increases failure reproducibility compared with the original executions. By eliminating execution segments that introduce incidental stochastic effects, the reduced test inputs isolate the causal conditions of the failure and consistently reproduce it with higher probability. These findings suggest that delta debugging not only simplifies failure analysis but also mitigates execution flakiness, providing a practical foundation for debugging CPSs.
Create a lesson
Related papers
Studying, Identifying, and Fixing Hidden Technical Debt in AI-Intensive Cyber-Physical Systems
Shared title terminology · Beena
Uncertainty in Cyber-Physical Systems: A Literature Survey
Shared title terminology · Amna Khan, Beena, Aitor Arrieta et al.
EmbedGym: Letting Coding Agents Develop and Debug Embedded Firmware Without Physical Hardware
Shared title terminology · Minghui Zhao, Yiming Li, Sophie Zhu et al.
CASPER-Change-Aware Slice Prioritization for Efficient Regression Testing of LLM-based systems
Shared title terminology · Biruk Asmare Muse, Lionel Briand, Yiwei Lu et al.
When Knowledge Changes: Metamorphic Testing of RAG Systems with Mutations
Shared title terminology · Jinhan Kim, Samuele Pasini, Paolo Tonella
Input Relation Prompting for Metamorphic Testing on Query-Based Systems
Shared title terminology · Eng-Shen Tu, Shin-Jie Lee