arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2310.06298cs.SE
收藏

基于抽象化失败症状匹配的即时不稳定测试检测

Just-in-Time Flaky Test Detection via Abstracted Failure Symptom Matching

Gabin An, Juyeon Yoon, Thomas Bach, Jingun Hong, Shin Yoo

AI总结:

本研究提出一种基于抽象化失败症状匹配的即时不稳定测试检测方法,在SAP HANA的CI数据上验证显示准确率超96%,较传统重跑策略节省约58%机器时间。

摘要:

我们分享了在大型工业软件系统SAP HANA的持续集成(CI)流水线中,利用错误信息、栈追踪等失败症状识别不稳定测试失败的实践经验。尽管失败症状常被用于识别相似失败,但此前尚未被应用于检测不稳定测试失败。我们的假设是:不稳定失败会呈现出与非不稳定失败不同的症状,因此无需重新运行测试,只需将当前失败症状与历史不稳定运行的症状进行匹配,就能识别反复出现的不稳定失败,这可大幅减少测试重跑需求,最终加快向开发者交付测试结果的速度。为实现不同执行实例间的不稳定失败匹配,受失败去重和日志分析领域已有研究的启发,我们先对新的测试失败症状进行抽象化处理,再将其与已知的不稳定失败模式匹配。我们使用六个月内从SAP HANA的CI数据中收集的真实失败症状,对基于症状的不稳定性检测方法进行了评估。结果表明,该方法具备利用失败症状识别反复出现的不稳定失败的潜力,准确率至少达96%,与传统重跑策略相比节省了约58%的机器时间。对误报案例的分析及开发者反馈均凸显了一点:具备描述性、信息丰富的失败症状,对基于症状的方法的有效部署,以及对不稳定测试的调试都至关重要。

英文摘要:

We report our experience of using failure symptoms, such as error messages or stack traces, to identify flaky test failures in a Continuous Integration (CI) pipeline for a large industrial software system, SAP HANA. Although failure symptoms are commonly used to identify similar failures, they have not previously been employed to detect flaky test failures. Our hypothesis is that flaky failures will exhibit symptoms distinct from those of non-flaky failures. Consequently, we can identify recurring flaky failures, without rerunning the tests, by matching the failure symptoms to those of historical flaky runs. This can significantly reduce the need for test reruns, ultimately resulting in faster delivery of test results to developers. To facilitate the process of matching flaky failures across different execution instances, we abstract newer test failure symptoms before matching them to the known patterns of flaky failures, inspired by previous research in the fields of failure deduplication and log analysis. We evaluate our symptom-based flakiness detection method using actual failure symptoms gathered from CI data of SAP HANA during a six-month period. Our method shows the potential of using failure symptoms to identify recurring flaky failures, achieving a precision of at least 96%, while saving approximately 58% of the machine time compared to the traditional rerun strategy. Analysis of the false positives and the feedback from developers underscore the importance of having descriptive and informative failure symptoms for both the effective deployment of this symptom-based approach and the debugging of flaky tests.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑