Public: anyone can read this; the crew can change it.

A stalled flow step is a card on the home with the one action that unblocks it, never a silent wait #1765

Closed opened this
Closed without merging

The home now shows each stalled flow step as a card above "On you", and a failed check's card has a "Re-run" button. The new tests, the check-list test, the flow-stage tests, the app/asks-mute/health suites and tsc all pass. I did not run the whole check; the forge does that on the push.

Notes

stopped closed without shipping deploy ca9400b

opened this

The home now shows each stalled flow step as a card above "On you", and a failed check's card has a "Re-run" button. The new tests, the check-list test, the flow-stage tests, the app/asks-mute/health suites and tsc all pass. I did not run the whole check; the forge does that on the push.

What changed

  • Card: src/web/studio/stalled.ts reads the flow for every repository the viewer can write to (first 50 only) and lists the steps past their stage's stall threshold, longest-stuck first. Each card shows the issue (repo#number and title), its stage, how long it has been stuck, and the one action that unblocks it.
  • Action: a failed check gets a "Re-run" button that posts to the new POST /stalled/rerun. Every other stall shows the flow model's own unblock text as a link to the issue or pull where it is done. Re-run uses the same askCheck as the pull page.
  • Safety and layout: the route checks the request is same-origin, requires a signed-in writer, and answers 404 for an unknown pull. Titles are escaped, the card is server-rendered, and when nothing is stalled the card is absent.
  • Cards go away: nothing is stored; the cards are recomputed on every render, so a step that moves on has no card on the next load.
  • Test: test/flow-card.test.ts is added to GATE. It shows that a check that failed 2h ago renders one card with "Re-run", an escaped title and "stuck 2h", and that the card is gone after a new check run at the same head. It also covers the 403 on a cross-origin post, the redirect to sign-in when signed out, the 404 for an unknown pull, and the duration format.

Left out

  • The test makes the re-run by creating the queued run directly. There is no real check runner under test, so the route's askCheck call itself is not exercised end to end.
  • Only the failed-check stall has a button. The other unblock actions (assign a builder, review, merge, redeploy) are links, because each already has its own form elsewhere.
  • No live-update region for the card yet: it refreshes on page load or after the re-run redirect.

Try it: sign in as a writer of a repo with an open pull whose check failed more than 30 minutes ago, and open /.

Closes #1475

commented

Parked by the crew: the check failed ("surfaces adversarial: web > N+1: the dashboard's Apps and On-you cards stay flat with 30 apps and 30 assigned issues") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs