arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.00222cs.SEcs.LGcs.PF
收藏

面向风险的批量测试用于性能回归检测

Risk-Aware Batch Testing for Performance Regression Detection

Concordia University(康考迪亚大学);Mozilla

Ali Sayedsalehi, Peter C. Rigby, Gregory Mierzwinski

AI总结:

本文提出一种面向风险的批量测试框架,通过整合机器学习的提交风险与自适应批量策略,提升性能回归检测的效率和诊断及时性,实验证明在Firefox项目中显著降低了测试资源消耗。

摘要:

在大规模持续集成(CI)系统中,性能回归测试至关重要,但每次提交执行完整性能测试成本过高。先前工作在性能回归预测和批量测试方面展示了独立优势,但面临实际限制:预测模型很少被集成到CI决策中,传统批量策略忽视提交层面的异质性。我们通过引入一种面向风险的框架,整合机器学习的提交风险与自适应批量策略。以Mozilla Firefox为案例研究,构建了一个人类确认的回归数据集,与Autoland时间线对齐,并微调ModernBERT、CodeBERT和LLaMA-3.1变体以估计提交层面的性能回归风险,达到CodeBERT的0.694 ROC-AUC。风险分数驱动一系列面向风险的批量策略,包括Risk-Aged Priority Batching和Risk-Adaptive Stream Batching,通过现实CI模拟评估。在数千个历史Firefox提交中,我们最佳配置Risk-Aged Priority Batching与线性聚合(RAPB-la)相比Mozilla的生产启发基线实现帕累托改进。RAPB-la减少总测试执行次数32.4%,降低平均反馈时间3.8%,维持平均时间到故障源在基线水平,降低最大时间到故障源26.2%,并对应于我们成本模型下的约491,000美元年度基础设施节省。这些结果表明,面向风险的批量测试可以在减少CI资源消耗的同时提高诊断及时性。为支持可重复性和未来研究,我们发布包含所有数据集、微调管道和我们批量算法实现的完整复制包。

英文摘要:

Performance regression testing is essential in large-scale continuous-integration (CI) systems, yet executing full performance suites for every commit is prohibitively expensive. Prior work on performance regression prediction and batch testing has shown independent benefits, but each faces practical limitations: predictive models are rarely integrated into CI decision-making, and conventional batching strategies ignore commit-level heterogeneity. We unify these strands by introducing a risk-aware framework that integrates machine-learned commit risk with adaptive batching. Using Mozilla Firefox as a case study, we construct a production-derived dataset of human-confirmed regressions aligned chronologically with Autoland, and fine-tune ModernBERT, CodeBERT, and LLaMA-3.1 variants to estimate commit-level performance regression risk, achieving up to 0.694 ROC-AUC with CodeBERT. The risk scores drive a family of risk-aware batching strategies, including Risk-Aged Priority Batching and Risk-Adaptive Stream Batching, evaluated through realistic CI simulations. Across thousands of historical Firefox commits, our best overall configuration, Risk-Aged Priority Batching with linear aggregation (RAPB-la), yields a Pareto improvement over Mozilla's production-inspired baseline. RAPB-la reduces total test executions by 32.4%, decreases mean feedback time by 3.8%, maintains mean time-to-culprit at approximately the baseline level, reduces maximum time-to-culprit by 26.2%, and corresponds to an estimated annual infrastructure cost savings of approximately $491K under our cost model. These results demonstrate that risk-aware batch testing can reduce CI resource consumption while improving diagnostic timeliness. To support reproducibility and future research, we release a complete replication package containing all datasets, fine-tuning pipelines, and implementations of our batching algorithms.

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

↑