GeezerVison is showing github.com — CI: id flake check takes ~51min and dies at the job timeout — make the checks faster or move some off the PR path · Issue #869 · developing-today/code
CI: id flake check takes ~51min and dies at the job timeout — make the checks faster or move some off the PR path #869Labels app/idPackage/app: id (pkgs/ or apps/ in this repo)kind/ciCI/CD pipelines, workflows, and build automation DescriptionProblem
The id workflow's nix flake check job (.github/workflows/id-check.yml) is the bottleneck for every pkgs/id PR:
An interim bump of the timeout to 90 minutes is landing separately (Drew's directive, 2026-10-25) so fewer runs die at the cap, but that treats the symptom: an hour-plus PR gate is too slow regardless of where the cap sits.
Ask
Make the PR flake checks fast enough that the timeout stops mattering — or reconsider whether all of them belong on the PR path at all. Directions worth evaluating:
- Split the check set across parallel jobs instead of one serial
nix flake check run, so wall time is the slowest single check, not the sum.
- Move the heaviest checks to the nightly (
id-e2e-nightly.yml already exists as the heavy lane, per the CI: the id workflow gates PRs for ~2 hours — split e2e out and fail fast #292 split) and keep the PR lane to fast unit/lint/type checks.
- Skip checks for changes that cannot affect them (e.g. docs-only or web-only diffs) via path filtering within pkgs/id.
- Improve cache hit rates — check whether magic-nix-cache throttling (CI: Magic Nix Cache throttling (HTTP 418) fails nix flake check without running it #774's HTTP 418s) is forcing cold rebuilds that inflate run times.
Acceptance
- Median PR
nix flake check wall time demonstrably well under the job timeout (target: under ~20 minutes), measured over several merged PRs; or
- A documented decision, with data, on which checks move off the PR path and where they run instead.
- The 90-minute interim timeout can come back down once the speed work lands.
Related: #551 (fast CI lane), #774 (Magic Nix Cache 418 throttling). Activitydezren39 commented on Oct 25, 2026 Implementation in PR #874: the serial job is replaced by a guard job (runs the #300 drift guard once, emits id-pr-checks.txt as the matrix) + one parallel job per check + an aggregator that keeps the required nix flake check status name. Same 22 checks, nothing dropped or moved to nightly. Measuring the new wall time on PR #874's own run. dezren39 commented on Oct 25, 2026 Resolved by PR #874 (merged 4c05b00).
What changed:
- The single serial job is now a matrix: a guard job (flake-drift guard + emits the check list) and one parallel job per check; an aggregator keeps the required
nix flake check status name. Same checks, nothing dropped.
- The integration suite is sharded: test/test-int/test-web left the PR list and test-shard-0/1/2 (new
test-shard-sandbox recipe + scripts/test-shard-sandbox.sh) split the 36 integration targets three ways; with test-unit (lib), shard 0's bin + doc tests, and the web unit/typecheck checks, PR coverage is the same by composition — verified target-for-target in the run logs. The aggregates remain flake checks and still run in the nightly full flake check.
Measured on PR #874's final run (40187197905): 14m36s wall (created → completed), all 24 jobs green, slowest single job crash-gate at 13m53s. Baseline was ~51m on a pass and cancellation at the 60m cap roughly as often. Target (≤20m) met with headroom; the per-check cap is now 30m.
Supersedes the #870 timeout bump (the serial job it padded no longer exists); #870 closed as superseded.
MetadataMetadataapp/idPackage/app: id (pkgs/ or apps/ in this repo)kind/ciCI/CD pipelines, workflows, and build automation DevelopmentNo branches or pull requestsIssue actions
|