Skip to main content
QUICK REVIEW

[論文レビュー] Statically Verifying Continuous Integration Configurations

Mark Santolucito, Jialu Zhang|arXiv (Cornell University)|May 11, 2018
Software Engineering ResearchComputer Science参考文献 19被引用数 4
ひとこと要約

VeriCI は、履歴ビルドデータから学習することで、静的解析ツールとして継続的インテグレーション(CI)ビルドの失敗を予測する。ミス分類誘導型抽象化精錬(MiGAR)ループと意思決定木学習を用いて、構成制約を生成する。コードをプッシュする前に対象のビルド失敗を83%の正確さで予測でき、失敗するCIランに費やす開発者の無駄な時間の削減に寄与する。

ABSTRACT

Continuous Integration (CI) testing is a popular software development technique that allows developers to easily check that their code can build successfully and pass tests across various system environments. In order to use a CI platform, a developer must include a set of configuration files to a code repository for specifying build conditions. Incorrect configuration settings lead to CI build failures, which can take hours to run, wasting valuable developer time and delaying product release dates. Debugging CI configurations is challenging because users must manage configurations for the build across many system environments, to which they may not have local access. Thus, the only way to check a CI configuration is to push a commit and wait for the build result. To address this problem, we present the first approach, VeriCI, for statically checking for errors in a given CI configuration before the developer pushes a commit to build on the CI server. Our key insight is that the repositories in a CI environment contain lists of build histories which offer the time-aware repository build status. Driven by this insight, we introduce the Misclassification Guided Abstraction Refinement (MiGAR) loop that automates part of the learning process across the heterogeneous build environments in CI. We then use decision tree learning to generate constraints on the CI configuration that must hold for a build to succeed by training on a large history of continuous integration repository build results. We evaluate VeriCI on real-world data from GitHub and find that we have 83% accuracy of predicting a build failure.

研究の動機と目的

  • ソフトウェアリリースの遅延を引き起こす、時間がかかりすぎてデバッグが難しいCI構成エラーの課題に対処すること。
  • コードのプッシュ前にCI構成ファイルの静的検証を可能にすることで、開発者が待つ時間の短縮を図ること。
  • 手動での指定を必要とせず、自動的に構成エラー検出ルールを生成すること。
  • 長時間実行されるビルドが発動する前に不具合のある構成を特定することで、CIワークフローの効率を向上させること。
  • 学習された制約を通じて、潜在的なビルド失敗の根本原因に関する実行可能なフィードバックを提供すること。

提案手法

  • CIリポジトリからの時間に依存するビルド履歴を活用し、成功したビルドと失敗したビルドのパターンを抽出する。
  • 異種のビルド環境に跨る抽象化を段階的に精錬するため、ミス分類誘導型抽象化精錬(MiGAR)ループを採用する。
  • 意思決定木学習を用いて、ビルドの成功または失敗と相関する構成パラメータの制約を推論する。
  • 履歴的なCIビルド結果を学習データとして用い、構成が失敗するかどうかを予測するルールを学習する。
  • ソースコードやシステム内部構造へのアクセスを必要としないブラックボックス学習アプローチを採用する。
  • どの構成設定が失敗の原因となる可能性があるかを示す人間が読みやすいエラーレポートを生成する。

実験結果

リサーチクエスチョン

  • RQ1履歴的なCIビルドデータは、構成に起因するビルド失敗を効果的に予測するために有効に利用できるか?
  • RQ2システムは、成功したビルドと失敗したビルドを区別する構成制約を自動的に学習できるか?
  • RQ3静的解析ツールは、開発者がCIフィードバックを待つ時間の短縮に寄与できるか?
  • RQ4履歴的ビルド結果と構成メタデータのみを用いて、CIビルドの失敗をどの程度の正確さで予測できるか?
  • RQ5システムは、潜在的な構成エラーの根本原因に関する実行可能なフィードバックをどのように提供できるか?

主な発見

  • VeriCI は、構成設定に基づいてCIビルドが失敗するかどうかを83%の正確さで予測できる。
  • ソースコードやシステム内部構造へのアクセスを必要とせず、問題のある構成の組み合わせを効果的に同定できる。
  • 履歴ビルドデータの分析を通じて、ビルド結果と相関する構成制約を学習する。
  • MiGAR ループは、多様なビルド環境に跨る抽象化の精錬を効果的に行い、予測の頑健性を向上させる。
  • 試行錯誤によるCIランに依存する頻度を減らし、無駄なビルド時間として数百時間の節約が可能になる。
  • システムは実行可能なフィードバックを提供し、開発者がコードをプッシュする前に構成の問題を修正できる。

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。