paperbot · PL 论文追踪

全部论文 待读 收藏

P2 BuildFast

BuildFast:面向持续集成的高效构建结果预测
ASE Proceedings of the 35th IEEE/ACM International Conference on Automated Software Engineering2020匹配度 2/10 · 该论文研究 CI 构建结果预测,属于机器学习在软件开发工具中的应用,但与用户关注的静态分析、LLM/Agent 程序分析、浮点程序分析或贝叶斯程序分析均无直接关系,仅与“PL+AI/开发者工具”有较弱边缘关联。引用 32 inbox
Bihuan Chen, Linlin Chen, Chen Zhang, Xin Peng
crossref: 2026-09-12

AI 速览

一句话:提出历史感知的 CI 构建结果预测方法 BuildFast,借助失败特异特征与自适应模型,将失败构建预测 F1 提升 47.5%。

持续集成中的长构建时间带来高昂的人力与计算成本,构建结果预测是缓解该问题的手段之一,但现有方法对失败构建的预测性能较差,且未针对实际使用场景设计。作者首先对 2,590,917 次构建进行实证研究以刻画真实项目的构建时间,并对 75 名开发者开展问卷调查以了解其对构建结果预测的看法。基于这两项结果,论文提出历史感知方法 BuildFast:通过分析构建日志与变更文件,从紧密相关的历史构建中提取多种失败特异(failure-specific)特征,并设计自适应预测模型,依据上一次构建的结果在两个模型之间切换。实验在 20 个项目上按时间顺序在线预测构建结果,同时度量正确预测带来的收益与错误预测造成的代价,结果显示 BuildFast 在失败构建上的 F1 分数比当时最优方法提升 47.5%。

问题
CI 中构建耗时长、成本高,构建结果预测虽可缓解成本,但现有方法对失败构建预测效果差且不适应实际使用场景。
方法
先做大规模构建实证研究与开发者问卷,再提出 BuildFast:基于构建日志与变更文件从相关历史构建中构造失败特异特征,并用依据上一次构建结果切换的自适应模型进行预测。
评估
在 20 个真实项目上按时间顺序进行在线构建结果预测,同时衡量正确预测收益与错误预测代价;失败构建的 F1 较已有最优方法提升 47.5%。
原文摘要(Abstract)

Long build times in continuous integration (CI) can greatly increase the cost in human and computing resources, and thus become a common barrier faced by software organizations adopting CI. Build outcome prediction has been proposed as one of the remedies to reduce such cost. However, the state-of-the-art approaches have a poor prediction performance for failed builds, and are not designed for practical usage scenarios. To address the problems, we first conduct an empirical study on 2,590,917 builds to characterize build times in real-world projects, and a survey with 75 developers to understand their perceptions about build outcome prediction. Then, motivated by our study and survey results, we propose a new history-aware approach, named BuildFast, to predict CI build outcomes cost-efficiently and practically. We develop multiple failure-specific features from closely related historical builds via analyzing build logs and changed files, and propose an adaptive prediction model to switch between two models based on the build outcome of the previous build. We investigate a practical online usage scenario of BuildFast, where builds are predicted in chronological order, and measure the benefit from correct predictions and the cost from incorrect predictions. Our experiments on 20 projects have shown that BuildFast improved the state-of-the-art by 47.5% in F1-score for failed builds.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot5892,
  title = {BuildFast},
  author = {Bihuan Chen and Linlin Chen and Chen Zhang and Xin Peng},
  booktitle = {ASE},
  year = {2020},
  doi = {10.1145/3324884.3416616}
}