Skip to content

Dashboard: what is stuck right now, by cause (stuck.svg) - #46

Merged
squid-protocol merged 1 commit into
mainfrom
held-by-cause
Nov 23, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
held-by-cause

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Why. From 2026-11-21 to 23 about 20 open PRs sat red for one shared reason (a rosetta-audit gap on main). Every per-PR number looked ordinary, and no panel showed '20 PRs, one cause, two days'.

What. A new panel, stuck.svg, read live from the GitHub API on every dashboard run:

  • Open PRs that have not moved for 6+ hours, grouped by cause: each check named in the ci-gate status text, merge conflict, draft, dependency bump, shepherd needs-fix.
  • A cause shared by 3+ PRs is drawn red and named in the headline (one problem, not several).
  • The age of the oldest open --red-main-label issue.
  • Also added to the run summary as a table. A failed read keeps the last snapshot.

Where the data comes from. GitHub only (one GraphQL search of open PRs plus one REST call for red-main issues), because the action runs on GitHub and cannot see promoter-bot's local state. So it shows what is stuck, not churn's private holds; the cause text is whatever ci-gate reports.

Checked. 5 new tests, including a replay of the 13-PRs-one-cause pile-up; whole suite 191 pass; ruff count unchanged (35 existing). Ran the real query against gitgalaxy read-only: 3 open PRs, none stuck (correct now the backlog is cleared) and a valid SVG.

Not checked. The published dashboard (needs the Dashboard workflow to run on main), and how it looks inside the README. stuck.svg is added to the action's publish list but not yet embedded in the README.

🤖 Generated with Claude Code

…e of the oldest red main

Reads open PRs from the GitHub API, takes each one's reasons from the ci-gate status text (failing checks, merge conflict,
draft, dependency bump), groups them, and draws a cause shared by 3+ PRs in red. 2026-11-21..23 had ~20 PRs red for one
rosetta-audit gap and no panel showed it. Tests replay that pile-up.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@squid-protocol
squid-protocol marked this pull request as ready for review November 23, 2026 15:21
@squid-protocol
squid-protocol merged commit b393825 into main Nov 23, 2026
1 check passed
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