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.
Run and fix the test suite on macOS
30672859d26d65bc8a3075d6d075c1ac594eb924 · Keenan Nemetz · 7d ago · parent 6c694920
Run and fix the test suite on macOS Run the unit suite on a Mac and fix the three platform bugs only runtime execution can reveal: - BSD wc -l pads its count, so a secret-log assertion that matched busybox output failed. Strip the padding in the step. - os.UserCacheDir ignores XDG_CACHE_HOME on macOS, so the cache tests pointed at a directory the run never used. Override HOME and ask UserCacheDir. - A Unix socket path in t.TempDir() exceeds macOS's 103-byte limit. Use a short nameless directory instead. Add scripts/check-macos.sh, the one command a maintainer runs on a Mac before signing off a macOS artifact, and document it in RELEASING.md.
RELEASING.md +20
| @@ -232,3 +232,23 @@ and unit errors before a tag is pushed. | |||
| 232 | 232 | See [Packages and upgrades](docs/packaging.md) for the paths and systemd units | |
| 233 | 233 | the packages install, and [Install](docs/install.md#add-the-repository-by-hand) | |
| 234 | 234 | for the client commands. | |
| 235 | |||
| 236 | ## macOS sign-off | ||
| 237 | |||
| 238 | CI runs every job in a Linux container, so a release has never executed the test | ||
| 239 | suite on macOS. The macOS binaries (`vole-darwin-amd64` and `vole-darwin-arm64`) | ||
| 240 | are compiled by the release but not exercised by it, so a platform mistake in a | ||
| 241 | server path, a socket, or a client check would ship to users undetected. | ||
| 242 | |||
| 243 | Before a release that carries a macOS binary is published, run the macOS check on | ||
| 244 | a Mac: | ||
| 245 | |||
| 246 | ```sh | ||
| 247 | scripts/check-macos.sh | ||
| 248 | ``` | ||
| 249 | |||
| 250 | It runs the unit suite and an end-to-end pass over the features a Mac user first | ||
| 251 | touches: init, account and repository creation, clone and push over the built-in | ||
| 252 | SSH listener, an issue, a change request, a release attach, a pages site, and | ||
| 253 | `db check`/`db backup`. Do not publish a macOS artifact that has not passed this | ||
| 254 | check. See [Development](DEVELOPMENT.md) for the individual commands it runs. | ||