Releasing ReductionBounds

Copy Markdown View Source

Start from a clean checkout with the release check toolchain. Keep the project version, dependency requirement in the installation guides, changelog and tag aligned. Review the resolved Lynx version and compare the Lean toolchain files before running checks.

Validate the candidate

mix deps.get --check-locked
cmp lean-toolchain deps/lynx/lean-toolchain
export ELAN_TOOLCHAIN="$(cat lean-toolchain)"
lean --version
lake --version
mix check
mix test
mix docs
mix hex.publish --dry-run --yes
scripts/check_hex_package.sh

Review the generated documentation under doc/. Check the installation instructions, links, source references and math in the examples. Source links use the release tag and resolve once it is pushed.

Use mix hex.build --unpack to inspect the package file list and metadata, including the Lean proof sources, runtime dependencies and documentation. Hex resolves relative links in the package README against the archive. HexDocs also links to the archive preview of each guide. Keep the guides and their linked benchmark data and logs in the package.

The smoke script checks that the unpacked archive includes the README and tracked documentation files. It then creates a temporary consumer project using that archive. It checks the Getting Started example with cold and warm proof caches, verification of a compiled module, and rejection of a bad proof and an unsupported target. The consumer resolves its own dependencies.

Publish the validated commit

Confirm package ownership and authenticate with Hex before the first publish. Create and push the version tag for the validated commit, then run mix hex.publish from that commit. Review the package and documentation shown by Hex before confirming publication.

Once Hex and HexDocs show the release, run scripts/check_hex_package.sh --published from the release checkout. Check the package README links, versioned docs, HexDocs file preview links and package metadata. Publish matching GitHub release notes and record the release links and check results in the tracking issue.

Report defects through the repository issue tracker. For a package defect, prepare and validate a corrective release. For a documentation-only defect, the maintainer can update the rendered HexDocs for the existing release. Changes to files inside the published package require a package release.

See the Hex publishing guide for account setup, publishing and recovery options.