Repository navigation
Speed up CI - #339
Merged
Merged
Speed up CI#339
Conversation
dblock
force-pushed
the
dblock/faster-ci
branch
from
November 22, 2026 14:02
f1dc1b5 to
95056b9
Compare
Run JRuby with --dev, which roughly halves its JVM startup-bound bundle and test steps, the slowest job in every run. Key the bundler cache by JSON version so the Ruby 3.2 JSON 2 job no longer restores the JSON 3 bundle and recompiles json. Only build pushes to master and cancel superseded pull request runs, so same-repo branches aren't built twice. Update actions/checkout to v7, since v3's Node runtime is retired. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011Gr21htyJfr8XZGHBcPwkW
dblock
force-pushed
the
dblock/faster-ci
branch
from
November 22, 2026 14:27
95056b9 to
d0112d9
Compare
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.
Every
testrun takes ~55-60s wall time, bound bytest (Ruby jruby-head, JSON 3); the other jobs finish in 13-28s. From the logs of recent runs (e.g. 45030186935 and master runs 45030304655, 44949098947):setup-rubywith a cache hit and nothing to install (bundle lockspends ~10s before it fetches metadata,bundle install~8s), and ~16s for a test step whose tests take 1.4s. All JVM startup. → SetJRUBY_OPTS=--dev(CRuby ignores it).Gemfile.lockisn't committed, sosetup-rubyfalls back to a prefix restore, and the JSON 2 and JSON 3 jobs on Ruby 3.2 share that prefix, so JSON 2 often gets JSON 3's bundle. → Setcache-version: json-<version>so their caches are separate.on: [push, pull_request]builds same-repo branches (e.g. dependabot) twice. → Only build pushes tomaster, and cancel superseded PR runs withconcurrency.actions/checkout@v3runs on a retired Node runtime (actionlint flags it). → Update to the latestv7.The cache key change causes a one-time cache miss per job.
Validation
actionlintclean on all workflows.🤖 Generated with Claude Code
https://claude.ai/code/session_011Gr21htyJfr8XZGHBcPwkW