Releasing¶
Use just release patch for the final release gate, or packaging/release for
individual stages. It requires Python 3.11+ and an
authenticated GitHub CLI (gh 2.97+). Run it from the repository; it retains
downloads, verification reports and attestations under .cache/releases/.
Releases in this owner-maintained repository do not require a pull request. Use ordinary commits and a release branch when isolation is useful. The project owner chooses the scope and authorizes publication. Creating or verifying a draft does not authorize publishing it.
The current workflow is validation build → draft build → publish that draft. The first two stages each build and test the five packages. Publication performs no build. Removing the duplicate build remains a separate workflow improvement; the commands below automate the existing procedure without weakening its checks.
Prepare the source¶
- Choose the release scope and exact backend pin. Do not wait for unrelated
features or drain
todo.mdbefore a bug-fix release. - Commit the selected changes and finish the version/changelog bookkeeping.
Date a final release entry and link each change to its implementing commit.
Every commit in the release range must appear in a bullet's trailing links,
including merges, refactoring, documentation, and release preparation.
Leave the next development entry open. The package version is passed through
Meson's
release-versionoverride; an RC is useful only for actual UAT. - Push the source branch. The final gate watches ordinary Test and Documentation CI for the exact source SHA before package validation. It dispatches missing workflows, including Documentation when its push path filter skipped the release commit. Successful hosted compiler, sanitizer and stub results count; do not repeat that full matrix locally by default. Iterate with focused checks, and test the intended user workflow.
A patch release may start from its published base in a separate worktree, such
as release/0.8 from v0.8.0. Preserve pending master work. The release helper
uses the pushed source's changelog and backend pin, so unrelated local edits do
not affect release verification. It never commits source changes or pushes
master automatically.
Changelog coverage¶
The final gate, validation, draft creation and publication check every linked commit against the complete history since the highest earlier published stable release that is an ancestor of the selected source. Drafts, RCs, later versions and releases on unrelated maintenance branches cannot become that baseline. For the first release in a history, every reachable commit is checked.
Every bullet needs valid trailing links to this repository. Those links must identify commits in the release range, and every commit in that range must be linked by at least one bullet. A bullet can group multiple commits. Missing coverage reports hashes and subjects; unknown, unrelated or already-released commit links fail. The history query is paginated and checked for completeness.
The release-preparation commit cannot contain its own hash. Give its bullet this exact placeholder link; the renderer replaces it with the selected source's actual abbreviated/full hash before verification and publication:
- Prepare release notes and version bookkeeping.
([release](https://github.com/toppk/revenant/commit/RELEASE_SOURCE_SHA))
This covers the source commit explicitly; no commits are automatically exempt.
When rendering these notes directly, set RELEASE_SOURCE_SHA to the selected
full commit hash. The release helper and draft workflow supply it automatically.
Check prepared, pushed notes without starting CI, building, tagging or publishing:
packaging/release check-notes 0.9.1 --ref master
Historical verify operations retain their original notes/hash/provenance checks;
the new coverage requirement does not retroactively invalidate immutable releases.
One final-gate command¶
Once the release notes, version bookkeeping and source are committed and pushed:
just release patch
patch, minor and major choose a version relative to GitHub's latest
published stable release. They do not edit the changelog or source version;
the corresponding dated changelog entry must already exist in the pushed source.
An explicit version also works, including an RC:
just release 0.9.1
just release 0.10.0-rc.1 --ref release/0.10
The default source is pushed master. Local uncommitted changes are excluded;
the command neither commits nor pushes them. It may be started immediately after
the push: when no CI run is listed yet it waits up to a minute for one before
dispatching, because a duplicate Test dispatch cancels the push-triggered run. It checks publishable notes and
release immutability first, watches exact-source CI, runs package validation,
creates and verifies the draft, and displays the verified notes and draft URL.
It then asks Publish VERSION? [y/N]. Only y or yes publishes; an empty answer,
n, EOF or Ctrl+C leaves the draft unpublished. Publication verifies the draft
again, requires it to match what the prompt presented, and verifies the public
assets against the approved bytes. This prompt supplies the owner's explicit
publication approval.
For unattended draft preparation, with no prompt or publication:
just release 0.9.1 --draft-only
The command saves progress under .cache/releases/sessions/, namespaced by
repository and version, and locks the session against concurrent invocations.
After an interruption or a declined publication, rerun the printed command with
the explicit version. It reuses the recorded workflow IDs and re-verifies
their results; it does not dispatch replacement package builds. If publication
already happened before a connection failed, resuming verifies the public assets
against the saved approved hashes instead of trying to publish again.
If a package dispatch response was lost before its run ID could be saved, the command stops rather than guessing or dispatching twice. Inspect Actions and supply the exact run ID:
just release 0.9.1 --validation-run VALIDATION_RUN_ID
just release 0.9.1 --draft-run DRAFT_RUN_ID
A changed source cannot silently replace the recorded candidate. Before any
release tag exists, --restart archives the old session and starts validation
for newly prepared source. After tagging, resume the recorded source or choose
a new version. Failed jobs are not automatically rerun; inspect them and use the
recovery guidance below. The individual stage commands remain available.
Three release commands¶
For a prepared and pushed release/0.9 branch:
packaging/release validate 0.9.0 --ref release/0.9
This checks ordinary CI and release notes, dispatches package validation at the selected source, monitors that run, and verifies its downloaded manifest and five packages. It prints the exact run ID and the next command.
packaging/release draft 0.9.0 --run VALIDATION_RUN_ID
This verifies that specific successful validation run, its version, source, workflow, backend pin, attempt and assets. It checks notes and CI before creating the annotated tag, then starts the current draft-build workflow. It waits and verifies the completed unpublished draft: all six files, exact source/tag, notes, hashes and provenance. Existing tags must identify the same commit; an existing release is refused. Nothing is published.
Review the draft and obtain the project owner's explicit publication approval. Then run the command printed by the draft step:
packaging/release publish 0.9.0 --run DRAFT_RUN_ID
This verifies the draft again, checks that the tag and draft have not changed, publishes it, downloads the public assets, verifies their provenance and compares all six files against the verified draft. Stable releases become latest; RCs remain prereleases and are not latest. Publication does not rebuild anything.
Use explicit run IDs. Never select an artifact set by “latest run.” The helper rejects failed, incomplete, foreign-workflow or foreign-repository runs, missing or expired downloads, incorrect versions, mismatched identities and changed assets. It stops on an error; it does not automatically redispatch or publish.
validate and draft accept --no-wait to dispatch and return. This skips their
waiting and post-build verification. After validation finishes, draft verifies
its artifacts. After a draft finishes, use verify --state draft before review.
The next stage still requires a successful run. Interrupted monitoring does not
cancel the GitHub run. Keep its printed URL/ID and inspect or resume using the
commands below instead of starting another build.
Verification and recovery¶
Verify an existing draft or published release with one command:
packaging/release verify 0.9.0 --run DRAFT_RUN_ID --state draft
packaging/release verify 0.8.1 --run 38361193910 --state published
The run must be the draft build, whose manifest and attestations identify the
attached release assets. An earlier validation run identifies a different build.
Each verification retains a fresh download, a report.json and the six verified
provenance results under .cache/releases/. Override the location with the
global --state-dir DIRECTORY option. --repo OWNER/REPO selects the repository;
the helper binds every API lookup and attestation to it.
- For a genuine build/test failure, inspect the retained job logs, commit a focused correction and validate the new SHA. Source or packaging input changes require a new candidate build.
- For a transient runner or download failure with unchanged source, rerun only the failed jobs. Do not change a dependency hash to accept an incomplete file. Do not rerun successful unrelated suites. A new successful run attempt needs a manifest from that same attempt. If assembly already completed, use a fresh validation run instead of reusing its old manifest.
- For an interrupted command, inspect the printed run URL before retrying.
gh run watch RUN_ID --exit-statusresumes monitoring without redispatching. - For an incomplete unpublished draft, inspect it before deleting or rebuilding. The helper refuses to overwrite a release. Keep the tag at the same commit; a source change needs the next candidate/version.
- For a published defect, fix forward with another RC or patch version. Never move a published tag, replace assets or delete/recreate the release.
Repository setup is a one-time prerequisite: enable release immutability and
protect v* tags against updates and deletion. The publish command requires
immutability to be enabled, and public verification requires an immutable
release. Attach all assets before publication.
After publication, carry the shipped changes and release notes onto master through ordinary commits/merges, preserving unrelated working changes. Check that the published tag is in master’s ancestry and that the shipped behavior remains present. A temporary release branch/worktree may then be removed after checking for unreleased work. Keep a maintenance branch when it has an explicit ongoing purpose. No PR is required for reconciliation.
What the workflow builds and checks¶
The dispatch-only Release workflow builds five native packages: Linux x86_64 and
aarch64 tarballs, Debian/Ubuntu .deb, Fedora .rpm, and Arch .pkg.tar.zst.
Each package path runs the complete real-backend suite and the no-skips gate,
then checks the extracted or installed binaries and desktop integration.
packaging/release-manifest requires exactly those five package files and records
their hashes, version, source/workflow SHA, backend pin and original run/attempt.
Draft mode attests these packages and the manifest, generates linked notes, and
attaches all six files before creating the unpublished release. Both modes keep
package artifacts, manifests and diagnostic logs for 30 days; logs are not assets.
The workflow shares pinned font fixtures and architecture-specific Zig caches.
tools/fetch-libghostty selects an exact commit, currently the libghostty-vt
1.0.1 tag. packaging/install-zig checks the pinned compiler (ZIG_VERSION in
both workflows; libghostty-vt 1.0.x requires Zig 0.17) against Zig's published
checksum. The synthetic sbix fixture
is tied to FONTTOOLS_VERSION; update its manifest and the version together.
The x86_64 CPU floor is x86_64-v3 (AVX2); aarch64 targets baseline ARMv8.
The low-level packaging/release-notes, release-manifest and release-version
tools remain available to CI and for debugging. Routine releases use the single
packaging/release entry point rather than temporary scripts or manual hash loops.
Build once, promote by run ID (future work)¶
The current scripts automate both existing builds; they do not implement artifact promotion. To remove the duplicate build, validation must attest all six assets, then a promotion workflow must verify the selected successful run, source, workflow, version, exact assets, hashes and attestations before tagging and attaching those same bytes. Keep the original build run/attempt in the manifest. Test expired/missing artifacts, wrong identities and modified bytes before adopting promotion. Never weaken verification merely to save a rebuild.
0.10.0 retrospective¶
0.10.0 moved the terminal core to libghostty-vt 1.0.1 and Zig 0.17, and shipped idle scrollback compression, CSI 8 t resizes, DECRQCRA and the backend version report. Experimental program-status presentation stayed uncommitted in the working tree; the release commits were cut around it.
The exact release source was 77ee27f32a1776a916fe36c9476a74d5fd03724d.
Package validation
(about 17 minutes) and the
draft build
(about 28 minutes) passed. The helper verified the six draft assets and their
provenance, published after owner approval, and confirmed the public downloads
matched. This was the first release through just release.
It took three source candidates. Each failure was found by hosted CI after the push, and each added commits that then needed changelog links:
- The gate ran seconds after the push, before GitHub listed the push-triggered
Test run. It dispatched a duplicate, which cancelled the real run through the
workflow's
cancel-in-progressgroup, and then stopped on a 404 for the pending run's job list. The gate now waits up to a minute for a run to be listed before dispatching, and treats a missing job list as no progress yet. - Documentation failed: new
todo.mdchecklist items had no feature mapping.python -m unittest discover -s tdn/testscatches this in seconds and belongs in the local checks before any push that touchestodo.md,HANDOFF.mdor the dispatch list. ubuntu-latesthad moved from 24.04 to 26.04 since 0.9.0, and three tests fail there on every run:xvfb-pty-closed-stdiounder GCC, andxvfb-command-lineandxvfb-dynamic-colorsunder AddressSanitizer. Test and package jobs are pinned toubuntu-24.04, which also keeps the tarball and.debbaseline. The 26.04 port istodo.mdR8.
Lessons: name runner images explicitly rather than tracking latest for jobs
that build or test; let ordinary CI pass on the pushed source before finishing
the changelog, so a correction does not need a chain of link-only commits; and
the release-preparation bullet can link several commits when it does.
Duplicate validation/draft builds remain the largest source of release latency.
0.9.0 retrospective¶
0.9.0 ships theme reload, safe signal handling and window capability discovery, the optional theme setter, xterm core/themed cursor parity, and the shell-exit fix. The libghostty pin includes the OSC 7501 C callback; experimental downstream program-status presentation is excluded. The release proceeds from master through the helper commands above, preserving uncommitted experimental work.
The exact release source was 8f8aef4a9c8c7ad1bf25ddf9620481bcc873dbdb.
Ordinary CI, package validation,
and the draft build
passed. The helper verified all six draft assets and provenance, published them
after owner approval, and confirmed that public downloads matched. No PR or
temporary verification script was needed. Waiting for ordinary CI still required
separate orchestration; the final-gate command above now includes that wait.
Duplicate validation/draft builds remain the largest source of release latency.
0.8.1 retrospective¶
0.8.1 shipped the PID/WINDOWID fix from v0.8.0, retaining its backend pin.
The user passed local SessionLaunch acceptance testing. Ordinary CI and
package validation
passed; the draft build
produced the published assets. Draft and public downloads were verified,
including byte-for-byte equality and attestations.
An unnecessary PR duplicated CI. Its ASan job received a truncated FontTools
wheel; the bad hash matched a prefix of the valid wheel, and the failed job
passed on retry. Avoid PRs for routine owner releases. The repeated manual
verification commands and /tmp/verify-*.py scripts motivated the repository
helper above. Package builds still run twice until promotion is implemented.
0.8.0 retrospective and next-release changes¶
0.8.0 established validation before tagging, full native package/install checks, immutable tags/assets, manifests, attestations and draft-first publication. Validation exposed portability and dependency defects before publication.
The final validation took 14m44s (run 35826352413); draft preparation rebuilt the same source for another 12m19s (run 35863346353). Finishing notes and source identity before validation, using the intended final version, and reusing retained artifacts through explicit promotion remain the lessons. The duplicate-build problem persisted through 0.8.1.
Building packages locally¶
The individual packaging scripts work outside CI with the pinned backend, fixtures, Zig, and native build/test dependencies installed:
packaging/build-tarball 0.9.0
packaging/build-deb 0.9.0
packaging/build-rpm 0.9.0
packaging/build-arch 0.9.0
python3 tests/release-packaging.py
packaging/release-version maps canonical 0.9.0-rc.1 to Debian/RPM
0.9.0~rc.1 and Arch 0.9.0rc1; the final version is 0.9.0. Binaries always
display the canonical application version.
Known gaps¶
- Build-once promotion is not implemented.
- Packages do not depend on xterm. Revisit dependencies if app-defaults are read from the distributor's xterm package instead of Revenant's supplied data.
- No macOS or Windows packages.