The release workflow¶
TL;DR
.github/workflows/release.ymlvalidates the tag, runs the model-free retrieval eval gates, builds the UI and the Python distributions, and publishes them to PyPI with trusted publishing. The full eval is the manual Eval workflow (eval.yml).- Each image variant is built, budget-checked and scanned on both architectures. Images are pushed only when all six scans and the eval pass, then joined into signed multi-arch indexes.
- A tag runs the workflow file of the tagged commit: release a fix from a new tag.
- A manual run is a dry run that publishes nothing. Run one before tagging when the workflow, the Dockerfile, the eval or a size budget changed.
What the release workflow does¶
.github/workflows/release.yml (runners: CI/CD and runners):
- meta: validates tag shape and branch, derives version/channel.
-
eval: the model-free gates of the retrieval eval (Retrieval evals), which pull requests do not run: BM25 on SQLite and on ParadeDB's pg_search, against the
baseline.jsonof the tagged tree. A few minutes.pypi-kernelandimageneed it, so a failing gate publishes nothing.The rest of the eval runs only in the manual Eval workflow (
eval.yml): the same gates, the suite's end-to-end tests (pytest -m eval), the ingestion and retrieval benchmarks against their recorded runs, and hybrid and rerank on the default local models (report-only). Start it before a release that touches retrieval or chunking: Actions → Eval → Run workflow, orgh workflow run eval.yml --ref develop. The release does not wait for it.integration (
integration.yml, Fast and integration tests) runs only in a dry run started with the inputintegration(Dry run). A tag push skips it, and no job needs it. It covers:- the integration pytest and behave suites on PostgreSQL, PgBouncer, Supabase, libSQL and every search and vector server (on the self-hosted runner, so Pinecone Local's cases skip there);
- the Docker images' build, scan and smoke tests;
- uvx, the upgrade from the previous release and the browser end-to-end test.
- web:
pnpm build. - python: bundles the UI into the wheel,
uv build --all-packages,twine check, runs the wheel the wayuvxwould. - pypi-kernel, then pypi:
uv publishwith trusted publishing (OIDC, no stored token). - image-scan (six jobs:
base,ai,local×amd64,arm64): - each variant is built natively on a runner of its architecture (
ubuntu-24.04, the self-hosted ARM64 runner; inself-hostedmode amd64 is cross-built there and checked with--no-python); - checked against its size budget (
deploy/check_artifacts.py); - and scanned (see Image scan).
So both architectures are checked and scanned, not only the build host's. 7. image (the same six), only when all six scans and the eval pass: - each is built again from the scan's cache. The build arguments are the same (
DEBIAN_REFRESH, the date, andCREATEDare set once in meta), so these are the layers that were scanned; - with SBOM + provenance attestations; - pushed by digest only, without a tag. 8. image-publish, once per variant:docker buildx imagetools create- joins the amd64 and arm64 images (with their attestations) into one multi-arch index; - tags it (suffix-ai/-local); - puts the title, description and licenses on it as annotations; - checks it holds exactlylinux/amd64andlinux/arm64; - signs it with a keyless cosign signature.In
hybridmode nothing runs under QEMU; inself-hostedmode the amd64 legs use it for the runtime stage'sapt-getonly. 9. github-release: creates or updates the release with the distributions.
The workflow file of the tagged commit
Pushing a tag runs the workflow file of the tagged commit, and so does Re-run jobs on an old run. A tag made before a workflow fix keeps failing the old way. Release from a new tag on a commit that has the fix.
Dry run¶
A manual run is a dry run, from any branch, and publishes nothing:
gh workflow run release.yml --ref develop # or a feature branch with workflow changes
| In a dry run | Jobs |
|---|---|
| runs | meta (without the tag checks), eval, web, python and all twelve image jobs (the six image builds with push=false, no registry login) |
skipped (if: github.event_name == 'push') |
pypi-kernel, pypi, image-publish, github-release |
with the input integration |
integration too: the integration and end-to-end jobs, with the Python job on the self-hosted runner |
It builds version 0.0.0.dev<run number>.
- With
integration:gh workflow run release.yml --ref develop -f integration=true. No other job waits for the integration jobs; when one fails, the run fails. - GHCR retention still starts after it (a
workflow_runtrigger fires on every completed Release run, from the file on the default branch) but skips its jobs when the run was not a tag push.
When to run one
Run one before tagging when the release workflow, the Dockerfile, the eval or a size budget changed. The gates that pull requests do not run (the eval, arm64 budgets and scans) fail here instead of on the tag.
What it cannot check:
- the publishing itself (PyPI trusted publishing, the index, the signature);
- the other runner mode: it runs on the runners of the current
RUNNER_MODE, so a dry run inhybridmode does not exercise the cross-built amd64 legs ofself-hostedmode.
One-time setup¶
-
PyPI trusted publishers (done 2026-11-03): owner
SirCypkowskyy, repositoryExactDocs, workflowrelease.yml.Project Environment exactdocs-kernelpypiexactdocspypi-exactdocsPyPI allows only one pending publisher per repository + workflow + environment, hence two environments and two publish jobs. 2. GitHub environments
pypiandpypi-exactdocsexist and accept deployments from tagsv*only. Optionally add yourself as a required reviewer on both. 3. ghcr.io package: after the first image push, set the package visibility (private by default) and link it to the repository.