← Back to Pull requests

feat(ci): publish a dev-accepted release in one run #3069

Closed
unknown closed this pull request without merging on Nov 30, 2026 23:53 UTC
View on GitHub
unknown unknown commented on Nov 24, 2026 15:16 UTC
Author

TL;DR

Build, deploy, test and publish one dev-accepted candidate in a single Actions run.

Release flow

Runtime, wheels, Node and C build in parallel. Go tests and Runner consume the C artifact. C SDK and Runner each load configuration and validate the source commit in a single job.

Once GHCR producers finish, one dev job verifies the image and Runner digests, records their candidate and requests approval. Dev then tests the Linux x64 clients staged by this run.

Dev E2E success opens protected prod approval immediately. In parallel, the publication branch checks the complete distribution and Go tests, verifies the accepted client bytes and attaches the assets to the draft.

After PyPI and npm succeed, CI verifies the remote attachments and publishes the draft as a stable GitHub Release. Crates.io and Go tagging can then proceed in parallel. Both full and standalone Go publication download every versioned C SDK archive anonymously and check its GitHub asset digest before pushing the module tag.

Release Slack includes the E2E result with prod approval and a run button on failures.

A same-version Runner rebuild changes the upgrade trigger and installed digest check. Retrying attachment publication uploads missing files and preserves matching bytes, including install.sh.sha256. Release runbook · Design

Publisher configuration and repair

Configure the trusted publisher for the PyPI project and every npm package with owner boxlite-ai, repository boxlite and workflow filename mbuild-release.yml. Those two jobs run directly in that workflow with GitHub OIDC. PyPI · npm

The Runner GHCR package needs anonymous pull access for hosts. For a historical release, verify and backfill the original Runner archive before using its version for rollback. Backfill procedure

Choose publish-runtime, publish-wheels, publish-node, publish-c, publish-go or publish-runner to build and publish that component from an existing product Release.

For example, publish-wheels builds three platforms, verifies and attaches the files, then publishes to PyPI. Standalone publication skips dev, E2E, prod and draft promotion. Component commands

Standalone build-only runs accept a source ref and stage run artifacts. Go uses the matching C matrix and Runner needs only Linux x64. The six component workflows expose reusable calls, and Runtime also keeps its weekly schedule.

Component builds overlap while publishers writing the same version and destination take a short queued lock. The draft asset inventory uses the same lock for attachment and finalization. A macOS-only rebuild rechecks the whole distribution and can reuse dev acceptance when its tested Linux client bytes and deployment digests match.

For manual repair, select repair-runtime, repair-wheels, repair-node or repair-c and the original candidate artifact ID. The workflow verifies the run, tag, commit and acceptance receipt before publishing the selected component.

Verification

  • The complete Linux infrastructure target passed 2,108 checks with one skip after rebasing onto 5f76ccf214. All 29 focused release tests passed. They cover the full release caller’s pinned C SDK build on BoxLite, hosted Runner recovery, and Go tag publication failures and retries. Actionlint 1.7.12 ran with scoped exceptions for the GitHub cache-mode and concurrency.queue keys.

  • Before the fix, the installer sidecar appeared twice and changing the candidate left the Runner upgrade trigger unchanged. Local fixtures verify fresh installation before attachment, corrupt-byte rejection and same-version replacement. Running the Runtime attachment step twice records exactly one upload of each file, including the installer sidecar.

  • A production retry reads the dev acceptance for the same candidate before and after approval. Tests also cover a lost finalization response, conflicting PyPI wheels and concurrent host installers.

  • In the previous shadow rehearsal, package publishers skipped after a successful attachment. A regression now checks attachment success, cancellation, component repair and required publisher results. Previous skipped run · Verified publication rehearsal

  • Shadow uses native dev and prod approvals with deployment: false and sends marked Slack notifications.

  • The pre-rebase shadow branch mirrored 10 workflows, 43 job definitions and 206 ordered steps, including the platform and Node version matrices. Previous full rehearsal · Shadow runbook

  • Six standalone shadow runs for the same version succeeded. Each reached its selected publication job and skipped deployment, E2E and draft promotion. runtime · wheels · node · c · go · runner
  • Review notes

    The design review called for explicit first-install and same-version upgrade outcomes, immutable identity across prod approval and digest checks under destination locks. Local fixtures exercise host installation and upgrade, and offline publication checks reject conflicting attachments. Verification used local fixtures and shadow runs with simulated cloud and registry operations.

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: DefeatMan Review duration: 9156m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    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.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3069"
    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: 52% (MEDIUM) · Higher = larger blast radius
    52%
    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: 20.5% · Safe to merge
    20.5%