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.
Start the live step tail at the step's offset
f32f846db159c21ba24c4e5c3005ba4da87aceb4 · Keenan Nemetz · 15d ago · parent 5baf4e73
Start the live step tail at the step's offset The log endpoint reads ?after= as an absolute offset in the attempt log, and clamps it up to the step's start when ?step= narrows the response. The live viewer started its counter at zero and then added the bytes it received, so its counter stayed below the step's start and every early poll was clamped back to the step start, replaying the opening bytes. Two runs of the same job print an identical banner, environment line and step header, so the repeated prefix looked like output leaked from the other running job. Carry the step's LogOffset through to the run page and start the tail counter there. The template test pins the rendered attribute, and a runSteps test pins the value coming from the live step event. Refs #320.
server/web/templates/run.html +1−1
| @@ -108,7 +108,7 @@ | |||
| 108 | 108 | <span class="status {{.Status}}">{{.Label}}</span> | |
| 109 | 109 | <span class="run-step-meta">{{if and (eq .Status "running") (not .Started.IsZero)}}<span data-clock-from="{{.Started.Unix}}">{{duration .Duration}}</span>{{else if .Duration}}{{duration .Duration}}{{else}}—{{end}}</span> | |
| 110 | 110 | </summary> | |
| 111 | {{if $live}}<pre class="run-log-text" data-live-step-log data-log-url="{{.LogURL}}"></pre> | ||
| 111 | {{if $live}}<pre class="run-log-text" data-live-step-log data-log-url="{{.LogURL}}" data-log-offset="{{.LogOffset}}"></pre> | ||
| 112 | 112 | {{else if .LogURL}}<pre class="run-log-text"></pre> | |
| 113 | 113 | {{else}}<p class="run-log-empty">{{if eq .Status "running"}}Waiting for output from this step.{{else if eq .Label "pending"}}Waiting for this step.{{else if eq .Label "waiting"}}Waiting for this step.{{else if eq .Label "queued"}}Waiting for a runner.{{else if eq .Label "not run"}}Not run.{{else}}No output was captured for this step.{{end}}</p>{{end}} | |
| 114 | 114 | </details> | |