Artifact f14e037e1ee6403175a211b531d953ebb29b2ef12f2fcf85985beb16efc33300:
- File
docs/ci.md
— part of check-in
[377cccd611]
at
2026-11-18 21:27:35
on branch ci
— Add CI: the full suite on every push, on a Mac runner
ci/test.yml runs make test-pic and, where an LLVM clang exists, a short fuzz pass. tools/ci installs and removes the zeitforge runner on the Mac mini as a LaunchAgent, and docs/ci.md covers setup and teardown. (user: dmestas, size: 1714) [annotate] [blame] [check-ins using]
CI
ci/test.yml runs on every push and landing: make test-pic (sanitizer and release builds, every suite), then a 30-second fuzz pass per target when the runner has an LLVM clang. Fil-C runs separately on hetzner-hel (tools/remote/run.sh … pic). Results show on each check-in's page at zeitforge; trunk's required check makes landings wait for a pass.
The runner
One zeitforge runner on the Mac mini (macOS arm64), reached as mac-mini over SSH, running as dmestas under a LaunchAgent (app.zeitforge.pic-ci-runner), one job at a time. macOS runners cannot isolate jobs per user, so a job can read that account's files; the user chose this over a dedicated account (2026-11-18).
Files on the mini, all under ~/pic-ci (0700): quarry-runner (from https://zeitforge.app/runner/, verified against its SHA256SUMS), token (the worker token, 0600), runner-start.sh, work/, runner.log; plus ~/Library/LaunchAgents/app.zeitforge.pic-ci-runner.plist.
Set up:
- Fetch and verify the runner into
~/pic-ci/quarry-runner. - Get a worker token without the browser:
quarry pickup newhere, a sign-off the user approves at zeitforge, thenquarry pickup collect https://zeitforge.app/r/dmestas/pi-c --print-env; copy the value into the mini's~/pic-ci/tokenover SSH stdin, never argv. sh tools/ci/mac-runner.sh install mac-mini;statusshows it polling.
Tear down:
sh tools/ci/mac-runner.sh uninstall mac-mini(unloads the agent, deletes~/pic-ciand the plist, and verifies both are gone).- Retire the worker token:
POST https://zeitforge.app/api/v1/r/pi-c/ci/worker-tokens/retirewith the token as the credential, or revoke it in the repository's settings.