テストリトライバジェット (Test Retry Budget) とは?
テストリトライバジェットは、不安定な失敗を成功に変えるためにCIが使える自動再実行の回数の上限です。リトライは本当に非決定的なテストを許容するのに役立ちますが、無制限のリトライは本物の失敗を隠し計算リソースを浪費します。バジェットは、不安定さをごまかすのではなく修正することを促します。
なぜ重要か
すべての失敗を自動リトライすると、間欠的に失敗する本物のバグが不安定さと見分けがつかなくなるため、信頼を犠牲にしてpipelineをグリーンにしてしまいます。上限付きのバジェットは、リトライを安全弁として保ちつつ、隔離や修正が必要なテストを浮き彫りにします。また、リトライが消費する余分なrunner時間も抑えます。
関連ガイド
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…
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…
What Is Bisecting a Failure?Bisecting a failure is a binary search over commits to find the exact change that introduced a regression by…