arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.09657cs.SEcs.AI
收藏

检测持续集成跳过:一种基于强化学习的方法

Detecting Continuous Integration Skip : A Reinforcement Learning-based Approach

Laval university(拉瓦尔大学)

Hajer Mhalla, Mohamed Aymen Saied

AI总结:

针对CI提交跳过检测难、数据不平衡的问题,提出基于深度强化学习的最优决策树分类器,经GitHub开源项目验证效果优于现有前沿方法。

摘要:

软件行业正掀起持续集成(Continuous Integration,CI)实践的应用热潮,覆盖商业和开源环境。CI实践通过自动化构建和测试流程,助力代码变更的无缝集成。Travis CI、GitHub Actions等框架极大地简化并优化了CI流程,让开发团队能更便捷、高效地使用CI。尽管已有这些CI工具,开发者仍难以准确标记提交是否适合执行CI或可跳过,尤其在依赖众多的大型项目中。提交标记不准确会引发资源消耗巨大的测试和构建流程,哪怕是微小提交也可能意外触发持续集成流程。CI跳过提交的检测问题可建模为二分类任务,即决定对提交执行构建还是跳过。本研究提出一种新方案,利用深度强化学习技术构建最优决策树分类器,以解决数据不平衡问题。我们在GitHub托管的各类开源项目上开展了项目内和跨项目验证基准测试,结果显示该方案相较现有前沿方法效果更优。

英文摘要:

The software industry is experiencing a surge in the adoption of Continuous Integration (CI) practices, both in commercial and open-source environments. CI practices facilitate the seamless integration of code changes by employing automated building and testing processes. Some frameworks, such as Travis CI and GitHub Actions have significantly contributed to simplifying and enhancing the CI process, rendering it more accessible and efficient for development teams. Despite the availability these CI tools , developers continue to encounter difficulties in accurately flagging commits as either suitable for CI execution or as candidates for skipping especially for large projects with many dependencies. Inaccurate flagging of commits can lead to resource-intensive test and build processes, as even minor commits may inadvertently trigger the Continuous Integration process. The problem of detecting CI-skip commits, can be modeled as binary classification task where we decide to either build a commit or to skip it. This study proposes a novel solution that leverages Deep Reinforcement Learning techniques to construct an optimal Decision Tree classifier that addresses the imbalanced nature of the data. We evaluate our solution by running a within and a cross project validation benchmark on diverse range of Open-Source projects hosted on GitHub which showcased superior results when compared with existing state-of-the-art methods.

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

↑