Commit f5eddae

Eric Bower  ·  2026-05-07 15:56:14 -0400 EDT
parent 7a019c7
chore: fixes
2 files changed,  +10, -3
+4, -1
......@@ -515,7 +515,10 @@ See: https://github.com/picosh/pici
515515 return nil
516516 }
517517
518- fmt.Fprintf(os.Stdout, " follow: zmx tail ci.%s.%s.runner\n", eventData.Name, jobID)
518+ session := fmt.Sprintf("ci.%s.%s.runner", eventData.Name, jobID)
519+ fmt.Fprintf(os.Stdout, " zmx tail %s\n", session)
520+ fmt.Fprintf(os.Stdout, " zmx history %s\n", session)
521+ fmt.Fprintf(os.Stdout, " zmx attach %s\n", session)
519522 return nil
520523 }
521524
+6, -2
......@@ -1,11 +1,15 @@
11 #!/usr/bin/env fish
22
33 # Continuously subscribe to build events and feed them to pici runner.
4+# Reconnects immediately after each event, delays only on connection errors.
45 # Usage: ./run.fish
56
6-echo "subscribing to build events..."
7-ssh pipe sub build.event | while read -l event
7+while true
8+ set event (ssh pipe sub build.event 2>/dev/null)
89 if test -n "$event"
910 echo "$event" | pici runner
11+ else
12+ echo "could not connect to pipe, waiting 5s..."
13+ sleep 5
1014 end
1115 end