Skip to main content
QUICK REVIEW

[论文解读] Empirical Analysis on CI/CD Pipeline Evolution in Machine Learning Projects

Dhia Elhaq Rzig, Alaa Houerbi|arXiv (Cornell University)|Mar 18, 2024
Evolutionary Algorithms and ApplicationsComputer Science被引用 5
一句话总结

本研究通过实证分析 ML 项目中 CI/CD 配置的演变,识别出 14-category 共进化分类法,并揭示与 CI/CD 变更相关的模式及开发者专业知识。

ABSTRACT

The growing popularity of machine learning (ML) and the integration of ML components with other software artifacts has led to the use of continuous integration and delivery (CI/CD) tools, such as Travis CI, GitHub Actions, etc. that enable faster integration and testing for ML projects. Such CI/CD configurations and services require synchronization during the life cycle of the projects. Several works discussed how CI/CD configuration and services change during their usage in traditional software systems. However, there is very limited knowledge of how CI/CD configuration and services change in ML projects. To fill this knowledge gap, this work presents the first empirical analysis of how CI/CD configuration evolves for ML software systems. We manually analyzed 343 commits collected from 508 open-source ML projects to identify common CI/CD configuration change categories in ML projects and devised a taxonomy of 14 co-changes in CI/CD and ML components. Moreover, we developed a CI/CD configuration change clustering tool that identified frequent CI/CD configuration change patterns in 15,634 commits. Furthermore, we measured the expertise of ML developers who modify CI/CD configurations. Based on this analysis, we found that 61.8% of commits include a change to the build policy and minimal changes related to performance and maintainability compared to general open-source projects. Additionally, the co-evolution analysis identified that CI/CD configurations, in many cases, changed unnecessarily due to bad practices such as the direct inclusion of dependencies and a lack of usage of standardized testing frameworks. More practices were found through the change patterns analysis consisting of using deprecated settings and reliance on a generic build language. Finally, our developer's expertise analysis suggests that experienced developers are more inclined to modify CI/CD configurations.

研究动机与目标

  • Explore how CI/CD configurations evolve in ML projects compared to general OSS projects.
  • Identify co-change categories between CI/CD configurations and ML source code.
  • Discover common change patterns in CI/CD configurations within ML projects.
  • Assess how developer expertise relates to modifying CI/CD configurations.

提出的方法

  • Manual labeling of 343 commits modifying .travis.yml from 508 ML projects with Python and Travis CI.
  • Development of a 14-category taxonomy for CI/CD and ML co-changes.
  • Association Rule Mining (Apriori) to uncover relationships between co-change categories.
  • Abstract Syntax Tree analysis (TraVanalyzer and GumTree) to mine CI/CD change patterns.
  • Pattern clustering of CI/CD changes by command name and Travis keywords.
  • Correlation analysis (Spearman and Kendall) to relate developer expertise with pipeline changes.

实验结果

研究问题

  • RQ1RQ1: How do CI/CD pipelines evolve in ML projects?
  • RQ2RQ2: How do CI/CD pipelines co-evolve with ML code?
  • RQ3RQ3: What are the common patterns of change in CI/CD configurations?
  • RQ4RQ4: How skilled are the developers changing CI/CD configurations in ML projects?

主要发现

  • Build Policy changes dominate ML CI/CD evolution, occurring in over half of commits.
  • Co-evolution taxonomy identifies Testing and Dependency Management as prominent categories; Deployment and Data Versioning are less frequent.
  • Association Rules reveal notable links such as Documentation or Pipeline Automation with Dependency Management and Testing changes.
  • Testing changes appear in 21.0% of commits, the most frequent co-change category.
  • Dependency Management changes account for about 20.3% of commits, with direct inclusion of dependencies in CI scripts as a bad practice.
  • Common change patterns include use of deprecated Travis settings and reliance on a generic build language.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。