← Back to Pull requests

feat(ci): reuse release builds and stage draft assets before dev #3215

Closed
unknown closed this pull request without merging on Dec 02, 2026 07:10 UTC
View on GitHub
unknown unknown commented on Dec 01, 2026 14:13 UTC
Author

TL;DR

Release builds stage each component on the draft, reuse verified builds on retry, and support explicit review of failed dev tests.

Design doc: Release design

Documentation: Retries and emergency publication · Review a failed dev E2E

How it works

component ready → draft attachments → complete manifest
all dev prerequisites ready → dev deployment and E2E under one lock
  pass → publication and separate prod review
  completed test failure → Slack and protected waiver → same two paths

A wheel cache hit uploads fresh Actions Artifacts, and a missing file rebuilds that platform. Runner publication checks the live tag under its lock and downloads the pinned blob anonymously. Explicit API retries replace the image.

Standalone component builds can select a PR revision and upload Actions Artifacts with read-only cache access. A tagged full release can save and verify its own build outputs across attempts.

Unexpected distribution assets block publication. Before publishing through GitHub’s UI, cancel and drain all writers for the tag.

A failed test sends the release webhook buttons for the failed attempt and GitHub approval. The reviewer copies the failure artifact ID into the review comment, for example waive 809 known failure tracked in #123. The workflow binds that decision to the run, deployment attempt, tested clients and deployment digests.

A rejected review, incomplete test evidence, pytest infrastructure failure or failed deployment blocks the full release. Waiting for the waiver frees the dev lock. The prod approval webhook identifies an approved failure as waived.

Verification

Linux make test:apps:infra passed with 2,143 tests and one skip. Focused checks exercised webhook buttons, review decisions, pytest exit codes and both downstream paths.

The two selectable-source regression checks first observed write access and then passed with read-only access. Live release, hosted approval, Slack delivery, registry writes and a hosted cache round trip remain untested.

Diff: 294 lines (+220 / -74) across 3 files Reviewer: DefeatMan Review duration: 1017m
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 294 lines diff across 3 files
0.40
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.340
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3215"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
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: 39.9% (MEDIUM) · Higher = larger blast radius
39.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: 15.8% · Safe to merge
15.8%