Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Leave packaging and signing to the release workflow

d29e041ab06c93ce8b83047c4daa3bec33eb1c5d · Keenan Nemetz · 11d ago · parent 0be96824

Leave packaging and signing to the release workflow

Branch CI built the .deb, .rpm and pacman packages, wrote the apt, yum and
pacman repositories, signed all of it with a throwaway key and verified the
signatures. Every push paid for the release path even when nothing near
packaging had changed, and the same ground is covered by release.yaml on
the tag.

Those steps are gone. A maintainer exercises them without publishing by
running the release workflow against a tagged checkout
(`vole workflow run release`), which builds in the release image, uploads
nothing, and says so when RELEASE_GPG_KEY is not available. The installer
and deployment-file checks stay: they are shell-only checks of files a
release consumes, and they are cheap.

The verify image drops the tools only those steps used: dpkg-dev,
createrepo-c, pacman-package-manager, makepkg, libarchive-tools, zstd, rpm
and rpm-common. gnupg stays for the installer check's key fingerprint.

A local run went from the release-path steps' multi-minute timeouts to
2m37s end to end.

RELEASING.md +21−10

@@ -207,16 +207,27 @@ the release publishes that committed file verbatim so the pin is exact. Rotating
207 207 the release key therefore means updating both constants in the same change;
208 208 `scripts/check-install.sh` fails when they disagree.
209 209
210 ## Package verification in CI
211
212 `.vole/workflows/verify.yaml` builds and packages one architecture on every
213 branch push using the same `packaging/nfpm.yaml`, builds the apt, yum, and
214 pacman metadata from those packages, signs them with a throwaway key generated
215 inside the job, and verifies the signatures with the exported public key.
216 Definition, path, metadata, signature, and unit errors therefore fail before a
217 release tag.
218 `scripts/check-deploy.py` also renders and validates the cloud-init deployment
219 files.
210 ## Package verification
211
212 Branch CI (`.vole/workflows/verify.yaml`) does not build the packages, the
213 repository metadata, or the signatures. Those are release-path steps, they are
214 slow, and they only run on a tag. `scripts/check-install.sh` and
215 `scripts/check-deploy.py` stay in verify because they are shell-only checks of
216 files a release consumes: the installer's pinned key, and the cloud-init
217 deployment files.
218
219 To exercise the release path without publishing anything, run the release
220 workflow against a tagged checkout:
221
222 ```sh
223 git switch --detach v0.2.0
224 vole workflow run release
225 ```
226
227 It runs the build in the release image and uploads nothing. With
228 `RELEASE_GPG_KEY` available it signs; without it, it leaves the tree unsigned
229 and says so. That is the manual smoke test for package, repository, signature,
230 and unit errors before a tag is pushed.
220 231
221 232 See [Packages and upgrades](docs/packaging.md) for the paths and systemd units
222 233 the packages install, and [Install](docs/install.md#add-the-repository-by-hand)