Critical Path - CI/CD用語集の定義
critical pathとは、pipeline内で依存するステップの最長の連鎖であり、可能な最小の総所要時間を決定するシーケンスです。critical path上にないステップをどれだけ高速化しても、pipelineが早く終わることはありません。
見つける方法
needs:依存関係を持つjobグラフでは、最初から最後まで最長の依存チェーンをたどります。build(5m)がintegrationテスト(8m)をブロックし、それがdeploy(2m)をブロックする場合、その横で並列に実行される他のjobの数に関係なく、critical pathは15分です。そのチェーン上の最も遅いステップを最適化するか、依存関係を断ち切ることが、runを短縮する唯一の方法です。
関連ガイド
Build Parallelization - CI/CD Glossary DefinitionBuild Parallelization: Build parallelization is splitting work across multiple cores or machines so independe…
Wall-Clock Time - CI/CD Glossary DefinitionWall-Clock Time: Wall-clock time (elapsed or real time) is the actual time that passes from a job start to it…
Fan-Out Factor - CI/CD Glossary DefinitionFan-Out Factor: The fan-out factor is how many parallel downstream units a single upstream step spawns, for e…