vole
Site
Clone
Read only, no credentials:
https://rodent.software/vole.git
Write over SSH with a registered key:
git clone ssh://git@rodent.software/vole.git
Self-hosted forge that lives in your Git repo.
Tail the running step instead of a duplicate job output
86ced8c53ed2f2aa41fbf20b84321ad20195e620 · Keenan Nemetz · 17d ago · parent 9b76484a
Tail the running step instead of a duplicate job output The live page opened a "Job output" pane holding the whole attempt log above the step accordion, so every step's bytes appeared twice: once in that pane and once when the step was expanded. The pane existed because the accordion was a snapshot and only the pane followed the attempt. Now the running step's own accordion entry is the live view: it opens by default and app.js tails that step's byte range, so the page never repeats a step. When the step ends the page reloads to pick up the next one, or to become the finished run; a reload that lands between steps waits and tries again. A reader who expands another step is left where they are rather than being reloaded out of it.
server/integration_test.go +8−5
| @@ -3153,8 +3153,8 @@ jobs: | |||
| 3153 | 3153 | !strings.Contains(page, "say hello") || !strings.Contains(page, "step=1") || | |
| 3154 | 3154 | !strings.Contains(page, "Download full log") || !strings.Contains(page, "download=1") { | |
| 3155 | 3155 | t.Fatalf("the run page does not show the result, the step log, or the full-log download:\n%s", page) | |
| 3156 | } else if strings.Contains(page, "data-log-stream") { | ||
| 3157 | t.Fatalf("the finished run page still shows the live viewer:\n%s", page) | ||
| 3156 | } else if strings.Contains(page, "data-live-step-log") || strings.Contains(page, "data-live-run") { | ||
| 3157 | t.Fatalf("the finished run page still shows the live step viewer:\n%s", page) | ||
| 3158 | 3158 | } | |
| 3159 | 3159 | if done.SHA != mustSHA(t, work) { | |
| 3160 | 3160 | t.Fatalf("run recorded sha %s, want the pushed commit", done.SHA) | |
| @@ -3204,9 +3204,12 @@ jobs: | |||
| 3204 | 3204 | } | |
| 3205 | 3205 | time.Sleep(100 * time.Millisecond) | |
| 3206 | 3206 | } | |
| 3207 | if _, page := f.get("/" + f.repo + "/runs/" + run.ID); !strings.Contains(page, "data-log-stream") || | ||
| 3208 | !strings.Contains(page, "Job output") || !strings.Contains(page, "slow") { | ||
| 3209 | t.Fatalf("the running run page does not show the live job output:\n%s", page) | ||
| 3207 | // The running step is the live view: its own accordion entry tails the step's | ||
| 3208 | // byte range, and there is no separate job-output pane duplicating it. | ||
| 3209 | if _, page := f.get("/" + f.repo + "/runs/" + run.ID); !strings.Contains(page, "data-live-run") || | ||
| 3210 | !strings.Contains(page, "data-live-step-log") || !strings.Contains(page, "slow") || | ||
| 3211 | strings.Contains(page, "Job output") { | ||
| 3212 | t.Fatalf("the running run page does not tail the running step:\n%s", page) | ||
| 3210 | 3213 | } | |
| 3211 | 3214 | // The selected step is its own byte range, not the whole attempt log. | |
| 3212 | 3215 | if _, stepLog := f.get("/" + f.repo + "/runs/" + run.ID + "/log?attempt=1&step=1"); !strings.Contains(stepLog, "first line") { | |