Skip to content

Run page and Reliability say when a run ended on red CI or with work left - #393

Merged
nambok merged 2 commits into
mainfrom
run-ends-truthful
Nov 12, 2026
Merged

nambok merged 2 commits into
mainfrom
run-ends-truthful

Conversation

@nambok

@nambok nambok commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

The run page and the Reliability tab now say plainly when a run ended on red CI or stopped with work left, instead of reading as a generic "PR held" or "Waiting on you". This builds on CoderHelm/coderhelm-platform#624, which sets these runs to needs_input with a named reason and adds ci.ended_wrong to the analytics data.

  • The run badge reads CI failing (attention) when the pull request is held because a check fails. It reads Stopped, not finished when the run stopped with planned work left. Both are taken from the run's hold reasons and its wait.
  • The Reliability tab shows a red line when any run ended done with its CI still red, or done after stopping with work left, with a link to the newest one. Both should stay at zero, so a regression shows the day it happens. Older backends without the field show nothing.

Changes

  • dashboard/src/components/run-status.tsx: the runHeldOn helper and two new looks, CI_FAILING and STOPPED_UNFINISHED; RunStatusBadge takes heldOn.
  • dashboard/src/app/runs/detail/page.tsx: passes heldOn from the hold reasons and the waiting_on detail.
  • dashboard/src/lib/api.ts: ci.ended_wrong type.
  • dashboard/src/app/analytics/page.tsx: the ended-wrong line under CI outcomes.
  • dashboard/e2e/run-draft-hold.spec.ts, dashboard/e2e/analytics.spec.ts: new cases.

Verification

  • tsc --noEmit clean, npm run lint passed.
  • playwright test e2e/run-draft-hold.spec.ts e2e/analytics.spec.ts: 34 passed. That includes three new cases:
    • a run held on a failing check shows "CI failing" and names the check, never "Done";
    • a run stopped mid-work shows "Stopped, not finished";
    • Reliability shows both ended-wrong counts with a link, and nothing when they are zero.

…left

The run badge reads "CI failing" when the pull request is held on a failing
check, and "Stopped, not finished" when the run stopped with planned work
left, instead of "PR held" or "Waiting on you". The Reliability tab shows
runs that ended done with red CI or after a stop (ci.ended_wrong), which
should stay at zero.
The Integrations link's name gains "Needs attention: ..." once the
integrations' status arrives. The member test on the AWS page matched the
exact name, so it passed only while the status was still loading (2 of 15
runs failed on the static build). It now matches like the admin test above it.
@nambok
nambok merged commit cbd24ab into main Nov 12, 2026
10 checks passed
@nambok
nambok deleted the run-ends-truthful branch November 12, 2026 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant