Repository navigation
Description
Context
The scheduled ci-timings workflow has failed on every run since its last success on 2026-11-09 at 17:47 UTC (at 22a2a387e). It is still red on 2026-11-10: run 42917870722 at 22:48 UTC on 91e54be37 failed the same way.
What the failing step prints: the collect command (.github/workflows/ci-timings.yml:41) reads every run in the two-day window, prints its coverage line with "errors":0 and a non-zero "incompleteAttempts", and exits 1 without saying why. The exit conditions are in scripts/ci-timings.ts:638-640.
Cause (diagnosed 2026-11-10 from the run's own artifact)
The ci-timings artifact of run 42917870722 holds 1174 run snapshots. Exactly five carry a problem, all the same one: Completed attempt has no available jobs (scripts/ci-timings.ts:136). That problem is not a budget problem, so the second-to-last exit condition (snapshots ... some(p => !budgetProblem(p)), line 639) fires.
The five attempts are pull_request runs of ci.yml and contract.yml created between 2026-11-09 18:06 and 18:19 UTC: 42671113107, 42671180901, 42671184313, 42672280336 and 42673054655. Each is completed with conclusion failure and zero jobs. GitHub's API reports total_count: 0 for their job inventory, and gh run view 42671180901 says "This run likely failed because of a workflow file issue". So these runs never created a job: there is nothing to collect, and the collector treats that known state as a missing inventory.
The seed (scripts/ci-timing-seed.ts:44) drops snapshots older than the window, so the collector should turn green by itself once the last of the five leaves the two-day window: the first possible green run is the 2026-11-11 18:43 UTC one. That is an inference, not an observation. Any later workflow-file failure on any branch turns it red again for two days, so the fix is still needed.
Scope
- Classify a completed, non-cancelled attempt whose job inventory GitHub reports as
total_count: 0with conclusionfailure(orstartup_failure) as an attempt that created no jobs. Record it in the snapshot and count it in the report coverage, for example asnoJobAttempts, instead of recording a collection problem. - Every other zero-job case keeps the existing
Completed attempt has no available jobsproblem and still fails the step. This includes a failed inventory read and any other conclusion. - When
collectexits 1, it prints each reason that fired: the non-budget errors, the enrichment problems, the snapshot problems (with run ids, capped), and the missing attempts.
Out of scope
- Changing what the archive collects for runs that have jobs.
- The request budget, the window and the seeding.
Acceptance criteria
- A unit test drives
collect(orcollectAttempt,scripts/ci-timings.ts:114-136) with a scripted API that returns a completedfailurerun withtotal_count: 0. The run is recorded as having created no jobs, it appears in coverage, and the process exit code is 0. The test fails on the tree before the change. - A completed
successrun with zero jobs, and a run whose job inventory read fails, still exit 1. Each test names its reason on stderr or stdout. - A test asserts that the exit-1 output names the run id of a snapshot problem.
Existing tests: tests/ci-timings-collection.test.ts and tests/ci-timings.test.ts. None asserts the zero-job problem today.
Verification
bun run teston the changed test file, with a failing-first receipt.- After merge, the next scheduled
ci-timingsrun onmainsucceeds, or fails with a reason that it names.
Contract impact
None. The timing archive is internal CI evidence, not a compatibility contract.
Triage 2026-11-10 at main 91e54be37: diagnosed the cause from run 42917870722's artifact and the GitHub job inventory of one of the five runs. Replaced "needs scoping" with that diagnosis and wrote acceptance criteria. Both citations still hold.
Activity