Skip to content
quarry View Ticket
Login

View Ticket

2026-09-24
00:54 • Ticket [f24d78d96e] ci: quarry-native runner — generic 'quarry runner' + ci/runner.json manifest status still Closed with 1 other change artifact: fd391e807f user: zeitgeist
2026-09-23
16:15 • Closed ticket [f24d78d96e]. artifact: 958ac91e26 user: zeitgeist
12:29 • Ticket [f24d78d96e]: 2 changes artifact: a7fa63a5cb user: zeitgeist
2026-09-12
15:58 • Ticket [f24d78d96e]: 2 changes artifact: bbd0f2264b user: zeitgeist
2026-08-29
13:57 • New ticket [f24d78d96e]. artifact: ce82e70db3 user: dmestas

ci: quarry-native runner — generic 'quarry runner' + ci/runner.json manifest

Closedf24d78d96e1e2435ba6092371ea8b19ede3f2744Created 93.4 days agoUpdated 67.9 days ago
Description2026-08-29 13:57:46
The self-hosted runner template that is ours, custom, and dependency-free. A manifest in the repository maps task types to argv, read AT the check-in under test like pipelines are, so it cannot drift from the code: ci/runner.json {"tasks":{"quarry-test":["go","test","./..."]}}. One generic runner binary (quarry runner <forge-url>/r/<repo> --token ...) speaks the worker protocol: clone the check-in, read the manifest, exec the named argv, stream stdout/stderr to the log lane, one log line per task with verdict and duration. Attaches with a worker token scoped to the repo's task-type prefixes (Settings > Worker tokens). Dagger is supported by not being special: a manifest entry may exec 'dagger call test' like any other argv. Acceptance: ci/worker/ collapses to a two-line manifest and quarry's own CI keeps running unchanged. Follow-on noted, not in scope: 'quarry ci run' local mode — the same manifest executed against the working tree, verdicts printed, no forge in the loop.
2026-09-12 15:58:22

Needs dmestas's decision before implementation. A quarry-native runner is a second CI execution model beside dagnats. Which one is the primary path — and whether dagnats stays — is a product decision, not an implementation detail, and it determines whether ci/runner.json is a manifest quarry owns or a shim.

(Recorded as a comment because quarry's own tracker defines no assignee field — its schema carries title, type, status, severity, priority, subsystem and nothing else, while tcl's carries assignee, submitter, closer and closedate. Assigning here needs both halves: the field added to quarry's ticket schema, and #0eafaa19 so quarry can write any field a tracker defines rather than fossil's default list.)

2026-09-23 12:29:21

Decided by dmestas 2026-09-23: BUILD, as a generic worker on the existing engine — not a second execution model. The runner speaks the same worker protocol the current ci/worker does, reads ci/runner.json at the check-in under test, and runs on repository owners' own machines with a worker token scoped to their repository. It never runs a stranger's repository on the forge's box: a runner executes whatever argv the check-in's manifest names, so where it runs is the security boundary. dagnats stays the scheduler; ci/runner.json is a manifest quarry owns. Acceptance as written: ci/worker collapses to a manifest and quarry's own CI keeps running.

2026-09-23 16:15:22

Closed on build 1e95928a0991. All three steps are in: the forge bridge (runners-reach-the-engine-through-the-forge), quarry runner (quarry-runner, a-runner-token-can-claim-its-own-tasks, the-runner-log-reaches-the-run-page), and quarry's own CI on it (quarry-ci-runs-on-its-own-runner, retire-the-nats-ci-worker). Measured on hetzner-big-eu: quarry-runner.service claims quarry.test/fmt/build through the bridge with a token scoped to worker group quarry; landing 43b73b4c, trunk f611ada5, branch zit-0328 and trunk 1e95928a each passed all three steps on it. quarry-ci-worker.service is stopped and disabled, and deploy restarts the runner. Known gap: Settings -> Runners still reads no runner attached, because dagnats registrations carry no worker group (danmestas/dagnats#719).