builds: name the failed step and duration; jump to failure on CLI and web #266

closed cmc opened this on 2026-09-28 03:18 UTC · ci cli ux web

Discussion

cmc 2026-09-28 03:18 UTC

A failed build does not say which step failed or how long it ran.

Build 1510 (test, failure): the log is 1,363 lines, the failure (--- FAIL: TestCLI) is at line 1049, and the last line is step failed: exit status 1 with no step named.

  • CLI: build show prints sha, ref, queued, finished and url. No duration, failed step or exit status. build log has only --follow and --json.
  • Web: build.html:16-17 renders one <pre> with no step structure or anchor. pre.buildlog { max-height: 40rem; overflow: auto; } (style.css:1116) cuts long lines at phone width with no visible scroll cue.
  • iOS: filed separately in krz/gitbay-ios (the log renders blank).

Changes:

  • Runner: step 3/3 failed: exit status 1, with the step number.
  • Store the failed step and duration on the build; build show prints failed step 3/3 go test ./... (exit 1) and duration 10m56s.
  • build log --step <n> and --tail <n>.
  • Web: one <details> per step with the failed one open, id="failed" and a "Jump to failure" link, duration next to "finished". No JavaScript needed.
  • pre.buildlog: white-space: pre-wrap; overflow-wrap: anywhere, as pre.message has.

referenced in commit 4e0958a163 by cmc: plans: open issues from the architecture and UX reviews

2026-09-28 05:43 UTC

referenced in commit e5b80f7a20 by cmc: control: runner done parses its flags through c.parseArgs

2026-09-28 22:33 UTC

referenced in commit 3bcdce33fb by cmc: web: step fold shows the step's first line; changelog: deploy order

2026-09-28 22:33 UTC

closed by cmc in commit bb4c0aeb12: wiki: failed step, build log --step and --tail

2026-09-28 22:33 UTC

referenced in commit ec5fe62412 by cmc: web: build log folded by step, failed step open

2026-09-28 22:33 UTC

referenced in commit e6b51c178e by cmc: build show: failed step and duration; build log --step, --tail

2026-09-28 22:33 UTC

referenced in commit 286e0c3891 by cmc: runner: name the failed step and report it

2026-09-28 22:33 UTC

referenced in commit 6421e2fd3b by cmc: runner done: record the failed step and reason

2026-09-28 22:33 UTC

referenced in commit b4e14d4383 by cmc: store: failed step and reason on a build

2026-09-28 22:33 UTC