Skip to content

CI: where the minutes go, and what to change #1457

Closed

Description

@DrunkOnJava

An audit of .github, measured on recent runs rather than read off the YAML. CI is in better shape than its length suggests: failures are rare and almost all real, a ready pull request takes about 7 minutes, and queue waits are short. What follows is the avoidable part.

Where the time goes

Workflow Job-minutes Largest parts
CI, ready pull request 66 a run (median of 10) Python wheel 7.0 (5.3 in maturin), three viewer legs 5.5 to 6.6 each (about 2 each building the WASM), Corpus health 6.3
CI, main 82 a run Windows wheel 9.4, macOS wheel 6.5
Deploy viewer 27 a run the WASM built three times: 4.1, 4.3 and 3.6
CodeQL 9 a run Analyze (rust) 6.9
Measure 720 over 36 dispatched runs the Measure step 66%, Build 21%, every fetch together about 3%

The longest wait for a Measure shard to start had a median of 3 minutes and a maximum of 9.7 over those runs. None of the 33 dispatched runs whose inputs could be read repeats another's commit and inputs.

Since 04:00 UTC on 2026-11-05, over 28 landings: 14,349 job-minutes. Full CI on pull requests is 51% (119 runs), CI on main 14%, Measure 13% (90 runs), CodeQL 11% (185 runs), a draft's fast CI 7%, Deploy viewer 3%. From 2026-11-04 to 11-05, of 328 full CI runs, 219 were a lane's own commit on a ready pull request, 57 the queue's update merges (none failed) and 52 a lane's merge of main (one failed, on semver checks). The Actions cache was at its 10 GB limit with 1,819 entries, 1,185 of them unusable (5.2 GB; deleted by hand on 2026-11-05).

What to change

Left alone, and why

  • A merge queue would be the canonical fix for repeated CI on update merges, but GitHub offers it only to repositories owned by an organization.
  • Skipping CI's jobs on documentation-only pull requests. Only 4 of the last 60 merged pull requests were, and tests/support_matrix.rs and tests/binary_inventory.rs read those documents, so the checks that would be skipped are the ones they can break.
  • The unnameable_types rebuild in the clippy job. That job takes 1.7 minutes.
  • Moving Deploy viewer to workflow_run to free a runner during its wait for CI: that job's median is 0.5 minutes, since CI has usually finished by then.
  • dependabot.yml already updates action pins, and $/ is the form in the files and runs in CI.
  • The [[bin]] awk in release-binaries.yml: a missing binary fails its cp under set -e, and tests/binary_inventory.rs pins the list.
  • The Measure step itself is exports and scorers doing the work asked of them. Its own cache of scorer output already exists.

Activity

  1. 17 remaining items

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions