Release runbook¶
This is the operational procedure for cutting a symmetrix-xl release. The
machinery lives in three dispatch workflows:
Workflow |
Artifacts |
Publication index |
|---|---|---|
|
|
PyPI + TestPyPI |
|
|
PyPI |
|
|
PyPI + TestPyPI |
All three open with the same release-metadata gate
(.github/actions/release-metadata): version agreement across
symmetrix/pyproject.toml, symmetrix/source/symmetrix/__init__.py,
symmetrix/CMakeLists.txt and docs/conf.py, plus a dated CHANGELOG heading.
Dry runs (no publish input) only require the version sources to agree;
publication additionally requires a dated heading, no Unreleased section,
and dispatch from the matching tag (v<version>).
One-time repository setup¶
Trusted Publisher on PyPI for
symmetrix-xlscoped to this repository,release-cpu-wheels.yaml, and thepypienvironment, plus the same fortestpypiif the rehearsal is used.Trusted Publisher on each CUDA add-on project (
symmetrix-xl-cuda12-*,symmetrix-xl-cuda13-*) scoped torelease-cuda-wheels.yamland its environment:pypi-cuda<MAJOR>-<TARGET>for PyPI (for examplepypi-cuda13-sm120) andtestpypi-cuda<MAJOR>-<TARGET>for the TestPyPI rehearsal. The publishing jobs request these environment names in their OIDC claims; a publisher scoped to plainpypiis rejected.GitHub environments
pypi,testpypi, and the per-target CUDA names above, with any required approvers.A self-hosted CUDA runner registered with labels
self-hosted,linux,x64,cudafor qualification (see below).
Cutting a release¶
Close the changelog. Replace
## X.Y.Z - Unreleasedwith## X.Y.Z - YYYY-MM-DD. The date must not predate the latest prior release. NoUnreleasedsection may remain anywhere in the file.Verify the version sources agree locally:
python tools/check_release_metadata.py.Run accelerator qualification (manual gate, before publishing): start the self-hosted runner, dispatch CUDA qualification and HIP qualification (once an AMD runner exists) on the release commit, confirm green, stop the runner.
Tag:
git tag -a vX.Y.Z <commit> && git push origin vX.Y.Z.TestPyPI rehearsal (CPU and CUDA workflows): dispatch each workflow on the tag ref with
publish_testpypi=true. Inspect the uploaded wheels from the TestPyPI project page.Publish: dispatch the three workflows on the tag ref with
publish_pypi=true. Publication jobs use Trusted Publishing (OIDC); no tokens are stored in the repository.Open the next section: add
## X.Y.Z+1 - Unreleasedto the changelog.
Self-hosted qualification runner (crucible)¶
The RTX 5090 host runs a repo-level runner as the gh-runner user. It is
installed but disabled and stopped by default; it only receives jobs from
manually dispatched qualification workflows, which are the sole workflows
requesting the cuda label.
sudo systemctl start actions.runner.bonan-group-symmetrix-xl.crucible # before dispatching
gh workflow run cuda-qualification.yaml --ref <branch-or-tag>
gh run watch
sudo systemctl stop actions.runner.bonan-group-symmetrix-xl.crucible # after runs finish
Never point self-hosted labels at workflows that run fork pull requests.
Notes and known friction¶
Pushing any change under
.github/workflows/requires a credential with theworkflowscope (gh auth refresh -h github.com -s workflow), or ask a maintainer to push the branch.Wheel audits bind the prebuilt-operator catalog to the deterministic plan from
symmetrix/source/symmetrix/foundation_operator_manifest.json(python tools/symmetrix_build.py plan-artifacts --mode r0 --backend cuda --target sm120 ...prints the expected artifact set). Never hardcode artifact counts; a contract test rejects bare integer comparisons.CUDA and HIP qualification steps are manifest-driven: they run from
symmetrixand pass therequired_nodesofsymmetrix/test/*_required_tests.jsondirectly to pytest.Known issue (vendored gpulite, targeted 0.2.1): the sphericart CUDA runtime-compile path resolves NVRTC by prefix-matching loaded modules against
libnvrtc, which also matcheslibnvrtc-builtins.so; when the builtins library is mapped before the real NVRTC library, device-graph construction fails withFailed to load function: nvrtcCreateProgram(anundefined symbolnaming the builtins path). Until the sphericart pin is bumped, work around it on CUDA by preloading a real NVRTC library, e.g.LD_PRELOAD=/usr/local/cuda-13.3/lib64/libnvrtc.so.13.