paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Towards language-independent brown build detection

面向语言无关的棕色构建检测
ICSE Proceedings of the 44th International Conference on Software Engineering2022匹配度 2/10 · 该论文研究CI中棕色构建的早期检测,基于构建日志文本相似度,属于软件工程/持续集成运维方向,与用户关注的静态分析、LLM/Agent、浮点程序分析及贝叶斯程序分析等核心问题无直接关联;仅在工业落地和问题驱动的研究偏好上有微弱契合。引用 23 inbox
Doriane Olewicki, Mathieu Nayrolles, Bram Adams
crossref: 2026-09-12dblp: 2026-09-12

AI 速览

一句话:提出基于构建日志文本相似度的语言无关棕色构建早期检测方法,并在工业项目上验证。

论文关注持续集成中因构建脚本问题或“flaky tests”导致的棕色构建(brown builds)——这些失败是假阳性,不代表源码质量,却耗费团队解读、重跑构建并拖慢集成流水线。作者原型化并评估早期检测方法:将新构建日志与既往棕色构建日志进行文本相似度比较,预测其是否为棕色构建。在 7 个项目(6 个工业闭源项目与开源 Graphviz)上评估。模型平均 F1 达 53%,约为最佳基线的三倍,至少与人类专家相当但成本更低;跨项目预测可用于项目导入期,30 周训练集效果最佳,重训练启发式仅每 4–5 周重训即可保持高于基线的 F1。

问题
持续集成中,构建脚本缺陷和 flaky tests 造成假阳性构建失败(棕色构建),增加冗余构建并拖慢集成,需要早期识别。
方法
基于新构建日志与既往棕色构建日志的文本相似度训练/重训练模型,实现语言无关的棕色构建检测,并探索跨项目预测与重训练策略。
评估
在 7 个项目(6 个闭源工业项目、Graphviz)上评估,平均 F1 为 53%,约为最佳基线三倍,接近或不逊于人类专家,并分析跨项目、训练窗口与重训练频率。
原文摘要(Abstract)

In principle, continuous integration (CI) practices allow modern software organizations to build and test their products after each code change to detect quality issues as soon as possible. In reality, issues with the build scripts (e.g., missing dependencies) and/or the presence of "flaky tests" lead to build failures that essentially are false positives, not indicative of actual quality problems of the source code. For our industrial partner, which is active in the video game industry, such "brown builds" not only require multidisciplinary teams to spend more effort interpreting or even re-running the build, leading to substantial redundant build activity, but also slows down the integration pipeline. Hence, this paper aims to prototype and evaluate approaches for early detection of brown build results based on textual similarity to build logs of prior brown builds. The approach is tested on 7 projects (6 closed-source from our industrial collaborators and 1 open-source, Graphviz). We find that our model manages to detect brown builds with a mean F1-score of 53% on the studied projects, which is three times more than the best baseline considered, and at least as good as human experts (but with less effort). Furthermore, we found that cross-project prediction can be used for a project's onboarding phase, that a training set of 30-weeks works best, and that our retraining heuristics keep the F1-score higher than the baseline, while retraining only every 4--5 weeks.

链接与引用

DOI 原文 · DBLP

BibTeX
@inproceedings{OlewickiNA22,
  title = {Towards language-independent brown build detection},
  author = {Doriane Olewicki and Mathieu Nayrolles and Bram Adams},
  booktitle = {ICSE},
  year = {2022},
  doi = {10.1145/3510003.3510122}
}