LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-grace
createdAtNov 20, 2026, 1:02 AM
updatedAtNov 21, 2026, 5:09 PM
githubUrlhttps://github.com/neomjs/neo/issues/21541
authorneo-opus-vega
commentsCount7
parentIssuenull
subIssues
21665 One classify run serves every engine test tier
subIssuesCompleted1
subIssuesTotal1
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 21, 2026, 5:09 PM

PR CI waits for runners far longer than it runs

Closed v14.0.0/archive-v14-0-0-chunk-5 enhancementaiperformancebuild
neo-opus-vega
neo-opus-vega commented on Nov 20, 2026, 1:02 AM

Context

The operator, 19 Nov: "if we need to wait half an hour for one PR, this is severely slowing our team down." Measured on #21450's push at 364b5fc79e (23:24:54Z), from each job's created, started and completed times in the Actions API:

Job Waited for a runner Ran
E2E "Classify test scope" (created 3m48s after the run) 5m16s 16 s
15 e2e shards 1–16 min, two still queued at 23:50 ~4 min each
Engine Tests classify 5m38s 3 s
unit 4m14s 3m41s
PR Baseline: guards, PR baseline, Skills materialized 10–14 min 20–90 s each

At 23:50Z the organisation's pool of 20 runners also served neo-agent-brain's 28 running and 28 queued runs (neomjs/neo-agent-brain has its own ticket, filed alongside).

The Problem

Most of a PR's CI wall time is spent waiting for a runner, and every fail-fast stage queues again. An examples PR starts about 30 jobs, 15 of them e2e shards that each pay their own setup, and the separate classify job puts one more full queue wait on the e2e path.

The Architectural Reality

Design authority: n/a. This changes how jobs are packed, not what CI checks.

  • test-e2e.yml and test.yml each run "Classify test scope" as their own job before the shards and units; it does seconds of work. It also decides what starts at all. Over 40 completed PR runs of E2E (engine tier) it ruled the tier out 10 times, sized it to 2 or 7 shards 9 times, and ran all 15 nineteen times: about 257 shard starts saved for 40 classify runners (issuecomment-7047158369).
  • Shards are sized so that none passes a time ceiling (#21493, #21287), which is right on an idle pool and costs one setup per shard on a saturated one.
  • codeql-analysis.yml has no concurrency group, so a superseded push still runs it (now #21635). file-size-guard.yml has none on purpose, because an edited re-run would leave a cancelled sibling red on an unchanged head (#20064). test-e2e.yml, test.yml, build.yml, pr-baseline.yml and consumer-runtime-build.yml already cancel in progress.
  • #21504 folds the File Size Guard into the shared baseline's guards job: the first of the small jobs to merge.

The Fix

  1. One classification serves both test workflows, where each runs its own today; the tier skip and the matrix sizing stay. A workflow-level paths-ignore for files no tier reads would start neither workflow. (Revised 2026-11-20. The first version removed the classify job, but a shard that classifies itself still takes a runner slot, which costs about five queue slots per push on this pool.)
  2. CodeQL cancels a superseded PR run: #21635.

Moved out of this ticket on 2026-11-20:

  • A saturation signal for the shard planner, so a saturated pool gets fewer, longer shards. Where the signal comes from and what it changes is a design question for a Discussion before any ticket. Now a divergence row on D#21725 (comment), with this ticket's timings and the six-minute ceiling's 13-shard floor as its evidence.
  • Folding the remaining small jobs into one, which is #21504's scope.

Acceptance Criteria

  • AC-1: One classify job per push serves both test-e2e.yml and test.yml, and a tier it rules out still starts no runner (receipt: jobs API counts before and after). Receipt (#21666).
  • AC-2: codeql-analysis.yml and file-size-guard.yml cancel a superseded run of the same PR. Moved to #21635 for CodeQL; File Size Guard keeps no group (#20064).
  • AC-3: A receipt on three examples PRs shows push-to-green wall time and per-job queue wait before and after. Receipt: three before, four after.

Out of Scope

  • neo-agent-brain's workflows (its own ticket).
  • The merge path and the shared catalog files (#21539, and the merge queue ticket filed alongside).
  • CodeQL concurrency (#21635), the small-job fold (#21504) and the shard planner's saturation signal (D#21725).

Related

#21635, #21504, #21500, #21493, #21287, #21539, the merge queue ticket and neomjs/neo-agent-brain#1869 filed alongside.

handoff: @neo-opus-grace, who owns the CI-efficiency lane (#21500, #21504, #21493) and has the measurement (A2A 60d98444). Accepted 2026-11-20; the body was revised that day by the assignee at the author's request, after the intake measurement (issuecomment-7047158369).

Live latest-open + closed sweep: latest 20 open in neo (#21535..#21371) plus title searches (runner queue, e2e shards) at 2026-11-19T23:58:14Z; the closed shard tickets (#21287, #21259, #20521) sized shards to a ceiling and exclude nothing here. Backlog band: 65 open (red); #21504 is the nearest open owner and stays separate. A2A claim sweep: latest 30 messages in all read-states, newest 23:58:02Z; no claim. MC sweep: "stale PR cascade … merge queue … runner slots", 6 results; no runner-contention decision.

Origin Session ID: 4aafd3cc-5d2f-4874-9b04-6e4634ab6378

Retrieval Hint: "PR CI wall time is runner queue: classify stage, 15 e2e shards, small jobs, CodeQL not cancelled"