arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2508.08342cs.SE
收藏

通过 Pull Request 优先级排序提升持续集成中的合并流水线吞吐量

Improving Merge Pipeline Throughput in Continuous Integration via Pull Request Prioritization

Maximilian Jungwirth, Martin Gruber, Gordon Fraser

AI总结:

本文提出利用历史构建数据、PR元数据和上下文信息预测构建成功率,动态优先排序可能通过的PR,以优化合并流水线顺序,显著提升持续集成吞吐量且不依赖特定构建系统。

摘要:

将变更集成到大型单体软件仓库中是现代软件开发的关键步骤,对功能交付速度、代码库稳定性以及开发团队的整体生产力产生重大影响。为了确保主分支的稳定性,许多组织使用合并流水线,在变更被永久集成之前对软件版本进行测试。然而,尽管使用了并行化,合并流水线上的负载往往过高,以至于它们成为瓶颈。现有的优化通常依赖于特定的构建系统,限制了它们的通用性和适用性。在本文中,我们提出利用仅包含历史构建数据、PR 元数据和上下文信息的实用构建预测,来优化合并流水线中 PR 的顺序,以估计合并流水线中成功构建的可能性。通过在高峰时段动态地优先处理可能通过的 PR,这种方法在最重要的时候最大化了吞吐量。在真实世界的大规模项目上进行的实验表明,预测性排序显著优于传统的先进先出(FIFO)以及非基于学习的排序策略。与替代优化不同,这种方法不依赖于底层构建系统,因此可以轻松集成到现有的自动化合并流水线中。

英文摘要:

Integrating changes into large monolithic software repositories is a critical step in modern software development that substantially impacts the speed of feature delivery, the stability of the codebase, and the overall productivity of development teams. To ensure the stability of the main branch, many organizations use merge pipelines that test software versions before the changes are permanently integrated. However, the load on merge pipelines is often so high that they become bottlenecks, despite the use of parallelization. Existing optimizations frequently rely on specific build systems, limiting their generalizability and applicability. In this paper we propose to optimize the order of PRs in merge pipelines using practical build predictions utilizing only historical build data, PR metadata, and contextual information to estimate the likelihood of successful builds in the merge pipeline. By dynamically prioritizing likely passing PRs during peak hours, this approach maximizes throughput when it matters most. Experiments conducted on a real-world, large-scale project demonstrate that predictive ordering significantly outperforms traditional first-in-first-out (FIFO), as well as non-learning-based ordering strategies. Unlike alternative optimizations, this approach is agnostic to the underlying build system and thus easily integrable into existing automated merge pipelines.

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

↑