Skip to content

fix(ui): show never-run nodes, cross-job skip causes and root causes on group runs - #1738

Draft
kvlonge wants to merge 2 commits into
mainfrom
fix/never-run-states
Draft

kvlonge wants to merge 2 commits into
mainfrom
fix/never-run-states

Conversation

@kvlonge

@kvlonge kvlonge commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Why

After a worker crash in a group run, the run page called the nodes it never reached "skipped". It didn't say which job a skip waited on or which job caused the failures. Blocked members were derived in the browser rather than read from the run's status.

Changes

  • Nodes a run never reached (not_run, cancelled) have their own "not run" state in the tree, counts, header and runs list. The node panel gives the run's reason, such as "worker stopped".
  • A skip caused by another job's node names that job, opens the node, and says "did not run" when the cause never ran.
  • A line under a group run's title names each job that failed on its own account, what failed or why it stopped, and how many jobs it held back.
  • Each attempt in the job panel shows its own outcome, counts or reason.
  • blocked is a run status: labelled, filterable and never counted as failed. The client-side derivation is gone, and the mock follows the server's rule.
  • The real-server UI tests run on a fresh PostgreSQL control database. CI starts PostgreSQL for them. A new test kills a worker mid-build.

Waiting on server fields, each a small follow-up:

  • blocked stored by the server: until then such members read failed. A real-server test of a blocked member next to a failed one.
  • last_heartbeat_at and the dead-worker node's error code.
  • The planning failure's code and message on the attempt.
  • Cancelled-by and the cancel reason.

No DuckShop case: this changes how the UI shows run states, not a project shape, data value or build lifecycle.

Verification

  • The real-server suite on PostgreSQL passes: 4 tests, including the killed-worker test. Against main's UI, that test fails because the crashed job reads "1 failed · 1 skipped".
  • The new unit tests fail on main's logic.
  • Run-page and group-run layout Playwright: 67 passed.
  • svelte-check clean; vitest 920 passed.

…on group runs

Nodes a stopped worker never reached read as not run instead of skipped,
with the run's reason. A skip caused by another job's node names and links
that job. The group run's title line names the jobs that failed on their
own account and how many jobs each held back, and each attempt in the job
panel shows its own outcome. Members read `blocked` from the run status
instead of deriving it.

The real-server UI tests run on a PostgreSQL control database, and a new one
kills a worker mid-build.
@kvlonge
kvlonge disabled auto-merge November 30, 2026 18:40
@kvlonge
kvlonge marked this pull request as draft November 30, 2026 18:41

This branch has not been deployed

No deployments
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