New: Practical guidance for AI-assisted quality engineering
Agile & DevOps · Cornerstone Guide 08

Quality Gates in CI/CD

Learn how to design practical quality gates for CI/CD using risk-based criteria, automated checks, security, test results, defect thresholds, and controlled exceptions.

11 min readFor QA professionals, Agile teams, developers, DevOps/SRE, product owners, Scrum Masters, and delivery leaders.

What a quality gate does

A quality gate is a decision point that uses defined evidence to determine whether a change may progress to the next delivery stage.

A gate should protect meaningful risk—not create ceremony.

Examples of automated gates

  • Build succeeds
  • Unit tests pass
  • Critical API tests pass
  • Security scan threshold met
  • Code-quality threshold met
  • No schema-breaking change
  • Smoke suite passes
  • Deployment health passes

Examples of manual or governed gates

  • High-risk architecture approval
  • Security exception
  • QA release recommendation
  • Business acceptance
  • CAB / change approval
  • Operational readiness

Design gates around severity

ConditionPossible gate response
Critical test failsBlock automatically
Low-risk test failsContinue with warning / review
Known environment issuePause or invoke controlled exception
Security critical findingBlock pending resolution/exception

Avoid brittle gates

If unreliable tests block delivery frequently, teams will pressure the organization to bypass the gate. Gate reliability therefore depends on stable tests, environments, data, and ownership.

Make exceptions visible

Exceptions should be explicit, time-bound, owned, and auditable. Silent bypasses destroy the credibility of quality gates.

Build quality into the delivery flow

Connect Agile practices, CI/CD, quality gates, release readiness, observability, and operational feedback.

Ask a QA Question

AskAQA AI assistant

Ask a QA

Ask me about QA in Agile teams, Scrum, Kanban, shift-left, CI/CD, quality gates, Definition of Done, feature flags, or release quality.

Do not include passwords, confidential information, or personal data in your question.