CICD-363 · Post-deployment metric comparison
Encyclopedia · Observability and SRE pipelines · All snippets
Previous · CICD-362 · Next · CICD-364
1. Where it fits
- Placement CI run step or authorized lab terminal.
- Prerequisites staging metrics stack, provisioned endpoints and read-only CI identity except explicitly approved writes.
- Platforms local-linux, github-actions, gitea-actions.
- Parameters
BASELINE_MS,CURRENT_MS.
2. Copy the snippet
bash
jq -ne --argjson base "${BASELINE_MS:?}" --argjson now "${CURRENT_MS:?}" '$base > 0 and $now <= $base * 1.15'3. How it works
The expression filters or transforms the input JSON. Where jq -e is used, a false or empty result can fail the gate.
4. Verify the result
Compare matched time windows and sample sizes. The gate allows 15% latency growth.
Validation syntax-validated (Bash parse). Status definitions.