Build log by step
A pipeline run as a list of steps with times, the failed one open on its log with the bad lines marked, and the step after it skipped. For CI pages and deploy screens.
Run 482 · main · a41c9e2
Fix family ticket rounding
Failed in 2m 03s
- PassedCheck out code2s
- PassedInstall dependencies41s
- PassedLint12s
-
FailedRun tests1m 08s
$ npm test PASS tests/cart.test.ts (14 tests) PASS tests/timeslots.test.ts (19 tests) FAIL tests/pricing.test.ts (9 tests, 1 failed) family ticket covers two adults and three children Expected: 38 Received: 47.5 at tests/pricing.test.ts:27:31 Tests: 1 failed, 41 passed, 42 total Process exited with code 1
- SkippedDeploy to stagingskipped
The code
Plain HTML and CSS on your kit's variables. Put it next to tokens/variables.css from your kit's files and it draws in your look.
<div class="ukc-code-build-log">
<section class="ci" aria-labelledby="ukc-code-build-log-title">
<header class="hd">
<div><p class="k">Run 482 · main · a41c9e2</p><h3 id="ukc-code-build-log-title">Fix family ticket rounding</h3></div>
<p class="verdict"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg>Failed in 2m 03s</p>
</header>
<ol class="steps">
<li class="ok"><div class="row"><span class="st"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg><span class="sr">Passed</span></span><span class="nm">Check out code</span><span class="tm">2s</span></div></li>
<li class="ok"><div class="row"><span class="st"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg><span class="sr">Passed</span></span><span class="nm">Install dependencies</span><span class="tm">41s</span></div></li>
<li class="ok"><div class="row"><span class="st"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg><span class="sr">Passed</span></span><span class="nm">Lint</span><span class="tm">12s</span></div></li>
<li class="bad">
<details open>
<summary class="row"><span class="st"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18"/></svg><span class="sr">Failed</span></span><span class="nm">Run tests</span><span class="tm">1m 08s</span><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 9l6 6 6-6"/></svg></summary>
<pre class="log"><samp><span class="l"><span class="pr">$</span> npm test</span>
<span class="l"><span class="tag">PASS</span> tests/cart.test.ts <span class="dim">(14 tests)</span></span>
<span class="l"><span class="tag">PASS</span> tests/timeslots.test.ts <span class="dim">(19 tests)</span></span>
<span class="l err"><span class="tag no">FAIL</span> tests/pricing.test.ts <span class="dim">(9 tests, 1 failed)</span></span>
<span class="l err"> family ticket covers two adults and three children</span>
<span class="l err"> Expected: 38</span>
<span class="l err"> Received: 47.5</span>
<span class="l err"> <span class="dim">at tests/pricing.test.ts:27:31</span></span>
<span class="l">Tests: <b>1 failed</b>, 41 passed, 42 total</span>
<span class="l">Process exited with code 1</span></samp></pre>
</details>
</li>
<li class="skip"><div class="row"><span class="st"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/></svg><span class="sr">Skipped</span></span><span class="nm">Deploy to staging</span><span class="tm">skipped</span></div></li>
</ol>
<footer class="ft"><button class="btn" type="button">Re-run failed step</button><a href="#">Download the full log</a></footer>
</section>
</div>
.ukc-code-build-log { position: relative; font-family: var(--uk-font-body, system-ui, sans-serif); color: var(--uk-ink); font-size: 15px; line-height: 1.5;
--tint: color-mix(in srgb, var(--uk-accent) 12%, var(--uk-paper));
--tint-strong: color-mix(in srgb, var(--uk-accent) 22%, var(--uk-paper));
--accent-deep: color-mix(in srgb, var(--uk-accent) 72%, black);
--ink-soft: color-mix(in srgb, var(--uk-ink) 8%, var(--uk-paper));
--line-strong: color-mix(in srgb, var(--uk-ink) 32%, var(--uk-paper));
--danger-tint: color-mix(in srgb, var(--uk-danger) 12%, var(--uk-paper));
--high-tint: color-mix(in srgb, var(--uk-highlight) 28%, var(--uk-paper)); }
.ukc-code-build-log *, .ukc-code-build-log *::before, .ukc-code-build-log *::after { box-sizing: border-box; }
.ukc-code-build-log :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ukc-code-build-log :where(ul, ol) { padding: 0; list-style: none; }
.ukc-code-build-log :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ukc-code-build-log :where(a) { color: inherit; }
.ukc-code-build-log svg { flex: none; }
.ukc-code-build-log .sr { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ukc-code-build-log .ci { max-width: 620px; border: var(--uk-border-width) solid var(--uk-line); border-radius: var(--uk-radius-lg); overflow: hidden; background: var(--uk-surface); box-shadow: var(--uk-card-shadow); }
.ukc-code-build-log .hd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; border-bottom: 1px solid var(--uk-line); background: var(--uk-paper); }
.ukc-code-build-log .k { color: var(--uk-muted); font: 11.5px/1.5 var(--uk-font-mono, ui-monospace, monospace); }
.ukc-code-build-log .hd h3 { font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.ukc-code-build-log .verdict { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px 2px 7px; border-radius: var(--uk-radius-sm); background: var(--uk-danger); color: var(--uk-paper); font-size: 12px; font-weight: 700; white-space: nowrap; }
.ukc-code-build-log .steps > li + li { border-top: 1px solid var(--uk-line); }
.ukc-code-build-log .row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 16px; font-size: 13.5px; }
.ukc-code-build-log summary.row { list-style: none; cursor: pointer; transition: background-color var(--uk-motion-duration) var(--uk-motion-ease); }
.ukc-code-build-log summary.row::-webkit-details-marker { display: none; }
.ukc-code-build-log summary.row:hover { background: var(--ink-soft); }
.ukc-code-build-log summary.row:focus-visible, .ukc-code-build-log .ft a:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: -2px; }
.ukc-code-build-log summary.row > svg { color: var(--uk-muted); transition: transform var(--uk-motion-duration) var(--uk-motion-ease); }
.ukc-code-build-log details[open] > summary.row > svg { transform: rotate(180deg); }
.ukc-code-build-log .st { display: grid; place-items: center; width: 20px; height: 20px; border-radius: var(--uk-radius-full); box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--uk-ink); }
.ukc-code-build-log .bad .st { background: var(--uk-danger); box-shadow: none; color: var(--uk-paper); }
.ukc-code-build-log .skip .st { box-shadow: none; outline: 1.5px dashed var(--line-strong); outline-offset: -1.5px; color: var(--uk-muted); }
.ukc-code-build-log .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ukc-code-build-log .bad .nm { font-weight: 700; }
.ukc-code-build-log .skip .nm { color: var(--uk-muted); }
.ukc-code-build-log .tm { color: var(--uk-muted); font: 12px/1.5 var(--uk-font-mono, ui-monospace, monospace); font-variant-numeric: tabular-nums; }
.ukc-code-build-log .skip .tm { font-style: italic; }
.ukc-code-build-log .log { margin: 0; padding: 10px 0 12px; overflow-x: auto; background: color-mix(in srgb, var(--uk-ink) 12%, black); color: color-mix(in srgb, var(--uk-paper) 15%, white); font: 12px/1.7 var(--uk-font-mono, ui-monospace, monospace); }
.ukc-code-build-log .log samp { display: grid; width: max-content; min-width: 100%; counter-reset: ln; font: inherit; }
.ukc-code-build-log .log .l { min-height: 1.7em; padding-right: 16px; white-space: pre; }
.ukc-code-build-log .log .l::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 4.5ch; padding-right: 1.5ch; color: color-mix(in srgb, white 35%, transparent); text-align: right; user-select: none; }
.ukc-code-build-log .log .err { background: color-mix(in srgb, var(--uk-danger) 26%, transparent); box-shadow: inset 3px 0 0 color-mix(in srgb, var(--uk-danger) 55%, white); }
.ukc-code-build-log .log .err::before { color: white; }
.ukc-code-build-log .log .pr, .ukc-code-build-log .log .dim { color: color-mix(in srgb, white 55%, transparent); }
.ukc-code-build-log .log .tag { display: inline-block; padding: 0 5px; outline: 1px solid color-mix(in srgb, white 40%, transparent); outline-offset: -1px; font-weight: 700; }
.ukc-code-build-log .log .tag.no { background: color-mix(in srgb, var(--uk-danger) 55%, white); outline: 0; color: black; }
.ukc-code-build-log .log b { color: white; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ukc-code-build-log .ft { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 16px; border-top: 1px solid var(--uk-line); }
.ukc-code-build-log .btn { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 5px 10px; border: 1px solid var(--uk-line); border-radius: var(--uk-radius-sm); background: var(--uk-paper); color: var(--uk-ink); font-size: 12px; font-weight: 500; line-height: 1.4; cursor: pointer; transition: border-color var(--uk-motion-duration) var(--uk-motion-ease), background-color var(--uk-motion-duration) var(--uk-motion-ease); }
.ukc-code-build-log .btn:hover { border-color: var(--line-strong); }
.ukc-code-build-log .btn:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 2px; }
.ukc-code-build-log .btn { font-weight: 600; }
.ukc-code-build-log .ft a { color: var(--uk-ink); font-size: 12.5px; text-underline-offset: 3px; }
More code blocks
All 24- src/hours/closed-days.tsConflict 1 of 3
export const closedDays = [ "2026-12-25", <<<<<<< mainkeptdropped "2026-12-31", // stocktake ======= "2027-01-02", // staff day >>>>>>> holiday-hourskeptdropped ];Result keeps the stocktake day from main.Result keeps the staff day from holiday-hours.Result keeps both days, main first.
Filter a day with a rangeMarina bookings · Postgres
AvoidThe function hides the column from its index. SELECT id, berth, starts_at FROM bookings WHERE date(starts_at) = '2026-12-05';PreferA plain range the index can walk. SELECT id, berth, starts_at FROM bookings WHERE starts_at >= '2026-12-05' AND starts_at < '2026-12-06';Git, the five you use daily
git switch -c fix/late-feesStart a branch and move onto itgit add -pStage your changes one hunk at a timegit commit --amend --no-editFold what is staged into the last commitgit stash push -m wip-feesPark unfinished work under a namegit log --oneline -5See the last five commits, one line each
Swap
fix/late-feesandwip-feesfor your own names.src/pricing/ticket.ts 86% lines8 of 10 branches 18×export function ticketPrice(age: number, member: boolean) { 18× if (age < 5) return 0; 15× if (member) { 6× return age < 16 ? 4 : 9;1 of 2 branches } 9× if (age >= 65) {never true 0× return 8;never run } 9× return age < 16 ? 6 : 12; }- Ran
- Some branches
- Never ran
import { Halden } from "@halden/sdk"; // Reads HALDEN_KEY from your environment const halden = new Halden(); const job = await halden.jobs.get("JS-2207"); const invoice = await job.invoice(); await invoice.send({ to: job.client });from halden import Halden # Reads HALDEN_KEY from your environment halden = Halden() job = halden.jobs.get("JS-2207") invoice = job.invoice() invoice.send(to=job.client)# The same call, straight to the API curl api.halden.example/v2/invoices \ -H "Authorization: Bearer $HALDEN_KEY" \ -d job=JS-2207 \ -d send=true$ npx tsx send-invoice.ts ✓ Drafted INV-0418 from 22.5 h and 3 receipts ✓ Sent to Reyes Framing · $2,140.00 $
- Install with
npm install @halden/sdkpnpm add @halden/sdkyarn add @halden/sdk