Recut trusted cmux-tui startup benchmark runner
Closed
LA
3mo ago+24199+24199+01234567890123456789012345678901234567890123456789-7-7-0123456789
Summary
- recut the 25-file trusted startup benchmark runner onto frozen main
1329f5a187a7cc8b6040b0970e745236b0094a19 - require
trusted_sha == baseline_sha, lowercase full commit identities, exactly 10 warmup pairs, exactly 50 measured pairs, serial paired launches, raw distributions, and a nonzero named harness-test count - close the uploaded artifact file set and require macOS Time Profiler, Linux strace, and Windows WPR output for both measured targets
The three commits keep the source recut, red contract tests, and contract fixes plus documentation separate.
Testing
git diff --check 1329f5a187a7cc8b6040b0970e745236b0094a19..HEAD- Python AST parse for
cmux-tui/scripts/verify-startup-benchmark.py - Ruby YAML parse for the two workflows and setup action
actionlint .github/workflows/cmux-tui-startup-benchmark.yml .github/workflows/cmux-tui.yml- verified all 25 source-first blobs against checkpoint
8780a6fb5b395219da8a33d6b1c10aec0ac945a8 - no local Cargo, Rust, Zig, or Xcode command and no hosted benchmark dispatch, as required by the recut handoff
Source
- Related: https://github.com/manaflow-ai/cmux/pull/9922
- Checkpoint: https://github.com/manaflow-ai/cmux/commit/8780a6fb5b395219da8a33d6b1c10aec0ac945a8
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.
Summary by cubic
Recuts the trusted cmux-tui startup benchmark runner on a frozen base and enforces a stricter, closed evidence contract for reproducible comparisons. Previously looser runs are replaced with serial, paired measurements and required platform profiles to make results auditable.
- Adds
cmux-startup-bootstrapwith a Windows native bootstrap (C + Rust) for precise pre-main timing and handle validation; integratesmemmap2. - Introduces the benchmark harness and supervisor examples (
startup_benchmark*), a Windows diagnostics tool, and documentation under Startup Performance. - Adds
cmux-tui-startup-benchmark.ymland tightens.github/workflows/cmux-tui.ymlto prepare containment fixtures; Linux runners now detect and exportCMUX_BENCH_LINUX_BWRAP. - Adds
scripts/verify-startup-benchmark.pyto validate SHAs, counts, distributions, and artifact contents; updates thesetup-cmux-tui-rustcomposite action to accepttoolchain-fileandpython-commandinputs while preserving defaults.
Contract and rollout
- Benchmark requirements:
trusted_sha == baseline_sha(lowercase 40-char), exactly 10 warmup pairs and 50 measured pairs, serial paired launches, raw distributions, and a nonzero named harness-test count. - Evidence packaging: upload a closed artifact set with macOS Time Profiler, Linux strace, and Windows WPR outputs for both targets; the verifier rejects extra/missing files.
- CI/runner expectations: Linux must have bubblewrap (exported as CMUX_BENCH_LINUX_BWRAP); macOS/Windows runners must have the listed profilers.
- Action usage:
setup-cmux-tui-rustsupports optionaltoolchain-fileandpython-command; no changes needed if omitted.
Summary by CodeRabbit
-
New Features
- Added cross-platform startup performance benchmarking for cold, warm, restored, headless, and incompatible launch scenarios.
- Added paired baseline comparisons, profiling, lifecycle metrics, integrity checks, and machine-readable reports.
- Added platform-specific containment validation and Windows startup diagnostics with failure artifacts.
-
Documentation
- Added a startup performance guide covering scenarios, measurements, artifacts, diagnostics, and verification.
-
Bug Fixes
- Improved validation and cleanup for startup test resources, processes, permissions, and sandbox environments.