Releasing
How a CALIBER release is cut: version and tag names, what must be green first, building and attaching the wheels, and verifying the release as a tester would.
How a CALIBER release is cut. It is manual on purpose: there is no tag-triggered workflow, because the alpha ships a handful of wheels to a handful of testers and a person should look at the commit before it goes out. Automating it is on the post-alpha backlog.
Current release scope and acceptance are owned by GitHub Project #3 and its linked control issues: D5 / Beta, D9 / Pilot, and D15 / MVP. Repository planning snapshots are historical. No release/tag is created by planning or a readiness verdict. All applicable required checks must execute and pass on the exact candidate and artifacts, with actual independent reviews and decisions required by the control. PR merge follows the shared engineering policy and explicit assignment limits; author self-review is not independent approval. Publishing a release remains a separate explicitly authorized operation.
A release is four wheels and their sdists, plus one named bundle and a checksum file, attached to a GitHub prerelease, on a tag. Nothing is published to PyPI; the install page tells testers to install from the downloaded wheels.
The names
| Thing | Spelling | Why |
|---|---|---|
| Git tag | caliber-v0.1.0a1 | the repository's caliber-v* prefix plus the PEP 440 version the wheels carry |
| Python packages | 0.1.0a1 | caliber-suite, caliber-sdk, caliber-cli, caliber-plugin-sdk, all the same version |
caliber-ui/package.json | 0.1.0-alpha.1 | npm needs semver; the same release spelled that way |
| Release name and bundle | caliber-suite-alpha | the product-level name of the alpha line: the GitHub release title (caliber-suite-alpha: CALIBER Suite Alpha 0.1.0a1) and the bundle file caliber-suite-alpha-0.1.0a1.tar.gz |
The release name is not the release tag. The tag keeps the caliber-v<PEP 440 version> spelling because tests/test_version_lockstep.py and the history of the repository (caliber-v0.0.1) rely on it, and a tag that is not a version cannot carry the next alpha. caliber-suite-alpha therefore names what testers download, and 0.1.0a2 will be released as caliber-suite-alpha again under its own tag.
tests/test_version_lockstep.py fails if any of the four pyproject.toml files, their __version__ constants, package.json or the lockfile's root entry disagree. Bump all of them in one commit.
The alpha is a prerelease. Formal product tags (caliber-v0.1.0, caliber-v1.0.0) are for the roadmap's M4 and M6 gates and are a different thing.
Before you tag
- The version agrees everywhere (the lockstep test above passes on the commit you will tag).
caliber/CHANGELOG.mdhas a dated section for the version, and it links Alpha scope and limitations.- The commit is green. On
main, every check in the ledger passed, and in particularBackend core journey,Alpha journey (browser),Alpha install (wheels, no checkout)andWheel build (with bundled SPA). The full backend suite (it runs after merge, not on PRs) and theDocker stack smokeworkflow are green too; run the latter by hand if the last run is more than a week old:gh workflow run stack-smoke.yml --ref main. - The gap list is closed or its deferrals are written down.
docs/reports/alpha/caliber-alpha-gaps.mdsection 8 is the checklist. Anything left open is named in the release notes, not left for a tester to find. - The licence is one licence.
LICENSE,caliber/LICENSE, the packages' metadata and the README must name the same one before a public tag. - The release notes are written (
docs/reports/alpha/release-0.1.0a1-notes.md): what is in it, what is not, what was verified and how, and the known limitations.
Upgrading from 0.1.0a1
Treat an upgrade as a database change and schedule a maintenance window. This procedure applies to the single-tenant Beta deployment that starts from the 0.1.0a1 alpha schema:
- Stop writers before the backup. Drain or stop the CALIBER server and workflow workers so no requests or jobs can write while the database is being captured. Keep MLflow's backend store and artifact store in the same recovery plan when they are part of the deployment.
- Create and verify a restorable backup. For PostgreSQL, use the supported backup procedure in Backup and recovery, retain the dump and its metadata, and verify that the backup can be restored in an isolated database before proceeding. Do not treat a file copy made while SQLite is being written as a valid backup.
- Install the target release and migrate the CALIBER database. Point
CALIBER_DATABASE_URLat the existing CALIBER database and runcaliber-migratefrom the target release. Run the command once, to completion, before starting the new server; do not edit, reorder, skip, or downgrade shipped migrations, and do not use the server to create tables. - Start the target release and check readiness. Query the canonical readiness endpoint:
curl -sS -H "Authorization: Bearer $CALIBER_TOKEN" \ "$CALIBER_BASE_URL/ajax-api/2.0/mlflow/caliber/readiness" | jqContinue only when the response is HTTP 200 with
data.ready == trueand theschemacheck is ready. Also verify the health endpoint, UI, worker heartbeats, and the deployment's normal smoke journey. Aschemablocker means the migration did not complete or the server is using a different database URL; stop and correct that configuration rather than starting application traffic. - Recover by restoring, not by downgrading. If the migration or smoke checks fail, stop the target release, preserve the logs and migration output, restore the verified pre-upgrade backup, and restart the previous release. Never attempt to reverse a non-reversible migration with manual SQL. After recovery, record the failed target version and investigate it before retrying with a new release artifact.
The migration-parity CI job exercises this path against PostgreSQL, including the frozen alpha migration checks in tests/test_upgrade_from_alpha.py. That test protects the alpha history; it is not a substitute for the backup, restore, readiness, and smoke checks in an operator's deployment window.
Cut it
From a clean checkout of the commit to tag:
git switch main && git pull --ff-only
git rev-parse HEAD # the commit you are about to tag; check it is the green one
git tag -a caliber-v0.1.0a1 -m "CALIBER 0.1.0a1 (alpha)"
git push origin caliber-v0.1.0a1
Build the artifacts from that tag, the way CI's package job does:
git switch --detach caliber-v0.1.0a1
npm --prefix caliber/caliber-ui ci
npm --prefix caliber/caliber-ui run build
rm -rf caliber/src/caliber/ui && mkdir -p caliber/src/caliber/ui && cp -R caliber/caliber-ui/dist/. caliber/src/caliber/ui/
python -m pip install build twine
rm -rf dist && mkdir dist
for pkg in caliber sdk/caliber-sdk sdk/caliber-cli sdk/caliber-plugin-sdk; do
python -m build --outdir dist "$pkg"
done
twine check dist/*
ls dist # four wheels and four sdists
scripts/verify-wheel-boot.sh --python python3.12 dist/caliber_suite-0.1.0a1-py3-none-any.whl
verify-wheel-boot.sh fails if the wheel has lost its bundled UI or its migrations, then installs it alone, migrates, boots it and fetches the UI.
Assemble the named bundle (the four wheels, the four sdists, and the install guide) and the checksums:
VERSION=0.1.0a1
rm -rf bundle && mkdir -p bundle/caliber-suite-alpha-$VERSION
cp dist/* bundle/caliber-suite-alpha-$VERSION/
cp docs/start/alpha-install.md docs/start/alpha-scope.md LICENSE bundle/caliber-suite-alpha-$VERSION/
tar -C bundle -czf dist/caliber-suite-alpha-$VERSION.tar.gz caliber-suite-alpha-$VERSION
(cd dist && shasum -a 256 *.whl *.tar.gz > SHA256SUMS) # the sdists are .tar.gz too; list them all
Publish the prerelease. --latest=false is explicit because a prerelease must not take the "Latest" badge:
gh release create caliber-v0.1.0a1 --prerelease --latest=false \
--title "caliber-suite-alpha: CALIBER Suite Alpha 0.1.0a1" \
--notes-file docs/reports/alpha/release-0.1.0a1-notes.md \
dist/*
Verify the release as a tester would
Download the assets into an empty directory and run the install script against them, in a clean virtual environment, away from the checkout:
rm -rf /tmp/caliber-release && mkdir /tmp/caliber-release
gh release download caliber-v0.1.0a1 --dir /tmp/caliber-release
(cd /tmp/caliber-release && shasum -a 256 -c SHA256SUMS)
scripts/verify-alpha-install.sh --python python3.12 --wheel-dir /tmp/caliber-release
It installs the SDK, the CLI and the server from the wheels, migrates, starts MLflow and CALIBER, then asserts readiness, an admin login, a project, a prompt and a real registry write. If it fails, the release is broken: pull it (below) and fix forward.
Housekeeping
The first tag, caliber-v0.0.1, was published as a normal release with no assets and holds the "Latest" badge. Mark it as a prerelease so that the badge is not claimed by something that cannot be installed:
gh release edit caliber-v0.0.1 --prerelease --latest=false
Pulling a bad release
Never reuse a tag number. Delete the release and the tag, then release the fix as the next number (0.1.0a2):
gh release delete caliber-v0.1.0a1 --yes --cleanup-tag
What is not automated
Version bumps, the changelog, the notes, the licence check and the decision that a commit is good enough. The build and verification steps above are the same commands CI runs, so a future release.yml would assemble them: build on tag, run both verify scripts, and attach the assets.