Commit f5eddae

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