Quality Gate - CI/CD用語集の定義
quality gateは、テストのcoverage、lintエラー、セキュリティの検出などのメトリクスが設定した閾値を超えるとbuildを不合格にします。
quality gateは合格/不合格のチェックポイントで、コード品質のメトリクス (coverage、lintエラー、セキュリティの検出、重複) が定義された閾値を超えるとbuildを不合格にします。
quality gateは主観的な基準を、pipelineが強制する厳格なルールに変えます。SonarQubeのようなツールはデフォルトのquality gateを備えています。ある割合を下回ると非ゼロで終了するcoverageツールから自作することもできます。
よくあるgateの条件
典型的な閾値: 新規コードのcoverageが80%以上、新規の重大な脆弱性がゼロ、あるレーティングを超える新規のcode smellがないこと。一つでも条件が不合格ならgate全体が不合格になります。
関連ガイド
Pipeline Gate - CI/CD Glossary DefinitionPipeline Gate: A pipeline gate is a checkpoint in a CI/CD pipeline that blocks progress until a defined condi…
Gate Criteria - CI/CD Glossary DefinitionGate Criteria: Gate criteria are the explicit, measurable conditions a change must meet to pass a pipeline ga…
Automated Gate - CI/CD Glossary DefinitionAutomated Gate: An automated gate is a pipeline checkpoint whose pass/fail decision is made entirely by a mac…