CI is slow, time to green, how long do checks take, p50/p90, make CI faster, speed up a job or spec, hillclimb CI. Use to measure PR CI time, find where a job's seconds go, and land speedups one measured change at a time without weakening any check.
93%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
CI speed is a measured number, not a feeling. Measure it the same way every time, find where the seconds actually go, change one thing, measure again, keep it only if the number moved and every check still guards what it did.
node .github/scripts/ci-time-to-green.mjs --hours 24 # all PRs
node .github/scripts/ci-time-to-green.mjs --hours 6 --branch-prefix perf/ci-x --jsonrequired: push → last merge-gating check green (openwork-tests-required).full: push → last GitHub Actions check green. "Evidence preview" is ignored (a link, not a test).Record the baseline (p50/p90/p99 and n) before changing anything. Compare
p50/p90 with at least ~20 commits; one PR's run is a data point, not a trend.
Never guess from YAML. Read the timings GitHub and the test kit already record.
# Every job and step of a run, with durations
gh run view <run-id> --json jobs --jq '.jobs[] | "\(.name)", (.steps[] | " \(.name)")'
gh api repos/different-ai/openwork/actions/jobs/<job-id> \
--jq '.steps[] | "\(((.completed_at|fromdate)-(.started_at|fromdate)))s \(.name)"'
# Full log (strip colours)
gh api --allow-escape-sequences repos/different-ai/openwork/actions/jobs/<job-id>/logs | sed 's/\x1b\[[0-9;]*m//g'For e2e specs, download the run's pr-proof-* artifacts and read
test-runs/*/test-run.json: every trace entry has a stage, channel,
verb and ms. Sum ms by (stage, channel, verb):
world/seed/den|desktop|appWeb is time spent starting services; body/* is
the test. Compare createdAt/closedAt with the first and last trace entry
to see setup and teardown the trace does not cover.
Things that look slow but are not the cause until measured: runner pickup (usually ~3s), the test's own assertions. Things that usually are: starting services per test, rebuilding the same commit in several jobs, waiting on something no assertion uses, repeated setup in every matrix job.
Work down this list (the classic performance mantras) and stop at the first rung that reaches the target:
dev.Rung 7 alone rarely gets far: folding the Den API test schema DDL and an in-memory MySQL saved 18s on a 134s step. Rungs 1-3 remove minutes.
next dev
and recompiles per test"), never "try caching".dev, or the same job on
dev). Laptop wall times are not evidence: other work on the machine
moved the same suite between 94s and 147s.decision.tsv outside the repo:
id, hypothesis, change, before, after, delta, tests, verdict, note.git fetch --depth=1 in any
worktree writes .git/shallow for every worktree and the main checkout;
rebases then replay the whole history. CI scripts that fetch with depth 1
are for CI only. If it happens: confirm the parents of the shallow commit
exist (git cat-file -e), move .git/shallow aside, run
git fsck --connectivity-only.origin/dev; do not touch someone else's
checkout, branch or running containers. Start your own MySQL on a free
port with a unique name, and remove it afterwards.TZ=UTC, or the
hourly sign-in tests fail for reasons unrelated to your change.gh pr list), and
re-measure after rebasing onto a dev that changed the job you measured.dev invalidates every comparison: fix or wait for it first
(diagnose-a-red-run).Name the job and step, the control run and your run, and the seconds:
"Run Den API security tests: 134s → 116s (run A vs run B, same runner)."
State Release note: none. Follow open-a-pr.
different-ai/openwork
5631a77
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.