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.
Tighten the run page's logs and summary cards
8015a72b322328c3c5b8c3b5f8ca6fcd17c57695 · Keenan Nemetz · 17d ago · parent e653853a
Tighten the run page's logs and summary cards
Return the run page's step logs to a collapsible accordion. The tab bar
replaced a stack that already read well, and it hid every step's output behind
one shared pane. Each step now loads its own byte range when opened, the step a
reader should land on opens itself, and a record without per-step ranges falls
back to the attempt's full log instead of a stack of empty rows. Drop the
unused /runs/{id}/steps fragment and the tab-only view fields.
Stop stretching the summary cards to the tallest one, and trim their subtext:
the workflow card links the definition without repeating its path, "acted as"
and "reported by" lose their explanations, and only a successful run that does
not gate a branch explains why it is not a check.
server/integration_test.go +8−18
| @@ -3147,14 +3147,14 @@ jobs: | |||
| 3147 | 3147 | t.Fatalf("range request = %d, Content-Range %q", resp.StatusCode, resp.Header.Get("Content-Range")) | |
| 3148 | 3148 | } | |
| 3149 | 3149 | // Attribution is the boundary's, and the page says who it accepted the result from. | |
| 3150 | // A finished run shows the step tabs and one log pane; the whole log is a | ||
| 3150 | // A finished run stacks the steps as collapsible logs; the whole log is a | ||
| 3151 | 3151 | // download, not a second copy of every step's output. | |
| 3152 | 3152 | if _, page := f.get("/" + f.repo + "/runs/" + done.ID); !strings.Contains(page, "reported by") || | |
| 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-live-step-log") { | ||
| 3157 | t.Fatalf("the finished run page still shows the live step viewer:\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) | ||
| 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,13 +3204,9 @@ 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-live-step-log") || | ||
| 3208 | !strings.Contains(page, "run-live-steps") || !strings.Contains(page, "slow") { | ||
| 3209 | t.Fatalf("the running run page does not show the live step viewer:\n%s", page) | ||
| 3210 | } | ||
| 3211 | if _, steps := f.get("/" + f.repo + "/runs/" + run.ID + "/steps"); !strings.Contains(steps, `data-step-status="running"`) || | ||
| 3212 | !strings.Contains(steps, `hx-trigger="every 2s"`) { | ||
| 3213 | t.Fatalf("the live step fragment does not show the running step:\n%s", steps) | ||
| 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) | ||
| 3214 | 3210 | } | |
| 3215 | 3211 | // The selected step is its own byte range, not the whole attempt log. | |
| 3216 | 3212 | if _, stepLog := f.get("/" + f.repo + "/runs/" + run.ID + "/log?attempt=1&step=1"); !strings.Contains(stepLog, "first line") { | |
| @@ -3257,13 +3253,6 @@ jobs: | |||
| 3257 | 3253 | t.Fatalf("a finished step is not marked final") | |
| 3258 | 3254 | } | |
| 3259 | 3255 | resp.Body.Close() | |
| 3260 | |||
| 3261 | // Once the attempt is recorded the live rows are gone and the fragment stops | ||
| 3262 | // polling; the page is a finished run from here. | ||
| 3263 | if _, steps := f.get("/" + f.repo + "/runs/" + done.ID + "/steps"); !strings.Contains(steps, `data-step-status="success"`) || | ||
| 3264 | strings.Contains(steps, `hx-trigger="every 2s"`) { | ||
| 3265 | t.Fatalf("the finished step fragment still looks live:\n%s", steps) | ||
| 3266 | } | ||
| 3267 | 3256 | } | |
| 3268 | 3257 | ||
| 3269 | 3258 | // A workflow can name a definition under .vole/images. The queue pins the | |
| @@ -3736,7 +3725,8 @@ func TestOnlyAllowedRunnersGreenLightABranch(t *testing.T) { | |||
| 3736 | 3725 | t.Fatalf("the refusal does not say why:\n%s", errs) | |
| 3737 | 3726 | } | |
| 3738 | 3727 | // The page explains the same thing where somebody would look for it. | |
| 3739 | if _, page := f.get("/" + f.repo + "/runs/" + done.ID); !strings.Contains(page, "does not count as a check") { | ||
| 3728 | if _, page := f.get("/" + f.repo + "/runs/" + done.ID); !strings.Contains(page, "not a check") || | ||
| 3729 | !strings.Contains(page, "wilbur is not a runner for this repository") { | ||
| 3740 | 3730 | t.Fatalf("the run page does not say the result does not count:\n%s", page) | |
| 3741 | 3731 | } | |
| 3742 | 3732 | ||