monorepo affected graph とは何か?
monorepo affected graph とは、ある変更が影響を及ぼしうるリポジトリ内プロジェクトの部分集合であり、変更されたファイルから外側へ依存関係グラフをたどることで導出されます。CI ツールはこれを使い、monorepo 全体ではなく影響を受けるプロジェクトだけの build とテストを実行します。これによって大規模な monorepo をコミットごとにテストすることが現実的になります。
なぜ重要か
大きな monorepo では、変更のたびにすべてを build およびテストするのは極端に遅くコストもかかりますが、ほとんどのプロジェクトはどの単一の diff にも影響されません。affected な集合を算出することで、実際に壊れる可能性のあるプロジェクトに CI を集中させられます。マネージド runner ではこれが無関係な作業をスキップし、build 時間を直接削減します。
関連ガイド
What Is Task Graph Caching?Task graph caching stores the output of each task keyed by its inputs so a build tool can replay results for…
What Is a Remote Cache Backend?A remote cache backend is shared storage where build and test caches live so many machines and CI runs can re…
What Is Predictive Test Selection?Predictive test selection uses a model of past results to run only the tests most likely affected by a change…