予測的テスト選択 (Predictive Test Selection) とは?
予測的テスト選択は、履歴データ (多くの場合は機械学習モデル) を使って、あるコード変更が壊す可能性の最も高いテストを推定し、それらを優先的に、あるいは排他的に実行する技術です。厳密な依存関係ベースの選択とは異なり、失敗を見逃す小さなリスクと引き換えに、実行するテスト数を大幅に削減します。非常に大規模なスイートを対象としています。
なぜ重要か
スイートに数十万のテストがあると、変更ごとにそのすべてを実行するのは遅く高コストですが、そのほとんどは個々のdiffには無関係です。予測モデルは重要なテストに計算リソースを集中させ、CI時間とrunner時間を削減します。確率的であるため、チームは通常、セーフティネットとして定期的にスイート全体を実行します。
関連ガイド
What Is Build Sharding?Build sharding splits a build or test suite into independent slices that run on separate machines in parallel…
What Is a Test Retry Budget?A test retry budget caps how many automatic retries a CI run may use to mask flaky failures, preventing retri…
What Is a Quarantine List?A quarantine list is the set of known-flaky tests moved out of the blocking suite so they no longer fail buil…