From 1fd71423b42c22eff1c4be82783d379070c757f2 Mon Sep 17 00:00:00 2001 From: Andy Cohen Date: Mon, 26 Oct 2026 11:52:29 -0500 Subject: [PATCH] Balance rails-ci spec groups on the default branch's runtimes #patch Restoring the branch's own runtime log first meant a long-lived or rebased branch was grouped on months-old timings. The default branch's latest log is always fresh, and parallel_tests estimates any spec file it lacks at the average runtime. Co-Authored-By: Claude Opus 5.5 (1M context) --- .github/workflows/rails-ci.yml | 4 +--- CHANGELOG.md | 4 ++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rails-ci.yml b/.github/workflows/rails-ci.yml index 7563479..b0190fe 100644 --- a/.github/workflows/rails-ci.yml +++ b/.github/workflows/rails-ci.yml @@ -191,9 +191,7 @@ jobs: with: path: tmp/turbo_rspec_runtime.log key: parallel-spec-runtimes-${{ github.head_ref || github.ref_name }}-${{ github.sha }} - restore-keys: | - parallel-spec-runtimes-${{ github.head_ref || github.ref_name }}- - parallel-spec-runtimes- + restore-keys: parallel-spec-runtimes-${{ github.event.repository.default_branch }}- background: true # Gem-only work can start as soon as gems are ready, instead of waiting diff --git a/CHANGELOG.md b/CHANGELOG.md index f9011cb..639e234 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # RoleModel/actions +## [v3.13.4] Oct 26, 2026 + +- `rails-ci` balances parallel spec groups using the default branch's latest runtimes. It used to prefer the branch's own last run, however old, so a long-lived or rebased branch was split using months-old timings and a couple of groups ran a minute past the rest. + ## [v3.13.2] Oct 20, 2026 - `staging-auto-merge` now pages through every open pull request, repository label, and closed `Staging`-labeled pull request. It read only the first page of each (30 items), and open pull requests are listed oldest first, so in a repository with more than 30 open the newest labeled ones were silently left off `staging`. Closed-PR label cleanup now asks for only the `Staging`-labeled ones instead of the 30 most recently closed.