Skip to content

Fix CI: quote Ruby matrix versions, add 3.4, bump Bundler pin to 2.4.22 - #98

Merged
sjahu merged 3 commits into
Shopify:mainfrom
allannyang:fix-ci-matrix
Oct 6, 2026
Merged

sjahu merged 3 commits into
Shopify:mainfrom
allannyang:fix-ci-matrix

Conversation

@allannyang

@allannyang allannyang commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Fix CI: every run has failed before tests start since December 2024

Every CI run since December 2024 fails before tests start, in the job
labelled "Ruby 3". Two things combined:

1. The matrix lists Ruby versions as unquoted YAML numbers (Shopify#53, 2021).
   YAML reads 3.0 as the number 3, so setup-ruby installs the latest
   3.x, not Ruby 3.0. Harmless until 3.x meant 3.4.
2. Gemfile.lock pins Bundler 2.2.33 (7cb1151, June 2024), whose vendored
   Thor references DidYouMean::SPELL_CHECKERS. Ruby 3.4 ships
   did_you_mean 2.0.0, which removed that constant, so Bundler 2.2.33
   crashes on load under Ruby 3.4.

setup-ruby v1.206.0 (2024-12-26) added Ruby 3.4.0. From then on "3"
meant 3.4, Bundler 2.2.33 crashed, and fail-fast cancelled the other
jobs, so no Ruby reported a result.

Changes: quote the matrix versions; add Ruby 3.4; fail-fast: false;
bump the Bundler pin to 2.4.22 (newest that installs on Ruby 2.7 and
loads on 3.4); actions/checkout v2 -> v4.

Verified locally: Bundler 2.2.33 reproduces the CI NameError on Ruby
3.4.9; with 2.4.22 the suite passes on Ruby 3.4.9 and 4.0.7.
Comment thread .github/workflows/ruby-ci.yml Outdated
Comment thread .github/workflows/ruby-ci.yml Outdated
@allannyang
allannyang requested a review from aminpaks September 29, 2026 20:09

@aminpaks aminpaks left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

The CI matrix now quotes its Ruby versions, so the job previously named
"Ruby 3 Gemfile" is "Ruby 3.0 Gemfile", and 3.4 was added. The
required-check list in shipit.rubygems.yml still named the old jobs
(and 2.4/2.5/2.6, which have not existed for years), so Shipit would
find none of them on a release commit. List the six current job names.
@sjahu
sjahu merged commit bffcc5a into Shopify:main Oct 6, 2026
7 checks passed

This branch was successfully deployed

1 active deployment
rubygems — 28c21353 Deployed Oct 13, 2026 by shopify-shipit[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants