Repository navigation
docs(plans): measure what ci costs today, the baseline for the CI split (stage 0.5) - #230
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Stage 0.5 of Phase 0 of the CI split (plan): a measurement of what
cicosts today,and the script that takes it again. Two commits:
phases/0001-foundation.md(the callee's final job isverdict; the mutant driver runs inci-scripts;actionlintis added; Prof is in Low). No question is open.scripts/ci-baseline.pyandresearch/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 sof 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).mutantsfailed in 8 of 22 executions. The 5 affected-only runs areanecdotal; the research document says so.
What probing the API changed
Each is in the script's header and covered by its self-test.
mainqueues behind the previousmainrun (run 43947826462: created 20:15:09Z, first job 20:26:31Z, two seconds after the run before it ended)run_duration_mswithin a second on three runsper_page=100, every timeci.ymlhad a different job set before #206 (aplanjob, nodocs)--since; the script refuses a run whose jobs--groupsdoes not listControls
ci-baseline.py --self-test: 38 checks, no network. A hand-worked example, every refusal, the retry (a 5xx is retried, a404 is not), and the re-run cases.
--since, a retried 404, and others), eachcaught by the self-test.
Verification
plan-ci.pyon this diff, run locally:0 jobs, 0 of 25 cells, so onlychangesandgateshould run.🤖 Generated with Claude Code