Repository navigation
Description
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
-
Measure builds once per side. Every shard of a commit misses the binary cache at once and builds the same binaries, so a 12-shard run builds 12 times. Build each side in a job of its own and hand the binaries to the shards as an artifact. The shards then need no Rust toolchain and run no build script (
tools/ci/measure-reference-models.shnever calls cargo). Done in ci(measure): build each side once and hand the binaries to its shards as an artifact (#1457) #1459. -
The viewer builds its WASM once per run, and Deploy viewer tests what it publishes. CI's three legs each build it. Deploy viewer builds it three times and publishes the
buildjob's copy, whiletestsandmeasureeach test a build of their own, so the file published is not a file that was tested. Done in ci(viewer): build the WASM once per run, and test the file Deploy viewer publishes (#1457) #1458. -
CI's wheels build without LTO. They are smoke builds;
publish.ymlbuilds the release ones. CI already builds the viewer's WASM this way. Therust-cachestep there restores aciprofile cache that--releasein a container cannot use. Done in ci: wheels without LTO, CodeQL on ready pull requests, one RE1 pin list, a retried SARIF upload (#1457) #1461. -
One pin list, one action and one cache for the RE1 models. The same hashes are in four places, with two cache keys and two fetches that do not cache at all, one of which has a fallback host the others lack. Done in ci: wheels without LTO, CodeQL on ready pull requests, one RE1 pin list, a retried SARIF upload (#1457) #1461.
-
publish.yml: a dated nightly for the docs.rs preview, and no--with-deps. It floats onnightlywhereci.ymlpins a date, so a nightly regression can stop a release that no pull request saw.playwright install --with-depsis the apt stepviewer-test.ymlremoved after it stalled on a mirror. Done in ci(release): a preflight job refuses a bad tag before any build, and a failed release can be re-run (#1457) #1460. -
A failed SARIF upload is retried. It turned zizmor and Scorecard red on 2026-11-05 with no finding; each passed when rerun. Done in ci: wheels without LTO, CodeQL on ready pull requests, one RE1 pin list, a retried SARIF upload (#1457) #1461.
-
CodeQL skips drafts and documentation-only pull requests. 185 runs and 1,630 job-minutes in a day, on every draft push too. It is not required, but landing waits for it. Done in ci: wheels without LTO, CodeQL on ready pull requests, one RE1 pin list, a retried SARIF upload (#1457) #1461.
-
Issue forms. The Revit release lists stop at 2026 and start at 2016, and
re_finding.ymllinksdocs/corpus-intake.mdwith a relative path that leaves the repository. Done in ci: time-bound every job, pin Windows and macOS runners, lint the workflows and widen the PII guard (#1457) #1462. -
Deploy viewer's trigger names neither
viewer-test.ymlnor.github/actions. Done in ci(viewer): build the WASM once per run, and test the file Deploy viewer publishes (#1457) #1458. -
Composite actions for setup, last, since it touches every workflow: the Rust install is repeated 27 times and the
wasm-bindgensteps 3 times. Done in ci: the Rust install and the wasm-bindgen steps are two composite actions (#1457) #1491. -
publish.ymlpreflight, a cheap first job:CI passedon the tagged commit, the tag verified and onmainor a hotfix branch, every version in agreement. Today none of that is checked, and the version check runs after seven wheel builds. Done in ci(release): a preflight job refuses a bad tag before any build, and a failed release can be re-run (#1457) #1460. -
A release can be re-run: crates already published are skipped. One global publish group, so two tags cannot race for ghcr
latest.SHA256SUMSattested. The Intel macOS CLI smoked under Rosetta. Done in ci(release): a preflight job refuses a bad tag before any build, and a failed release can be re-run (#1457) #1460. -
PII guard: the patterns start with
[a-z], so/Users/Griffin/andC:\Users\Griffin\pass, and every workflow file is exempt where only the one defining the patterns need be. The wider patterns match nothing onmaintoday. Done in ci: time-bound every job, pin Windows and macOS runners, lint the workflows and widen the PII guard (#1457) #1462. -
Timeouts: 44 of 52 jobs have none, so they fall back to 360 minutes. Set them, with a check that fails on a job without one. Done in ci: time-bound every job, pin Windows and macOS runners, lint the workflows and widen the PII guard (#1457) #1462.
-
actionlint with shellcheck in CI. It finds nothing today but the
$/form it does not know. Done in ci: time-bound every job, pin Windows and macOS runners, lint the workflows and widen the PII guard (#1457) #1462. -
Scheduled work:
cargo auditruns only on pushes, andfuzz/Cargo.lockandtools/ci/witness-ifc-lite/Cargo.lockare never audited; a NOT MEASURED that persists onmainreaches nobody; Corpus nightly's failures reach nobody;clean_caches.pyis a manual chore while the cache sits at its limit. Done in ci: scheduled advisory audits, NOT MEASURED streaks, cache cleaning and a floating-nightly docs build, each failure one issue (#1457) #1463. -
Pinned Windows and macOS runner labels, by the reasoning that pins Ubuntu:
windows-latestiswindows-2025-vs2026andmacos-latestmacos-26-arm64today. Done in ci: time-bound every job, pin Windows and macOS runners, lint the workflows and widen the PII guard (#1457) #1462. -
Stale comments and drift checks: the
fastinput's description leaves outcorpus-mcp, the test job's header predates the pure-helper exception, and the MSRV and documentation-only lists are kept in step by hand. Done in ci: time-bound every job, pin Windows and macOS runners, lint the workflows and widen the PII guard (#1457) #1462.
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.rsandtests/binary_inventory.rsread those documents, so the checks that would be skipped are the ones they can break. - The
unnameable_typesrebuild in the clippy job. That job takes 1.7 minutes. - Moving Deploy viewer to
workflow_runto free a runner during its wait for CI: that job's median is 0.5 minutes, since CI has usually finished by then. dependabot.ymlalready updates action pins, and$/is the form in the files and runs in CI.- The
[[bin]]awk inrelease-binaries.yml: a missing binary fails itscpunderset -e, andtests/binary_inventory.rspins 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
ci: cargo-deny 0.20 takes --config before check; audit the committed …
ci: size the scheduled checks' timeouts from their first runs (#1457)
ci: IfcOpenShell's limit is 3 times its slowest run, and the test job…
ci(viewer): the legs check that the site they serve holds the tested …
ci(measure): a side whose build failed no longer takes the other side…
ci(release): the preflight refuses a tag on a commit CI skipped, its …
docs(ci): CodeQL runs on ready pull requests that change more than do…
ci: the SARIF retries run in a job of their own, and fetch-re1 fills …
ci(tmp): second proofs for #1457: both retry shapes with a refused to…
ci: report a job that hit its timeout, follow every job's NOT MEASURE…
ci(tmp): remove the proof workflows and the temporary save condition (#…
ci: the wheel job's comment says what a wheel-only cache measured (#1457
ci: say a timed-out job's run was not cancelled by anyone (#1457)
ci: every job has a timeout and no runner is -latest, so check-workfl…
17 remaining items
ci: scheduled advisory audits, NOT MEASURED streaks, cache cleaning a…
Merge origin/main into lane/1457-ci-gates
ci: time-bound every job, pin Windows and macOS runners, lint the wor…
ci: the IfcOpenShell job's rustfmt comes with its toolchain, through …
ci: the Rust install and the wasm-bindgen steps are two composite act…
feat(viewer): list an element's saved parameters in the info panel, r…
ci: keep five tests of the legs check, the ones for a mistake that le…
ci(codeql): a failed SARIF upload is retried once, in a job of its own (
ci: the Rust install is tried three times, so a failed download does …
ci(viewer): the viewer tests end with their legs, not with a job that…
ci(release): the release page's wheels and sdist are in SHA256SUMS an…
chore(release): prepare v0.16.0 (#1564)
ci(release): four comments name the guards this line does not carry (#…
ci(viewer): Deploy viewer waits through the wait-for-check action, so…