← Back to Pull requests

ci: serialise the closed-PR preview removal with the PR preview deploy #86

Closed
unknown closed this pull request without merging on Nov 04, 2026 13:30 UTC
View on GitHub
unknown unknown commented on Nov 02, 2026 12:55 UTC
Author

Why

On 2026-11-02, #82's PR preview deploy failed:

! [rejected] pull-request-deployments -> pull-request-deployments (fetch first)

Timeline (UTC):

| Time | Event |
|---|---|
| 09:56:06 | #81 merged |
| 09:56:23 | #82's deploy_doc starts and checks out pull-request-deployments |
| 09:56:39 | "Closing a pull request" for #81 pushes Removed docs-sa-9394-scobasic-certificates (623fe25) to pull-request-deployments |
| 09:57:00 | #82's push is rejected |

deploy_doc in pull_request.yaml is in the pull_request_versioned_doc concurrency group. The closing workflow, which runs mike delete --push -b pull-request-deployments through the shared pull_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's push job joins pull_request_versioned_doc with cancel-in-progress: false, the same settings as deploy_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 delete would need to fetch and retry on rejection in stakater/.github.

Tested

The YAML parses. Not exercised: a race needs two runs at once.

🤖 Generated with Claude Code

Diff: 217 lines (+162 / -55) across 2 files Reviewer: MuneebAijaz Review duration: 2915m
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
0.60
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed sensitive_module
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 59.9% (MEDIUM) · Higher = larger blast radius
59.9%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 23.6% · Safe to merge
23.6%