Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

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/static/app.js +4−1

@@ -605,7 +605,10 @@ const fitTextarea = (area) => {
605 605 if (!url) return;
606 606
607 607 const decoder = new TextDecoder();
608 let offset = 0;
608 // A step's range starts partway into the attempt's log, and ?after= is an
609 // absolute offset. Starting at zero would make the server clamp every early
610 // poll back to the step's start and replay its opening bytes.
611 let offset = Number(pane.dataset.logOffset || 0);
609 612 let stopped = false;
610 613
611 614 const schedule = () => {