Commit f5eddae
Eric Bower
·
2026-05-07 15:56:14 -0400 EDT
parent 7a019c7
chore: fixes
M
main.go
+4,
-1
| ... | ... | @@ -515,7 +515,10 @@ See: https://github.com/picosh/pici | |
| 515 | 515 | return nil | |
| 516 | 516 | } | |
| 517 | 517 | ||
| 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) | |
| 519 | 522 | return nil | |
| 520 | 523 | } | |
| 521 | 524 |
M
run.fish
+6,
-2
| ... | ... | @@ -1,11 +1,15 @@ | |
| 1 | 1 | #!/usr/bin/env fish | |
| 2 | 2 | ||
| 3 | 3 | # Continuously subscribe to build events and feed them to pici runner. | |
| 4 | + | # Reconnects immediately after each event, delays only on connection errors. | |
| 4 | 5 | # Usage: ./run.fish | |
| 5 | 6 | ||
| 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) | |
| 8 | 9 | if test -n "$event" | |
| 9 | 10 | echo "$event" | pici runner | |
| 11 | + | else | |
| 12 | + | echo "could not connect to pipe, waiting 5s..." | |
| 13 | + | sleep 5 | |
| 10 | 14 | end | |
| 11 | 15 | end |