`valley-signers.path` watches the instance repository's `refs/heads/main` loose file together with `packed-refs` (and the known-signers and approval files). Measured, on a minimal path unit with exactly that pair (`refs/heads/main` plus an absent `packed-refs`), git 2.56, systemd 262 transient units, and the same loss in a 258.7 VM: the unit started its service on 1 of 4 `git push` updates of main when main was first created and on 0 of 4 when main already existed. The same unit watching `refs/heads/main` alone started on 4 of 4. `inotifywait` showed each push creating and deleting `HEAD.lock` in the repository directory, which systemd watches on behalf of the absent `packed-refs`; systemd then sets the unit's watches up again and the event pending on main is lost. A first version of the registry compiler's path unit used the same pair and its landing on main went uncompiled for 60 s on the worker. Inferred, not measured on the unit itself: `valley-signers.path` misses git's updates of main the same way. The publication needs main only for the instance identity, which changes rarely; the known-signers and approval files that trigger it most were not measured. Wanted: measure the unit as deployed; if it loses events, watch main's loose file without `packed-refs`, as the registry compiler's path unit does. Related: the missed wake between a run's last reading and its exit (bd-c23c67b).
No comments.