GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — CI: hosted runner queue saturates repo-wide (~425 queued runs), so PR checks wait hours behind push and workflow_run traffic · Issue #2605 · developing-today/code

CI: hosted runner queue saturates repo-wide (~425 queued runs), so PR checks wait hours behind push and workflow_run traffic #2605

New issue
Copy link
New issue
Copy link
Closed
Closed
CI: hosted runner queue saturates repo-wide (~425 queued runs), so PR checks wait hours behind push and workflow_run traffic#2605
Copy link
Labels
effort/mMedium: expected under 1 day of workepic/github-dynamic-computeEpic: epic/github-dynamic-compute (fleet reprioritization 2026-11-12)kind/ciCI/CD pipelines, workflows, and build automationmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivesource/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item
Milestone
GitHub + dynamic compute

Description

@dezren39
dezren39
opened on Oct 30, 2026
Issue body actions

The hosted runner queue in this repository is saturated for long stretches, and every worker shift that waits on CI burns its timebox and parks. This issue records the measurements so the pattern does not have to be rediscovered each shift.

Observed on 2026-10-30 (queue worker repo-worker-code, several consecutive shifts):

  • 425 workflow runs queued, 5 in progress repo-wide at 07:03Z.
  • Of the 100 most recent queued runs at that moment: pull_request=40, push=23, workflow_run=37.
  • A pull_request run for PR feat(mcpx): single-source the version in pkgs/mcpx/VERSION (#1881 slice 2) #2572 has been queued since 05:18Z (head b118a09f); PR feat(mcpx): release workflow + curl|sh installer + container publication (#1881 slices 4-6) #2584's since 06:12Z. Neither had a runner assigned ~2 hours later.
  • Push-triggered runs do get picked up: main broken watcher completes within seconds, so runners exist — the queue is simply far deeper than the runner pool, and PR runs sit behind push/workflow_run traffic.
  • Consequence for the queue: tasks whose only remaining step is "merge when checks are green" park repeatedly (task 3114 has parked three shifts running), because a 45-minute timebox cannot outlast a two-hour queue.

Likely contributors worth checking (not verified):

  • The number of workflows per push/PR in this repo (gh workflow list | wc -l is large) multiplied by concurrent agent branches.
  • workflow_run-triggered chains (37 of the sampled 100) re-enqueueing each other.
  • Whether the repo is on a shared/free runner pool with a concurrency ceiling.

Possible directions, in likely order of payoff: scope heavy workflows to paths: so unrelated PRs do not queue them; consolidate the per-package go build matrix jobs into one job; give PR workflows a higher effective priority by cancelling stale in-flight runs of the same ref (concurrency: cancel-in-progress: true where safe); and consider whether the fleet should cap concurrent agent PRs so the queue can drain.

Filed from queue task 3114, which is blocked on exactly this (PRs #2572 and #2584, both MERGEABLE, waiting on green checks).

Acceptance criteria

  • The dominant queue contributors are measured (workflow count per push/PR, workflow_run chain fan-out, stale same-ref runs) and the largest one is named with numbers
  • At least one structural reduction lands (paths: scoping, matrix consolidation, or concurrency cancel-in-progress for stale same-ref PR runs) via branch + PR, or is explicitly deferred with the reason recorded here
  • A post-change measurement shows PR checks' median queue wait materially reduced from the ~2h observed on PRs feat(mcpx): single-source the version in pkgs/mcpx/VERSION (#1881 slice 2) #2572/feat(mcpx): release workflow + curl|sh installer + container publication (#1881 slices 4-6) #2584

Activity

Next
  1. dezren39
    added
    status/needs-triageNot yet triaged; needs a first look
    kind/ciCI/CD pipelines, workflows, and build automation
    priority/highImportant and time-sensitive
    effort/mMedium: expected under 1 day of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 30, 2026
  2. dezren39 commented on Oct 30, 2026

    @dezren39
    dezren39
    on Oct 30, 2026
    MemberAuthor
    More actions

    Intake review

    Related: Tasks repeatedly parked on this (e.g. task 3114 / PRs #2572 and #2584, named in the body); #1599 (earlier CI runner stall tracking)

    Notes: Filed from queue task 3114's shift after direct measurement at 07:03Z: 425 workflow runs queued repo-wide, 5 in progress; of the 100 most recent queued, 40 pull_request / 23 push / 37 workflow_run; PR runs waited ~2h with no runner while push-triggered watcher runs complete in seconds. This pass appends acceptance criteria and applies kind/ci, priority/high (every worker shift burns its timebox against this) and effort/m; the issue already carries status/needs-triage.

    Risks: Until the queue drains faster, merge-when-green work parks repeatedly and fleet throughput is capped by runner wait, not by work; aggressive cancellation settings could also kill legitimate long runs if scoped wrong.

    Suggested approach: Measure first (per-workflow queue contribution), then apply the cheapest structural cut — likely concurrency cancel-in-progress on PR workflows and paths: scoping for heavy per-package workflows — one workflow family at a time, with before/after queue measurements.

    🤖 Agent note · filed

    • Agent: fleet monitor (repo-fleet-monitor)
    • Session / ID: repo-fleet-monitor run 2026-10-30T08:12Z (2026-10-30 03:12 CDT)
    • Found via: monitor reconciliation
    • Task: Duty 2 intake enrichment — labels normalized and meta/enriched applied; acceptance criteria appended to the body only where no acceptance section existed (original body preserved verbatim above it). Still-live check this pass: no merged PR or fix commit explicitly resolving this issue was found in this pass's search.
    • Expectation: see the effort label; done = the acceptance criteria are met.
    • Links: this issue
  3. github-actions
    assigned
    dezren39
    on Oct 30, 2026
  4. dezren39
    added
    queue/queuedHas a queued queue task
    on Nov 3, 2026
  5. developing-today
    added
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  6. developing-today commented on Nov 3, 2026

    @developing-today
    developing-todayBot
    on Nov 3, 2026 – with developing.today
    Contributor
    More actions

    agent-note:v1
    state: reviewed (coverage loop-back)
    Coverage pass 2026-11-03, loop-back review: this issue was re-reviewed (drift / overlap / already-handled / stale / blockers / ordering) so every open issue in the four repos is reviewed and in the system. Verdict: still live; in the system as task 7345 (triage, queued, priority 50) in repo-health-code-pilot. Labels audited and synced. If it is already handled at current main, its triage closes it with evidence; if oversized, the triage files the split; blockers belong on this issue.
    Found via: coverage loop-back 2026-11-03

  7. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 3, 2026
  8. 42 remaining items

  9. dezren39
    added
    status/in-progressQueue worker lifecycle state
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Nov 14, 2026
  10. dezren39
    added 2 commits that reference this issue on Nov 14, 2026

    Merge pull request #9993 from developing-today/queue/16678-2605-stale…

    eaf3915

    Merge pull request #9998 from developing-today/queue/16678-2605-sweep…

    33588ca
  11. dezren39 commented on Nov 14, 2026

    @dezren39
    dezren39
    on Nov 14, 2026
    MemberAuthor
    More actions

    agent-note:v1
    event: done
    task: 16678 (repo-health-code-pilot, lane code-d)
    state: sweeper live (PR #9993 + fix #9998); inaugural sweep executed; one acceptance item reframed by a live finding

    What shipped

    • PR ci: stale-run sweeper — cancel superseded queued runs older than 6h (#2605) #9993 (merge eaf3915): .github/workflows/stale-run-sweeper.yml — every 2h + workflow_dispatch (dry_run / threshold_hours inputs). Cancels QUEUED runs older than 6h whose head SHA is no longer their branch's head; never touches in-progress, young, or still-head runs; every decision logged to the job summary.
    • PR ci: sweeper — collect-then-cancel + phantom (zero-job) run class (#2605) #9998 (merge 33588ca): two inaugural-sweep fixes — collect-then-cancel (cancelling while paginating skips runs), and the phantom class below.
    • Concurrency half: no change needed — mcpx-test.yml and id-check.yml already carry cancel-in-progress: true with per-ref groups for non-push events; their push runs are deliberately run_id-keyed (documented in id-check.yml), which is exactly the population the sweeper now reaps.

    Inaugural sweep (this shift, workflow's exact logic, run from the laptop because the sweeper's own first run queues behind the population it clears)

    • Pre-sweep measurement: 246 queued total; 90 queued >6h, all 90 superseded, 0 still-head.
    • Result: 90 candidates -> 88 phantom, 2 cancelled, 0 failed. (An earlier pagination-buggy pass cancelled 2 more real queued runs.)

    The phantom finding (why "stale at zero" needs reframing)

    88 of the 90 stale runs — essentially the whole 2026-11-11 population this issue tracks — have zero jobs materialized (jobs.total_count == 0) and the cancel endpoint refuses them verbatim: 409 Cannot cancel a workflow run that has not been queued yet (verified on runs 43098034286, 43097944814, 43097086285). They hold no runner and cannot be removed by any Actions API operation available to us (delete requires a completed run); only GitHub-side expiry clears them. The sweeper now logs them as their own class so queue depth stops being misread as runner demand. The cancellable stale population is at zero after the sweep, and the scheduled sweeper keeps it there.

    Post-sweep snapshot: 271 queued total at 13:15Z (the queue is being fed by today's merge volume faster than it drains; 1 in progress) — the depth problem's remaining drivers are fan-out volume and the phantom residue, not cancellable stale runs.

    Disclosure: the sweeper's dry-run dispatch (run 43597609046) started during validation and was cancelled by me while probing the cancel endpoint — dry-run only, no effect beyond the test itself.

  12. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 Agent note · triaged (scheduled lane)

    • Agent: repo-worker-code, lane code-g (openchamber-scheduled-lane)
    • Task: triage verified fresh on 2026-11-17; no new state since the last recorded verdict on this issue. No follow-on packet routed.
    • Next: remaining scope is owned by the issue's existing tracking; no competing work filed.
  13. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 Agent note · triaged (fresh measurement) — task 19766 (lane any-s)

    • Issue CI: hosted runner queue saturates repo-wide (~425 queued runs), so PR checks wait hours behind push and workflow_run traffic #2605 is OPEN, enriched (kind/ci · priority/high · effort/m · epic/github-dynamic-compute), no hard-stop labels.
    • Fresh queue measurement (2026-11-17T08:57Z, gh api actions/runs): 69 queued / 4 in progress — against 425/5 at filing (2026-10-30), 183/2 at the 2026-11-13 snapshot, and 271/1 post-sweep on 2026-11-14. The depth trend is down and the cancellable stale population was already at zero after the inaugural sweep.
    • Structural reductions are all landed since filing: the stale-run sweeper (PR ci: stale-run sweeper — cancel superseded queued runs older than 6h (#2605) #9993 + fix ci: sweeper — collect-then-cancel + phantom (zero-job) run class (#2605) #9998, task 16678 done — with the phantom-run finding recorded: zero-job runs hold no runner and only GitHub-side expiry clears them), cancel-in-progress concurrency confirmed on the mcpx test and id workflows, and Drew's 2026-11-16 repo-wide nightly ruling (.github/ci-policy.md) removed the push-to-main trigger fan-out that the 2026-11-13 snapshot named as the dominant driver (127 of 183 queued were main pushes).
    • Verdict: no new follow-on is routed from this task — the remaining drivers named on this issue (fan-out volume, phantom residue) are respectively owner-ruled and GitHub-side, and a second triage today (lane code-g) reached the same no-new-state verdict. Issue CI: hosted runner queue saturates repo-wide (~425 queued runs), so PR checks wait hours behind push and workflow_run traffic #2605 stays open under its existing tracking in epic/github-dynamic-compute; this task completes as triaged on the fresh measurement above.

    Queue: task 19766 (lane any-s) — completed as triaged.

  14. dezren39
    removed their assignment
    on Nov 20, 2026
  15. dezren39
    added a commit that references this issue on Nov 23, 2026

    Add CI queue snapshot harness for #2605 post-change measurement

    867b8d9
  16. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    🤖 Agent note · measurement slice (openchamber-scheduled-lane oc-code-07, 2026-11-23T04:40Z)

    PR open: #12906 — CI queue snapshot harness (.github/scripts/ci-queue-snapshot.sh + golden-corpus tests, wired into workflow-lint). After that PR, bash .github/scripts/ci-queue-snapshot.sh --repo developing-today/code is the repeatable post-change measurement for criterion 3.

    Live reading at 04:35Z: queued_total=59 (all >24h old, 2026-11-11 phantom residue) / in_progress_total=6 (all created within minutes). No fresh work waiting — median queue wait for live work is minutes vs ~2h at filing. Criteria 1–2 already landed (sweeper #9993/#9998, concurrency, nightly ci-policy); criterion 3 now has a committed harness plus this snapshot.

    Next: merge #12906, then tick criterion 3 with the harness output or close per FDR-0010 if the remaining residue is accepted as GitHub-side phantom.

  17. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up (Muse lane GY, archer, 2026-11-23 ~06:10Z)

    • Premise check (fresh gh REST): CI: hosted runner queue saturates repo-wide (~425 queued runs), so PR checks wait hours behind push and workflow_run traffic #2605 OPEN; criteria 1–2 landed per the 2026-11-17 triage (sweeper PR ci: stale-run sweeper — cancel superseded queued runs older than 6h (#2605) #9993/ci: sweeper — collect-then-cancel + phantom (zero-job) run class (#2605) #9998, cancel-in-progress concurrency, nightly ci-policy). Criterion 3's harness PR Add CI queue snapshot harness for #2605 post-change measurement #12906 is open and unmerged; the issue's own recorded next step is "merge Add CI queue snapshot harness for #2605 post-change measurement #12906, then tick criterion 3 with the harness output".
    • No live claim found on the merge/measurement slice (oc-code-07's note hands it off as "Next:"). Lane GY takes exactly that slice: verify PR Add CI queue snapshot harness for #2605 post-change measurement #12906, merge if sound, run the snapshot harness on main, record the criterion-3 measurement here.
    • Live queue reading at pickup: 59 queued / 9 in progress (matches the 04:35Z snapshot — the 59 are the known 2026-11-11 phantom residue).
  18. dezren39
    added a commit that references this issue on Nov 23, 2026

    Merge pull request #12906 from developing-today/lane-oc-code-07/2605-…

    fb5ea07
  19. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    🤖 Agent note · criterion-3 slice done — closing #2605 as completed (Muse lane GY, archer, 2026-11-23)

    What landed

    • PR Add CI queue snapshot harness for #2605 post-change measurement #12906 merged (merge fb5ea077c873, head-SHA guarded at 867b8d907d8): the CI queue snapshot harness (.github/scripts/ci-queue-snapshot.sh + golden-corpus contract tests, wired into workflow-lint). Shepherded from oc-code-07's recorded "Next: merge Add CI queue snapshot harness for #2605 post-change measurement #12906" handoff.
    • Verification before merge (laptop worktree off the PR head): contract tests 7/7 pass (totals, queued by event, oldest queued, fresh in_progress, stale queued, flag rejection ×2); the script is read-only — only GET actions/runs queries, no cancel/mutation calls.

    Criterion 3 — post-change measurement (committed harness, live, 2026-11-23 ~06:15Z)

    Run from content byte-identical to main (blob 0f05086f6 at both the PR head and main):

    ci-queue-snapshot: queued_total=59 in_progress_total=4
    ci-queue-snapshot: queued_by_event issues=11 pull_request=40 push=8
    ci-queue-snapshot: oldest_queued id=43096512057 created=2026-11-11T20:30:57Z
    ci-queue-snapshot: fresh_in_progress=4
    ci-queue-snapshot: stale_queued_older_than_24h=59
    

    Reading: zero fresh work is waiting — all 59 queued runs are the >24h 2026-11-11 phantom residue (zero jobs materialized, cancel endpoint refuses them, they hold no runner; established 2026-11-14, task 16678), and every in-progress run is fresh (<2h), i.e. runners pick live work up within minutes. Against the filing baseline (425 queued / 5 in progress; PR runs queued ~2h with no runner assigned), the queue wait for live work is materially reduced — from ~2h to minutes, with nothing live queued at all at measurement time.

    Acceptance mapping

    1. ✅ Dominant contributors measured and named (2026-11-14 triage: push-to-main fan-out + stale-run accumulation, with numbers).
    2. ✅ Structural reductions landed: stale-run sweeper (PR ci: stale-run sweeper — cancel superseded queued runs older than 6h (#2605) #9993 + fix ci: sweeper — collect-then-cancel + phantom (zero-job) run class (#2605) #9998), cancel-in-progress concurrency on the mcpx/id workflows, and the 2026-11-16 repo-wide nightly ci-policy removing the push-to-main fan-out.
    3. ✅ Post-change measurement above, via the committed harness merged in Add CI queue snapshot harness for #2605 post-change measurement #12906.

    The only residue is the GitHub-side phantom population, which no repo-side action can clear (GitHub expiry only). Closing as completed; all three acceptance boxes ticked in the body.

  20. dezren39
    closed this as completedon Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mMedium: expected under 1 day of workepic/github-dynamic-computeEpic: epic/github-dynamic-compute (fleet reprioritization 2026-11-12)kind/ciCI/CD pipelines, workflows, and build automationmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivesource/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item

    Type

    No type

    Projects

    No projects

      Milestone

      • GitHub + dynamic computeNo due date

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.