6.7 KiB
Release checklist
Use this checklist with the Release Packaging Contract. Preparing a release does not publish it. Pushing a Git tag, publishing a GitHub Release, uploading to PyPI, and deploying the documentation are separate operations.
Prepare a candidate
- Choose the previous release and the exact candidate commit. Work in a clean worktree; do not include local configuration, session data, credentials, or unrelated changes.
- Update
project.versioninpyproject.tomland the final source-only fallback innanobot/__init__.py. Private WebUI/TUI package versions are not the Python release version. - Review the changes since the previous tag. Write highlights, upgrade and rollback guidance, contributor acknowledgements, and the full changelog. Verify counts against the final range; commit counts are not merged-PR counts. Coordinate security disclosures separately.
- Run the Python, WebUI, and TUI checks from CI. Confirm the final commit's CI status, not just an earlier PR head. Review installation, configuration, session, and API changes.
- Build in a clean output directory with
uv build --out-dir <artifact-directory>. Do not setNANOBOT_SKIP_WEBUI_BUILD. The build hook bundles the WebUI in the sdist and wheel; the wheel is built from the sdist. - Check the two distributions with
twine check, inspect their contents, and record SHA-256 hashes. Test installation in an isolated environment outside the source checkout, then test upgrading from the previous stable version using disposable configuration and sessions. Do not use a maintainer's live workspace for migration tests. - Prepare the matching documentation PR in
Re-bin/nanobot-web, following itsMAINTAINING.md. Review English and all nine translations, preserve Nightly and previous releases, update the latest-version redirects, and run the complete site quality gate. Pin source links to the checked candidate commit; confirm those source files match the eventual tag before deploying. Never advertise an unpublished version as publicly available. - Review the pinned Bun/OpenTUI licenses, corresponding-source materials, and relinking
instructions now, not after pushing the tag. Verify the exact upstream revisions are
retrievable and the runtime versions match the lockfile and notices. Obtain the maintainer's
commitment to honor
tui/SOURCE_OFFER.mdfor its entire stated period; tests cannot grant it. - Build all five native TUI targets using the same scripts as the publication workflow. Include ad-hoc signatures for macOS before packaging. Verify every archive's checksum, manifest, executable architecture, required notices/licenses, and embedded source contents. Run platform-specific smoke tests where supported; record cross-compiled-only targets as such and link exact-head CI evidence instead of claiming native execution everywhere.
- Merge the release-preparation PR only after its current checks and reviews pass. Confirm the
merged source tree matches the tested candidate; if it does not, rebuild and recheck before
tagging. Reconcile the final changelog and documentation source references. The tag must
point to this verified commit, not an unchecked later
maintip.
TUI preflight without a release tag
Use Bun 1.3.13 and a clean checkout. The local build and packaging scripts do not require a
tag or GitHub Release. Run targets sequentially because native dependency preparation modifies
the shared node_modules directory:
cd tui
bun install --frozen-lockfile
bun scripts/prepare-target.ts <target>
bun run build -- <target>
# For darwin-* only: ad-hoc sign dist/nanobot-tui-<target> before the next steps.
bun scripts/release-notices.ts <target>
python3 scripts/package-release.py <target>
Repeat for darwin-arm64, darwin-x64, linux-arm64, linux-x64, and win32-x64.
On macOS, use codesign --force --sign - <binary> and verify the signature. The publication
workflow uses pinned rcodesign on Linux. Keep the ten .zip/.zip.sha256 outputs in a
candidate-specific directory, alongside the two Python distributions and provenance manifest.
Do not include local configuration, instance backups, or test environments in upload selections.
Keep an artifact manifest with the source commit, version, filenames, hashes, checks performed, and any remaining release gates. Rebuild and recheck if the packaged source changes.
Publish, with maintainer approval
- Confirm all pre-tag gates above are complete. Create and push exactly
vX.Y.Z; do not move or reuse a published version tag. - Create the matching GitHub Release. A draft may be used while assembling its attachments.
Pushing the tag alone does not run
Publish Terminal UIor upload anything to PyPI. - Attach the already verified five TUI archives and their
.sha256files, after confirming the tag's packaged sources match the artifact manifest. Verify the uploaded bytes match their preflight hashes; never upload a naked executable. - If instead rebuilding through Publish Terminal UI, use
tag=vX.Y.Zand confirm the already completed compliance review. Wait for all five targets and repeat artifact checks on those new outputs. Do not substitute their new bytes under the old artifact hashes. - Make the GitHub Release and all TUI attachments publicly available. Verify their public downloads before publishing Python, since installed clients fetch version-matched assets.
- Upload only the checked
nanobot_ai-X.Y.Z.tar.gzandnanobot_ai-X.Y.Z-py3-none-any.whlto PyPI. Do not upload stale files from a shareddist/directory. This repository has no automatic PyPI publication workflow. - Verify installation from PyPI, bundled WebUI startup, and the matching TUI download in
clean environments. Merge the prepared wiki PR only when the stable package is available:
merging its
maindeploys the site automatically. Confirm all localized/docs/latest/routes select the new version and old version links still work. - Publish the release announcement and add the dated entry to Release Archive. Complete any coordinated advisory publication and reporter notification. Record links and completion status in the release tracking issue.
If a gate fails
Do not publish to PyPI while a required TUI artifact or verification is missing. Keep the
documentation's public latest on the previous stable version until the new version is usable.
If a published package needs a correction, prepare a new version; do not silently replace
the code behind an existing release tag. Stop all old processes and follow the documented
session rollback procedure before downgrading a migrated installation.