Distribution manifest¶
Every file VMAFx ships, and every channel that carries those files, is described once in packaging/manifest.toml. scripts/release/distribution.py writes each channel's recipe or metadata from that file, and CI fails when the manifest disagrees with the tree. The decision record is ADR-3317.
The GitHub release and planned integrator pack carry both native-linux-x86_64 (individual ELF files) and native-linux-arm64 (vmafx-linux-arm64.tar.gz). Both are CPU builds with a glibc 2.28 floor, Sigstore signatures and native SBOM coverage. See the download guide.
Quick start¶
Check the manifest against the tree (runs in a second, no network):
Write every channel's metadata for a release:
python3 scripts/release/distribution.py generate \
--version 1.0.0 \
--source-sha256 <sha256 of v1.0.0.tar.gz> \
--winget-sha256 <sha256 of vmafx-tester-windows-x64-v1.0.0.zip> \
--out /path/to/output
The output directory gets:
| Path | Channel | Contents |
|---|---|---|
homebrew/vmafx.rb | Homebrew | formula building the source archive with Meson |
conda-forge/recipe.yaml | conda-forge | rattler-build recipe (schema version 1) |
winget/VMAFx.VMAFX*.yaml | winget | version, default-locale and installer manifests (schema 1.12.0) |
index/<channel>.json | every channel | state, tracking issue and the files the channel carries for that version |
Run every channel's own linter on the generated files (needs Docker; pulls two digest-pinned images):
scripts/release/lint-distribution-recipes.sh # temporary directory
scripts/release/lint-distribution-recipes.sh --keep out # keep the files
The script runs brew style and brew audit --strict offline in a throwaway tap, and conda-smithy recipe-lint --conda-forge in a staged-recipes layout. Set PYTHON to pick the interpreter (it needs PyYAML).
The manifest¶
An artifact entry says what the file is and where it comes from:
[artifacts.tester-windows-x64]
kind = "tester-bundle"
platform = "windows-x64"
abi = "none"
backends = ["cpu"]
licence = "EUPL-1.2 AND BSD-2-Clause-Patent AND ..."
licence_record = "windows-zip"
files = ["vmafx-tester-windows-x64-v{version}.zip"]
signing = "sigstore"
sbom = "vmafx-tester-windows-x64-v{version}.zip.spdx.json"
producer = { workflow = "windows-tester-bundle.yml", job = "Build and test the zip (Windows x64)" }
backendsis any ofcpu,cuda,sycl,hip,metal; the generated formula and recipe pass the matching-Denable_*Meson options.licenceis an SPDXANDexpression. It must equal the licences of the record named bylicence_recordintools/rc1-tester/image/licensing.json, or the licence field of the file named bypackage(pyproject.toml,Cargo.toml). Every licence needs its text inLICENSES/.filesmay use{version}(1.0.0-rc.4) and{pep440}(1.0.0rc4).producernames the workflow and the job name that build the file, or{ forge = "tag-archive" }for the forge's source archive. An artifact no pipeline builds yet carriestracking = "#<issue>"instead.
A channel entry lists artifact keys:
[channels.winget]
state = "planned"
tracking = "#2319"
artifacts = ["tester-windows-x64"]
metadata = ["winget-manifests"]
state is published (the release pipeline uploads it) or planned (an issue publishes it, named in tracking).
What the check refuses¶
distribution.py check exits 1 and names the entry for each of:
- a channel naming an artifact the manifest does not define, or one whose
trackingsays no pipeline builds it yet; - a licence that differs from its licensing record or package manifest, or has no text in
LICENSES/; - a producer workflow that does not exist, or a job name it does not define;
- an artifact with both
producerandtracking, or neither; - an unknown backend, kind or key;
- a planned channel without a tracking issue.
It exits 2 when the manifest cannot be read.
Where it runs¶
- Pre-commit hook
distribution-manifest: the check and the unit tests inscripts/release/tests/test_distribution.py, on any change topackaging/, the generators, the licensing record,REUSE.toml, the package manifests or the producer workflows. - Required job
Release Script Contract: the check on every pull request; the channel linters when the pull request touches the manifest, the generators, the licensing record orREUSE.toml(otherwise the step prints why it skipped). - The winget schemas in
packaging/schemas/winget-1.12.0/are vendored from microsoft/winget-cli and held to their hashes byscripts/docs/check_vendored_assets.py.
Homebrew tap¶
Users install VMAFx with Homebrew from the Vidiko tap:
The formula reaches the tap through the release (ADR-3387). For every final version (no -rc suffix) the homebrew-tap job in supply-chain.yml, after the release assets are attached:
- downloads the source archive that
python3 scripts/release/distribution.py source-url --version X.Y.Znames and hashes it; - writes
Formula/vmafx.rb(the generated formula below the tap's licence header) withdistribution.py homebrew --version X.Y.Z --source-sha256 <digest> --out <dir>; - runs
publish_homebrew_tap.py, which opens a pull request onVidiko/homebrew-tapfrom branchvmafx-X.Y.Zwith a signed-off commit. The tap's own checks decide the merge; nothing is pushed to its default branch.
Preview what the job would do, without changing the tap (needs a forge token that can read the tap):
python3 scripts/release/publish_homebrew_tap.py --tap Vidiko/homebrew-tap \
--version X.Y.Z --formula <dir>/Formula/vmafx.rb \
--signoff "Name <address>"
It prints dry run: would branch ..., unchanged: ... when the tap already holds that formula, or the refusal (exit 2) for a bad version, sign-off, formula or forge answer. --apply opens or updates the pull request.
The job mints its token from the vmafx-release-bot app, which needs an installation on the Vidiko organisation with contents and pull-request write on homebrew-tap; without it the token step fails and names the missing installation. apt and rpm repositories are planned for 0.2.0.
Adding a channel or an artifact¶
- Add the artifact with its
producer(ortracking) and licence. - Add it to the channels that carry it.
- Run
python3 scripts/release/distribution.py checkand the linter script. - Publishing a planned channel means changing its
statetopublishedand callinggeneratefrom the release workflow; Homebrew, conda-forge and winget do so under #2319, crates.io under #2320, npm under #2248 and the integrator pack under #2146.
Related documents¶
- Publishing artifacts: which pipeline builds each file.
- Release: the release process.
- Licence provenance check.