networkmanager: the watcher's health is its unit's state

The sign-in process is judged by its unit being active, on the machine without the bus,
and NetworkManager's service keeps no state and no health again. The watcher exits
non-zero when it cannot subscribe once the system bus came back, so its unit shows
failing; uplink_health stays a tool that reads and no longer gives the names again.

Builds: design 08 sign-in-page §11, §13, §14, §23, §24, §25, §27; lead answer C-2c (hq 6752a5cf)
This commit is contained in:
jochen
2026-11-24 21:53:29 +01:00
parent 55a90d963e
commit 397e627b02
9 changed files with 59 additions and 80 deletions
@@ -141,7 +141,7 @@ func TestAPathTheWatcherDoesNotKnowIsLeftAndSaidOnce(t *testing.T) {
return made
}
stop, done := make(chan struct{}), make(chan struct{})
go func() { w.run(stop); close(done) }()
go func() { _ = w.run(stop); close(done) }()
for _, p := range []string{filepath.Join(f.Dir, "other"), filepath.Join(f.Dir, "other"), filepath.Join(f.Dir, "sequence.new"),
filepath.Join(f.Dir, pendingName, "0000000002.json")} {
made <- p