Skip to content
quarry View Ticket
Login

View Ticket

Mirror admin: edit in place, clear stale errors on URL change, name the failure cause

Closedbf5fbed5d6be6e171e2b2a4c27e7e7e80dab0e45Created 101.2 days agoUpdated 67.9 days ago
Description2026-08-21 18:09:52
Repairing the wapp mirror (dead `wapp.tcl.tk` domain) showed three gaps on `/fleet`:

- No per-row edit; the only way to change a URL is knowing that "Add mirror" is an upsert. Add edit (url, every, enabled, accept_local_writes). - `SetMirror` with a new URL leaves `last_err` / `failures` from the old one, so the table reports a failure against a URL that no longer exists. Clear them when the URL changes. - "zit pull: cannot connect to the peer" hides the cause. Classify what we get (DNS does not resolve / connection refused / TLS / HTTP status) and say so; DNS failure should read "host does not resolve — the project may have moved", the commonest way a long-lived mirror dies. Passing the underlying error through is a zit change; classification on our side is not.

2026-08-21 18:35:04

Partly on branch mirror-posture: per-row edit (?edit=repo prefills the form) and failures cleared on URL change. Remaining: classify the pull failure cause (DNS / refused / TLS / HTTP).

2026-08-21 19:52:46

Edit-in-place and error clearing merged in e61bc36d. Still open here: classify the pull failure cause.

2026-09-23 13:27:31

Measured on 0.1.0-beta+0cccfda9b217 (landing 7fe97160). zit still says "cannot connect" alike for DNS, refused and TLS, so quarry now probes the upstream when a pull fails that way and prefixes the first failing step. A throwaway mirror pointed at https://no-such-host-bf5fbed5.invalid/x, run once: mirror.run err, lastErr, the pull history entry and the fleet row all read "host no-such-host-bf5fbed5.invalid does not resolve — the project may have moved (… zit pull: cannot connect …)". Store deleted after. Refused ("… refused the connection — nothing is listening there") and TLS ("TLS with failed: x509: …") are covered by hermetic tests; HTTP statuses zit already names. Edit-in-place and clearing on URL change landed earlier in e61bc36d.