Skip to content

docs(plans): measure what ci costs today, the baseline for the CI split (stage 0.5) - #230

Merged
aRustyDev merged 2 commits into
mainfrom
docs/ci-baseline
Nov 16, 2026
Merged

aRustyDev merged 2 commits into
mainfrom
docs/ci-baseline

Conversation

@aRustyDev

Copy link
Copy Markdown
Owner

What

Stage 0.5 of Phase 0 of the CI split (plan): a measurement of what ci costs today,
and the script that takes it again. Two commits:

  1. Records the owner's answers to the four questions in phases/0001-foundation.md (the callee's final job is
    verdict; the mutant driver runs in ci-scripts; actionlint is added; Prof is in Low). No question is open.
  2. The baseline: scripts/ci-baseline.py and research/0017-ci-baseline.md.

Nothing in .github/ changes.

The result

18 full and 5 affected-only runs since #206 (the last change to ci.yml's job set). A full run takes a median of 766 s
of wall clock (p90 1136 s) and 4552 runner-seconds, 70% of them in the 25 contract cells; the longest jobs are mutants
(692 s) and contract: worker-cf e2e (622 s). mutants failed in 8 of 22 executions. The 5 affected-only runs are
anecdotal; the research document says so.

What probing the API changed

Each is in the script's header and covered by its self-test.

Found Effect
GitHub lists a job that passed in attempt 1 again under each later attempt, with a new id and its original timestamps An execution is a job name and its start time. Counting entries had double-counted carried-over jobs (the table said "0 of 22" for 17 runs)
A push to main queues behind the previous main run (run 43947826462: created 20:15:09Z, first job 20:26:31Z, two seconds after the run before it ended) Wall clock is split into the wait before the first job and the execution span. It matches GitHub's run_duration_ms within a second on three runs
A run with three attempts (108 jobs) makes the jobs endpoint answer 502 at per_page=100, every time Pages of 30
ci.yml had a different job set before #206 (a plan job, no docs) --since; the script refuses a run whose jobs --groups does not list

Controls

  • ci-baseline.py --self-test: 38 checks, no network. A hand-worked example, every refusal, the retry (a 5xx is retried, a
    404 is not), and the re-run cases.
  • 11 bugs planted one at a time (no dedupe, a wrong p90, an accepted malformed --since, a retried 404, and others), each
    caught by the self-test.

Verification

  • plan-ci.py on this diff, run locally: 0 jobs, 0 of 25 cells, so only changes and gate should run.
  • Every relative link in the four documents resolves.

🤖 Generated with Claude Code

aRustyDev and others added 2 commits November 16, 2026 15:40
The callee's final job is `verdict`; the mutant driver runs in ci-scripts;
actionlint is added as a pinned check; Prof is in the Low group. PLAN.md and
phases/0001-foundation.md say so where each applies (stages 0.1, 0.3 and 0.4,
invariant 6, the status table) and no question is left open.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Stage 0.5 of Phase 0: scripts/ci-baseline.py reads GitHub's run and job records
of ci.yml and prints the cost per job and per run; research/0017-ci-baseline.md
holds the result (18 full and 5 affected-only runs since the job set last
changed, in #206) and how it was measured. A full run takes a median 766 s of
wall clock and 4552 runner-seconds, 70% of them in the 25 contract cells.

Probing the API changed the method three times, each recorded in the script's
header and covered by its self-test (38 checks; 11 planted bugs, all caught):

- GitHub lists a job that passed in attempt 1 again under each later attempt,
  with a new id and its original timestamps, so an execution is a job name and
  its start time; counting entries double-counted the carried-over jobs.
- A push to main queues behind the previous main run, so a run's wall clock is
  split into the wait before its first job and the execution span. It matches
  GitHub's run_duration_ms within a second on three runs.
- A run with three attempts (108 jobs) makes the jobs endpoint answer 502 at
  per_page=100, so the pages are 30.

Docs and a plan script only: plan-ci.py plans no job for this diff.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@aRustyDev
aRustyDev merged commit 958be99 into main Nov 16, 2026
14 checks passed
@aRustyDev
aRustyDev deleted the docs/ci-baseline branch November 16, 2026 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant