ci: serialise the closed-PR preview removal with the PR preview deploy #86
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.60) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.60 · 217 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.322
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.060
Real PR Conversation Timeline
1 comments
"Review active on #86"
general
weight: 0.35
MuneebAijaz
Why
On 2026-11-02, #82's PR preview deploy failed:
Timeline (UTC):
| Time | Event |
|---|---|
| 09:56:06 | #81 merged |
| 09:56:23 | #82's
deploy_docstarts and checks outpull-request-deployments|| 09:56:39 | "Closing a pull request" for #81 pushes
Removed docs-sa-9394-scobasic-certificates(623fe25) topull-request-deployments|| 09:57:00 | #82's push is rejected |
deploy_docinpull_request.yamlis in thepull_request_versioned_docconcurrency group. The closing workflow, which runsmike delete --push -b pull-request-deploymentsthrough the sharedpull_request_closed.yaml, isn't in that group. So any merge or close can collide with a preview deploy that's already running.Change
closed_pr.yaml'spushjob joinspull_request_versioned_docwithcancel-in-progress: false, the same settings asdeploy_doc. Concurrency groups apply across every workflow in the repo.Trade-off
GitHub keeps one running and one pending job per group. A newer job replaces the pending one, which shows as cancelled. That already happens to preview deploys during Renovate bursts (several Renovate PR runs show "cancelled" on 11-02). With this change, a preview removal can also be replaced while it's pending, which leaves a stale preview on the branch, or it can replace a pending deploy. Both are better than a failed deploy, and a re-run fixes either. To fix it completely,
mike deploy/mike deletewould need to fetch and retry on rejection instakater/.github.Tested
The YAML parses. Not exercised: a race needs two runs at once.
🤖 Generated with Claude Code