Repository navigation
ci: docs-only skip, oldest+newest on PRs, path-scoped benchmarks; README benchmark charts; dz cadence - #44
Conversation
…arks run when measured code changes Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…op health and security-release Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Benchmarks: x86_64 (linux)
escape_bench (C ext) · peak RSS 119 MB
escape_bench (pure Ruby) · peak RSS 148 MB
render_bench (C ext) · peak RSS 132 MB
render_bench (pure Ruby) · peak RSS 132 MB
tag_bench (C ext) · peak RSS 40 MB
tag_bench (pure Ruby) · peak RSS 27 MB
Rails request (C ext) · peak RSS 238 MB
|
Benchmarks: aarch64 (linux)
escape_bench (C ext) · peak RSS 104 MB
escape_bench (pure Ruby) · peak RSS 151 MB
render_bench (C ext) · peak RSS 131 MB
render_bench (pure Ruby) · peak RSS 131 MB
tag_bench (C ext) · peak RSS 39 MB
tag_bench (pure Ruby) · peak RSS 26 MB
Rails request (C ext) · peak RSS 242 MB
|
🟡 Reviewed (latest push only: 1 commit(s) since
|
There was a problem hiding this comment.
Verdict: Approved. Posted as a comment: this repository's review settings turn approvals off.
Review summary: 27 file(s), 8 finding(s).
Critical 0 · Major 0 · Minor 8 · Nit 0
The PR trims CI, publishes generated benchmark charts, and changes maintenance cadence. The benchmark workflow misses build inputs, the chart generator can mislabel runs, and the docs overstate CI coverage and benchmark conclusions while understating off-cycle release eligibility.
| File | Findings |
|---|---|
.github/CLAUDE.md |
2 minor |
.github/workflows/benchmark.yml |
2 minor |
.github/workflows/ci.yml |
1 minor |
README.md |
1 minor |
bin/bench-charts |
1 minor |
spec/ci/bench_charts_spec.rb |
1 minor |
Reviewed with gpt-6.2-sol
… benchmark paths) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
There was a problem hiding this comment.
Verdict: Approved. Posted as a comment: this repository's review settings turn approvals off.
Review summary: 16 file(s), 2 finding(s).
Critical 0 · Major 0 · Minor 2 · Nit 0
This update refines benchmark triggers, refreshes the README charts, and revises CI and release guidance. Benchmark reports can misstate YJIT usage, and two guides overstate docs-only PR coverage. The PR trims CI and benchmark runs, adds generated README charts, and changes maintenance cadence.
2 non-blocking finding(s) below major (no thread on a re-review, only blocking findings open threads)
.dz/schedules/devops.md:26minor · docs This guide andREADME.md:273imply a greenCI OKon a docs-only PR proves endpoint compatibility, even though those jobs are skipped. Scope that coverage to code PRs in both guides.bin/bench-report:176minor · bug WithBENCH_NO_YJIT=1andRUBY_YJIT_ENABLE=1, benchmark subprocesses inherit the enable setting, but the generated caption says they ran without YJIT. RecordRubyVM::YJIT.enabled?in the benchmark subprocesses and use the observed state in the report.
- test files were not shown to the reviewer: this diff touched no path recognised as a test, so no assertion was available to read the change against
Reviewed with gpt-6.2-sol
What
Cheaper, faster CI; benchmark charts in the README's Performance section, generated from a committed run; the dz cadence standard.
Why
Measured 2026-11-21..28 (Actions API): CI 29 runs x 28 jobs for any change (more jobs than the 20 a free account runs at once, so every run queued behind itself); Benchmarks 29 runs x 2 jobs of ~2.5 min (19 on pull requests), whether or not anything measured had changed. The README's Performance section had prose and no chart.
Changes
CI
ci.yml: newchangesjob. When every changed file is*.mdor underdocs/, onlyworkflowsandcheck(bin/check) run;CI OK(the required check, name unchanged) still reports. It classifies the checked-out commit against the base, counts a rename under both names, tests whole paths, and treats anything unreadable as code.ci.yml: a pull request tests the oldest and the newest Ruby (gem-specs,package) and the oldest and the newest Rails line; the full generated matrices run on every push tomainthat is not docs-only and on manual runs. 28 jobs -> 23 on a code PR (measured on this PR), 4 on a docs-only PR.ci.yml/benchmark.yml: amainrun is never cancelled (it wascancel-in-progress: trueeverywhere); every non-PR run has its own concurrency group.benchmark.yml: runs only when something a benchmark measures changed (lib/,ext/,bench/,bin/bench-report,app/,config/, the bundle,.ruby-version). Not a required check, so a path filter is safe.README benchmark charts
bin/bench-charts(next tobin/bench-report) drawsdocs/benchmarks/*.svg(light and dark, chosen with<picture>) and writes the tables under them into the README, from one committed run:docs/benchmarks/x86_64-linux.json. Nothing is typed by hand.bin/bench-charts --checkfails when the charts or the README block drift from the JSON;spec/ci/bench_charts_spec.rbruns it, sobin/checkand CI do.BENCH_TIME=5 bundle exec bin/bench-report run docs/benchmarks/x86_64-linux.json && bin/bench-charts.ruby 4.0.10, benchmark processes with YJIT, 5 s per benchmark.bin/bench-reportnow records the CPU model, thread count, load average and YJIT state, so the README states them from the JSON.llms.txtwere adjusted to what this run shows (Erubi ahead by 1.6x on the standalone page here; the six Rails variants close together, Slim first).CLAUDE.mdanddocs/idea/principles.mdnow say the README block is the one generated exception to "no benchmark numbers in docs".dz cadence
schedules: security-releaseandschedules: healthdeleted, with their briefs; every sentence that named them (briefs,.dz/README.md,.github/CLAUDE.md,docs/, README) rewritten.devops.watch: advisoriesreplaces the daily security-release. This supersedes theoffwritten on 2026-11-26; the comment says so.care.docs_drift: off.review:untouched.release-duestays weekly on Monday,improvemonthly.Evidence (platform census, 30 days, both accounts):
security-release170 firings -> 3 product merges + 17 REPORT.md-only PRs (4 here);health270 firings -> 8 asks -> 0 merges (cron.base_red_askalready files a fix whenmainis red);devops.watch91 merged in 14 days, 83 product;care.docs_drift47 tasks -> 8 docs-only merges, 33 failed.Verification
bin/checkgreen locally (repo guards, bundle-audit, compile, RuboCop, full RSpec including the new spec, Brakeman, smoke).actionlint1.7.12,zizmor,bin/repo-guardsandbun run policy-clion the policy file: ok.changes-> code=true) and the benchmark workflow (it touchesbin/bench-report). The docs-only path and the full matrices first run on the next such PR / on the merge tomain.mainpush instead of the PR.Branch is cut from the current
maintip.🤖 Generated with Claude Code