这个构建失败是否与我的补丁有关?对持续集成中无关构建失败的实证研究
Is this Build Failure Related to my Patch? An Empirical Study of Unrelated Build Failures in Continuous Integration
AI总结:
研究通过分析77354个CI构建失败,探讨开发者判断构建失败是否与当前补丁相关的过程,提出基于PU学习模型的预测方法,提升识别无关构建失败的效率。
摘要:
持续集成(CI)系统经常同时运行多个构建。在这种情况下,合法的构建失败可能并非由触发它的代码推送引起。此类无关构建失败会浪费开发者时间,因为开发者必须确定失败是否与当前更改相关。我们研究了七个开源Apache项目中的77,354个CI构建失败,以理解和预测无关构建失败。我们发现开发者平均花费4小时确定失败是否与推送相关。我们还对371个确认的无关构建失败进行了文档分析,这些失败来自10,316个可能无关的失败。分析显示,无关测试失败占开发者将构建失败归类为无关情况的20%。为了预测无关构建失败,我们从问题报告、问题评论和与触发推送相关的提交中提取了33个特征。我们为七个Apache项目构建了半监督的正例和无标签(PU)学习模型。这些模型的精度从0.70到0.88,召回率从0.30到1.00,F1分数从0.44到0.91,AUC从0.63到0.97。特征重要性分析显示,CI延迟、重复错误信息和前序评论的数量是无关构建失败的有用指标。这些结果表明,PU学习可以帮助开发者识别不太可能由当前推送引起的构建失败。
英文摘要:
Continuous Integration (CI) systems often run many builds concurrently. In this setting, a legitimate build failure may not be caused by the code push that triggered it. Such unrelated build failures can waste developer effort because developers must determine whether the failure is actionable for their current change. We study 77,354 CI build failures from seven open source Apache projects to understand and predict unrelated build failures. We find that developers spend a median of 4 hours identifying whether a failure is related or unrelated to their push. We also perform a document analysis of 371 confirmed unrelated build failures sampled from 10,316 potentially unrelated failures. The analysis shows that unrelated test failures account for 20% of the cases in which developers classify build failures as unrelated. To predict unrelated build failures, we extract 33 features from issue reports, issue comments, and commits associated with the triggering push. We build semi-supervised Positive and Unlabeled (PU) learning models for seven Apache projects. The models achieve precision from 0.70 to 0.88, recall from 0.30 to 1.00, F1-score from 0.44 to 0.91, and AUC from 0.63 to 0.97. Feature importance analysis shows that CI latency, repeated error messages, and the number of preceding comments are useful indicators of unrelated build failures. These results show that PU learning can help developers identify build failures that are unlikely to be caused by their current push.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。