From a256a3d6c62b8b2b16975b8fbb986c040e5a2d50 Mon Sep 17 00:00:00 2001 From: codephil Date: Wed, 2 Dec 2026 09:52:51 -0700 Subject: [PATCH 1/2] Show a run as running once any of its jobs is GitHub keeps a run queued while one job waits for a runner, even with others running, so busy runs showed the still queued dot. Running rows get the spinner and a sweep along the bottom edge; queued icons pulse. --- CHANGELOG.md | 7 +++++++ forge/index.html | 20 +++++++++++++++++--- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 69d8264..3d6c456 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,13 @@ migration step. ## [Unreleased] +### Changed + +- A run with a job on a runner shows as running: spinning icon and a sweep along + the row. GitHub keeps such a run "queued" while any other job still waits for a + runner, so it used to show the still queued dot. Queued runs pulse gently; both + animations stop under `prefers-reduced-motion`. + ### Fixed - Deregistered repo runners now leave the board. Pruning took the scope from diff --git a/forge/index.html b/forge/index.html index a55ac0c..bb92a30 100644 --- a/forge/index.html +++ b/forge/index.html @@ -157,6 +157,14 @@ .ico.running{background:rgba(255,181,71,.15);color:var(--run)} .ico.running svg{animation:spin 1.1s linear infinite} .ico.queued{background:rgba(142,162,255,.14);color:var(--queue)} +.ico.queued svg{animation:blink 1.2s ease-in-out infinite alternate} +/* A run with a job on a runner: a sweep along the row's bottom edge, like a hot stat. */ +.run.running{position:relative;background:linear-gradient(90deg,rgba(255,181,71,.05),transparent 40%)} +.run.running::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;overflow:hidden; + background:linear-gradient(90deg,transparent,var(--run),transparent);background-size:50% 100%;background-repeat:no-repeat; + animation:rowsweep 1.8s linear infinite} +@keyframes rowsweep{from{background-position:-50% 0}to{background-position:150% 0}} +@media (prefers-reduced-motion:reduce){.run.running::after,.ico.running svg,.ico.queued svg{animation:none}} .ico.cancelled,.ico.skipped{background:rgba(139,147,167,.12);color:var(--cancel)} @keyframes spin{to{transform:rotate(360deg)}} .where{font:600 10px var(--mono);letter-spacing:.04em;padding:1px 6px;border-radius:4px} @@ -438,6 +446,12 @@

Test suites j.status === "in_progress")) return "running"; + return kind(r.status, r.conclusion); +} const now = () => Date.now() + skew; const SPARK = ''; function aiBtn(kind, id, title, sm){ @@ -589,7 +603,7 @@

Test suites Test suites { - const k = kind(r.status, r.conclusion), isOpen = open.has(r.id); - return `
+ const k = runKind(r), isOpen = open.has(r.id); + return `
${ICON[k]}
${esc(r.title)}
${esc(r.name)}${esc(short(r.repo))}${esc(r.branch)} From 96f6e6b4d21f618d6e0f98954554df75a58c6b0d Mon Sep 17 00:00:00 2001 From: codephil Date: Wed, 2 Dec 2026 09:59:44 -0700 Subject: [PATCH 2/2] Busy runner with an unknown job says so instead of 'waiting for work' --- CHANGELOG.md | 2 ++ forge/index.html | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d6c456..290ea3b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,8 @@ migration step. the row. GitHub keeps such a run "queued" while any other job still waits for a runner, so it used to show the still queued dot. Queued runs pulse gently; both animations stop under `prefers-reduced-motion`. +- A busy runner whose job Forge can't see (a repository it doesn't watch) says so, + instead of "waiting for work" next to a busy badge. ### Fixed diff --git a/forge/index.html b/forge/index.html index bb92a30..fbcf25f 100644 --- a/forge/index.html +++ b/forge/index.html @@ -565,7 +565,12 @@

Test suites
Runner
${esc(r.name)}
${scopeText(r.scope)} · ${util}% busy 24h
${st}${aiBtn("runner", r.name, "runner " + r.name, true)}

${r.current ? `${esc(r.current.name)} · ${esc(short(r.current.repo))} · ` - : st === "offline" ? `offline ${r.offline_since ? "for " : ""}` : "waiting for work"}
+ : st === "offline" ? `offline ${r.offline_since ? "for " : ""}` + // GitHub says busy but Forge has no job for it: a repo Forge doesn't watch + // (not in FORGE_REPOS, or no push within FORGE_DISCOVER_DAYS), or a job + // assigned since the last poll. + : st === "busy" ? `running a job from a repo Forge doesn't watch` + : "waiting for work"}
labels${ r.labels.filter(l => !["self-hosted","Linux","X64"].includes(l)).map(l => `${esc(l)}`).join("")