Tried Local CI from Kaigi on Rails, measured it, and decided against it
After hearing gogutan's talk "Local CI × GitHub Actions" at Kaigi on Rails 2026, the author tried moving PR CI to local machines for the Rails 8.1 app at their company, MyVision; the app runs RSpec on PRs about 2,500 times per 30 days on an 8-core machine, at roughly 6 minutes per run. Local CI is the bin/ci and config/ci.rb mechanism introduced in Rails 8.1, and gh-signoff is a GitHub CLI add-on that marks the current commit as verified locally by attaching a commit status[1], without running tests itself. The plan was to run bin/ci with RuboCop[2] and RSpec locally and attach the signoff mark; because some members develop only in cloud environments such as Claude Code on the Web and cannot run Docker locally, PR RSpec stayed on Actions and was skipped only for commits carrying the local mark, which can be attached only after a push.
The trial covered only the Rails RSpec and RuboCop, with front-end and other CI staying on Actions, and the rule was set in advance: if the wait from PR to merge grew, the setup would be dropped. The local Mac was an Apple M5 Pro (15 cores, 24GB); the baseline was the median of the last 10 Actions RSpec runs, 338 seconds overall with parallel:spec[3] at 239 seconds. Raising Docker Desktop memory from 7.7GB to 16GB eliminated 192 failing tests, and moving the log/ and tmp/ folders — mounted from the Mac and slow to write to — into Docker volumes cut parallel:spec from 419 to 350 seconds; lowering parallelism from 8 processes to 4 gave 255 and 272 seconds, while 3 processes made both runs exceed 18 minutes for unexplained reasons. The M5 Pro has only 5 fast cores among its 15, with the DB, Redis and OpenSearch containers competing for the same CPU, so even at best the local setup only matched Actions; since wait times would not shrink and PRs running normally on Actions would get slightly slower due to the signoff check, the team decided against it. Savings would have been at most 6.4% of total Actions costs even if every targeted member used local CI on every push, only 19% of monthly PRs touched Rails code alone, and cloud-based developers could not use the setup at all.
The measurements still improved Actions: RuboCop, which checked all files on every PR at a median of 264 seconds, now runs reviewdog/action-rubocop on changed files only and takes 22 seconds when a single app file changed, with full scans kept for configuration or Gemfile.lock changes. Other changes include reusing the Rails CI image, tidying caches and fixing a missing concurrency[4] setting.
Sources
-
JPZenn JA
Kaigi on Rails で聞いた Local CI を試して、見送った話


