Skip to content

Roadmap: get full PR CI feedback under 5 minutes - #104

Open
MarcusJRLee wants to merge 1 commit into
mainfrom
ci_five_minute_plan
Open

MarcusJRLee wants to merge 1 commit into
mainfrom
ci_five_minute_plan

Conversation

@MarcusJRLee

Copy link
Copy Markdown
Owner

Summary

A full-lane PR waits 19–51 min for CI. This records the measured baseline and the chosen approach in docs/decisions/builds_and_workflow.md, then adds six ci_* roadmap items that reach PR feedback p95 < 5 min in steps you can measure.

Baseline (40 runs): CodeQL Swift p50 ~23 min (20 min of it the traced build), iOS 17.9 (Rust 3.5, build 3, tests 8), macOS Verify 6–8 (release built twice), macOS queue 0.8.

Item Outcome Depends on
ci_feedback_time ci_durations.sh reports PR feedback time and per-step p50. —
ci_warm_builds Rust and Swift caches saved on main; one release build. feedback
ci_parallel_verify Verify = Ubuntu + 2 macOS lanes, same scripts as check.sh. warm
ci_ios_fast iOS lane < 3.5 min, UI journeys kept. warm
ci_codeql_swift_fast PR CodeQL traces only changed targets. warm
ci_five_minute_gate CI health enforces p95 < 5 min; timeouts 6 min. the three above

Budget: 3.5 min per macOS job + 1.5 min for classification and queueing; at most 5 macOS jobs per PR (the account's concurrency cap).

Alternatives

Criterion Warm, parallel, change-scoped free runners Larger paid runners Self-hosted on the maintainer's Mac Slow checks after merge only
Reaches 5 minutes 🟡 Plausible; CodeQL needs proof. 🔴 CodeQL ~12 min. 🟢 Fast, always warm. 🟢 Yes.
Cost 🟢 None. 🔴 ~$0.16/min. 🟢 None. 🟢 None.
Public-repo safety 🟢 Isolated VMs. 🟢 Isolated VMs. 🔴 PR code on a personal machine. 🟢 Isolated VMs.
Every merged tree verified 🟢 Yes. 🟢 Yes. 🟢 Yes. 🔴 Main can break.
Self-contained, reproducible 🟢 Clean VM per job. 🟢 Clean VM. 🔴 One machine's state. 🟢 Clean VM.
Upkeep 🟠 Caches and lane scripts. 🟢 Config only. 🔴 A machine to keep online. 🟡 A second pipeline.

Recommendation: warm, parallel, change-scoped free runners, the only option that is free, safe, and verifies before merge. Each item has its own matrix for its sub-choice.

Test plan

  • scripts/check_fast.sh (roadmap, docs, conventions).
  • Markdown only: no app install.

🤖 Generated with Claude Code

Measured the 2026-11-23 baseline (CodeQL Swift 23 min, iOS 18, Verify 6-8),
chose warm, parallel, change-scoped free runners in the builds record, and
split the work into six ci_* roadmap items with their own matrices.

Flag: none (docs only, pre-launch)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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