HomeRoadmapsProgressive Delivery Day 4
Shift-Right QE & Progressive Delivery Β· Day 4 Β· 20 min

Canary Analysis & Statistical SLO Diffing
Shift-Right QE & Progressive Delivery β€” Day 4

Compare baseline vs canary cohorts with minimum sample-size guards and automated PROMOTE / HOLD / ROLLBACK verdicts.

🚦 Progressive Delivery & Canary Rollout Simulator

Simulate feature-flag combinations, dark-launch shadow parity, and automated canary SLO kill-switches.

Healthy Progressive Canary (5% β†’ 100%)

All feature flag pairs verified; canary error rate and p95 latency stay well within SLO budget.

Canary Error Rate
0.1% (base 0.12%)
p95 Latency Ratio
1.02x
Gate Verdict
PROMOTE
Decision Log: Initial 5% cohort healthy
πŸ“¦Sample Codebase & Working Solution (Day 4)Available Now
View on GitHub

The official reference codebase for Day 4 is hosted in the repository. Clone the repository and navigate to tests/day4-canary-analyzer.spec.ts to run the working solution.

Git Clone β€” Working Solution
git clone https://github.com/777abhi/progressive-delivery-qe-roadmap.git
cd progressive-delivery-qe-roadmap/tests/day4-canary-analyzer.spec.ts
🏭Production Context
πŸ’‘ Why We Are Doing This: Promoting a canary on 5 requests or without comparing against a live baseline leads to false confidence or noisy rollbacks.
🏒 Real-World Production Usecase: Argo Rollouts / Kayenta-style automated canary analysis gates.
βš™οΈ How Implemented in Production: analyzeCanaryRelease enforcing minSampleSize, maxErrorRateDeltaPct, and maxP95Ratio.
Phase 1

Run Canary SLO Analyzer

Step 1.1: Run Day 4 Vitest Suite
Terminal
npm run test:day4
Day 4 Key Learnings
  • Enforced minimum sample-size guards (HOLD) before making promotion decisions.
  • Blocked regressions when error-rate delta or p95 ratio exceeded SLO budgets.

🧠 Knowledge Check

What should a canary analyzer return when the canary cohort has fewer requests than minSampleSize?