← Back to Pull requests

Add PyPI release infrastructure for cuda-coop-cutlass #12777

Closed
unknown closed this pull request without merging on Nov 24, 2026 21:35 UTC
View on GitHub
unknown unknown commented on Nov 23, 2026 21:03 UTC
Author

This PR adds the PyPI release workflow for cuda-coop-cutlass. The build from #12311 creates a source distribution with the matching CCCL headers, then builds the wheel from that archive.

A cuda-coop-cutlass-vX.Y.Z or cuda-coop-cutlass-vX.Y.ZrcN tag on a commit reachable from main starts the build. CI checks the version, bundled headers and source revision in both archives, and retains the sdist as a CI artifact. An L4 job installs the original universal wheel and runs the scan example from the sdist through both CuTe compiler routes.

Maintainers use the existing release-wheels.yml dispatch with the tag build's run ID and wheel-dst=testpypi or wheel-dst=pypi. The uploader publishes only the wheel whose SHA-256 passed on L4, checks the filename and hash on the destination, and requires a matching wheel on TestPyPI before production. The shared workflow keeps its existing inputs. Regular PR CI wheels are ineligible for a CUTLASS release.

The new pip install 'cuda-coop-cutlass[cu13]' option supplies the CUDA Toolkit 13.4 components used by the compiler. CUTLASS DSL 4.9.0.dev1 rejects provider LTO-IR generated by NVRTC 13.5. Users with a compatible system toolkit can still install the base package.

Maintainer setup

Before the first release, configure protection for cuda-coop-cutlass-v* and create the main-only, reviewer-protected GitHub environments cuda-coop-cutlass-testpypi and cuda-coop-cutlass-pypi. Register NVIDIA/cccl, workflow release-wheels.yml, and the respective environment with each index. The release guide covers staging, promotion, interrupted uploads and recovery from a conflicting file hash.

Validation

  • Rehearsed RC and final tags on the same commit in a disposable clone. Both wheel/sdist pairs passed archive, source revision and strict Twine checks.

  • Replayed the workflow's scan step on an RTX PRO 6000 Blackwell in python:3.12-slim-bookworm with a driver-only host interface. Installed the final rehearsal wheel with its public dependencies, passed pip check, and verified the numerical result on both compiler routes.

  • Passed all 16 CI routing and index tests and actionlint. Exercised the shared uploader with the real gh client and a local GitHub API fixture, including legacy multi-wheel releases, GPU-only and full reruns, a changed wheel, and an off-main source. Replayed the index checks against local responses, including a conflicting hash and publication attestations.
  • The tag-triggered L4 run and live Trusted Publishing exchanges require the merged workflow and configured environments.

    Diff: 342 lines (+256 / -86) across 4 files Reviewer: Jacobfaib Review duration: 1471m
    All Vouch review confidence checks passed
    Residual risk 0.26 = Change Risk (0.65) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.65 · 342 lines diff across 4 files
    0.65
    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.349
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.065
    Real PR Conversation Timeline
    1 comments
    "Review active on #12777"
    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: 65.5% (HIGH) · Higher = larger blast radius
    65.5%
    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: 25.9% · Safe to merge
    25.9%
    Repository