From 665bb612f2602836455e1eb7efd670806d6c41ca Mon Sep 17 00:00:00 2001 From: igneum-labs <337424239+igneum-labs@users.noreply.github.com> Date: Sun, 4 Oct 2026 19:00:57 +0000 Subject: [PATCH] Jobs reader: error lines shown under a job's status Co-Authored-By: Claude Fable 5.1 --- tools/jobs.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/jobs.mjs b/tools/jobs.mjs index 8034bba8..0f32418e 100755 --- a/tools/jobs.mjs +++ b/tools/jobs.mjs @@ -82,6 +82,7 @@ if (a === 'status') { for (const r of rows) { const s = summaryOf(r.lines); console.log(`${r.machine.padEnd(28)} ${r.run_id.padEnd(44)} ${when(r.received_at)} ${s ? `${s.status} exit ${s.exit} after ${s.duration_s} s: ${s.summary}` : '(no SUMMARY line)'}`); + if (s && s.errors && s.errors.length) for (const e of s.errors) console.log(`${''.padEnd(28)} ERROR ${e.slice(0, 160)}`); } process.exit(0); } @@ -96,7 +97,8 @@ async function show(id, all) { console.log(`===== id ${r.id} | ${r.run_id} | ${r.label} | ${r.machine} | ${when(r.received_at)} | ${r.bytes} bytes =====`); const s = summaryOf(r.lines); if (s) { - console.log(`SUMMARY: ${s.status} exit ${s.exit}, started ${s.started_at}${s.finished_at ? ', finished ' + s.finished_at : ''}, ${s.duration_s} s: ${s.summary}`); + console.log(`SUMMARY: ${s.status} exit ${s.exit}, started ${s.started_at}${s.finished_at ? ', finished ' + s.finished_at : ''}, ${s.duration_s} s: ${s.summary}`) + if (s.errors && s.errors.length) for (const e of s.errors) console.log(`ERROR: ${e.slice(0, 200)}`);; if (s.results && s.results.length) for (const l of s.results) console.log(` ${l}`); final.push(['done', 'failed', 'timeout', 'aborted'].includes(s.status)); if (!all) { const rest = r.lines.split('\n').slice(1); const tail = rest.slice(-30); console.log(tail.join('\n')); if (rest.length > 30) console.log(` (... ${rest.length - 30} more lines; --all prints every upload)`); }