diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-12 18:32:30 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-12 18:32:30 +0100 |
| commit | b9410a1c40f6d4e871f68c5f397000d64769a41b (patch) | |
| tree | a744328947d9db3cdd92d77fa95bbe87044b5f2c /deckit/modules/sbbuilder.py | |
| parent | 28a5a51c0a5e059a0389ddd1e75c6ecc91f6e38d (diff) | |
| download | deck-it-b9410a1c40f6d4e871f68c5f397000d64769a41b.tar.gz deck-it-b9410a1c40f6d4e871f68c5f397000d64769a41b.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'deckit/modules/sbbuilder.py')
| -rw-r--r-- | deckit/modules/sbbuilder.py | 7 |
1 files changed, 4 insertions, 3 deletions
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: |
