From b9410a1c40f6d4e871f68c5f397000d64769a41b Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 12 Nov 2026 18:32:30 +0100 Subject: feat(dashboard): show build progress in the build VM slot The build VM slot showed a busy bar and the job kind. It now reads `sbb-remote jobs --active` (sb-builder 0.13.0), whose running build carries progress: the package being built on the first line, done of total (dependencies included, from the preview's plan) on the right, the op, the package's ETA, the estimated end and failures on the second line, and a bar that fills as packages finish. Other jobs keep the busy bar. Polling only active jobs also stops pulling the whole job history over ssh every 10s. Co-Authored-By: Claude Opus 5.5 --- deckit/modules/sbbuilder.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'deckit/modules') diff --git a/deckit/modules/sbbuilder.py b/deckit/modules/sbbuilder.py index cefe2a3..d9f3cb0 100644 --- a/deckit/modules/sbbuilder.py +++ b/deckit/modules/sbbuilder.py @@ -17,8 +17,9 @@ """sb-builder build state, read-only over ssh. `sbb-remote stats` carries the dashboard: VM load, uptime, memory, disk, package -counts, orphans, slackrepo results and overlay pulls. `jobs` adds the recent -build list. Both run over one ssh connection and arrive as two JSON objects. +counts, orphans, slackrepo results and overlay pulls. `jobs --active` adds the +running job, with its `progress` while it is a build (sbb-remote 0.13.0). Both +run over one ssh connection and arrive as two JSON objects. """ import json @@ -41,7 +42,7 @@ def make(cfg: dict) -> Module: def state(): try: out = run(["ssh", "-o", "BatchMode=yes", "-o", "ConnectTimeout=4", - host, "sbb-remote stats; sbb-remote jobs"]).lstrip() + host, "sbb-remote stats; sbb-remote jobs --active"]).lstrip() except OSError: return {"offline": True} try: -- cgit v1.2.3