Repository navigation
Measure pod replacement and verify ingress isolation in the lab - #11
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 509347912d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| '{verdict:$verdict, stage:$phase, started_at:$start, finished_at:$end, runner:$runner, recovery_seconds:$recovery}' >"$out/proof.json" | ||
| --argjson recovery "$recovery_seconds" --argjson trials "$replacement_trials" \ | ||
| --arg commit "$commit" \ | ||
| '{verdict:$verdict, stage:$phase, started_at:$start, finished_at:$end, runner:$runner, commit:$commit, alert_restoration_seconds:$recovery, recovery_seconds:$recovery, pod_replacement:{measurement:"delete request to distinct Ready pod", trials:$trials, mean_seconds:(if ($trials|length)>0 then ($trials|map(.seconds)|add/length) else null end), max_seconds:(if ($trials|length)>0 then ($trials|map(.seconds)|max) else null end)}}' >"$out/proof.json" |
There was a problem hiding this comment.
Measure alert restoration through the resolution check
When Prometheus has not yet scraped the recovered deployment or reevaluated ServiceDown, the new alert_restoration_seconds field understates the alert's restoration time: it copies recovery_seconds, which is assigned immediately after rollout readiness, before the subsequent wait_query confirms alert resolution. It can even contain a successful-looking duration when that resolution check times out. Keep the existing rollout measurement separate and populate the alert-restoration measurement only after the resolution query succeeds.
Useful? React with 👍 / 👎.
Proofs
Verified on
8ccbd30These are lab observations, not production MTTR, full NetworkPolicy coverage, or uninterrupted availability.