Skip to content

ci: keep job creation time and report runner-slot wait #2952

Closed

Description

@schlessera

Part of #2948 (task 4).

Context

The #2939 ruling (2026-10-25) makes runner-slot wait, the time from a job being created to it starting, a first-class metric, because once heavy proof moves to hosted runners, account concurrency becomes the next ceiling. The collector does not keep a job's creation time: RawJob has started_at and completed_at but no created_at (scripts/ci-timings.ts:20-23), although the GitHub jobs API returns it.

Scope

  • Keep each job's created_at in the normalized job record (a schema version bump if the record kind is versioned).
  • Report slot wait per workflow, job category and event type (pull request draft, pull request ready, push to main, dispatch): median, p90, max and sample count, plus the share of jobs waiting over 5 minutes.
  • Mark records from archives that predate the field as unknown, never zero.

Out of scope

  • Changing runner counts, shards or concurrency.

Acceptance criteria

  • A fixture job with created_at 10:00:00 and started_at 10:03:30 reports 210 s of slot wait; proven by a test that fails before the change.
  • A legacy record without created_at is reported as unknown and excluded from percentiles, with its count shown.
  • docs/process/ci-throughput.md documents the metric.

Verification

bun run test on the touched ci-timings tests; a mutation that treats a missing created_at as zero makes the named test fail.

Contract impact

None.

Activity

  1. added
    type: choreTooling, CI, release plumbing, dependencies.
    area: ciCI workflows, the gates they run, release scripts, packaging.
    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.
    on Oct 25, 2026
  2. added this to the 0.45.0 milestone on Oct 25, 2026
  3. added
    priority: p2Wanted, not scheduled. Pulled in when a milestone has room.
    on Oct 25, 2026
  4. schlessera commented on Nov 2, 2026

    @schlessera
    OwnerAuthor

    2026-11-02 evidence on yielding admission:

    With the reservation busy nearly continuously, admission-time yielding can starve draft feedback outright. That makes this issue's measurement more urgent than "is the approximation enough": the count of admission windows that yield out completely is the number to watch.

  5. self-assigned this
    on Nov 15, 2026
  6. schlessera commented on Nov 15, 2026

    @schlessera
    OwnerAuthor

    Claimed for implementation. Claim token: claim-79243619. Branch: chore/2952-runner-slot-wait.

    No active implementation PR; cited-path collision scan running.

  7. schlessera commented on Nov 16, 2026

    @schlessera
    OwnerAuthor

    Merged in #4052 as 017af32f9 through the integration lease (orchestrator merge queue for 0.45.0). Candidate confirmation passed on the exact head; the squash's own main run carries the post-merge heavy categories.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: ciCI workflows, the gates they run, release scripts, packaging.priority: p2Wanted, not scheduled. Pulled in when a milestone has room.type: choreTooling, CI, release plumbing, dependencies.

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions