Skip to content

Revert "Update dependency ruby to v4" - #296

Merged
nafg merged 1 commit into
mainfrom
revert-236-renovate/ruby-4.x
Oct 14, 2026
Merged

nafg merged 1 commit into
mainfrom
revert-236-renovate/ruby-4.x

Conversation

@nafg

@nafg nafg commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Reverts #236

Why

The Pages deploy after #236 (run 38510897711) failed with cannot load such file -- csv (LoadError). csv is only the first symptom. Adding gems will not make the build work on Ruby 4.

Root cause: on Ruby 4, Bundler falls back to an old github-pages release. The Gemfile leaves github-pages unpinned. On Ruby 4 it resolves to 223 (Jekyll 3.9.0, Liquid 4.0.3), because Bundler rules out every newer release:

github-pages >= 224 requires jekyll-commonmark ~> 1.4.0
jekyll-commonmark >= 1.4.0 depends on commonmarker ~> 0.22
commonmarker >= 0.22.0, < 1.0.0.pre depends on Ruby >= 2.6, < 4.0

That holds for every version up to 232, the latest. github-pages 223 does not work on any Ruby from 3.2 on.

Reproduced locally on Ruby 4.0.7:

  1. cannot load such file -- csv: Ruby 3.4+ no longer ships csv as a default gem. Adding gem "csv" gets past it.
  2. cannot load such file -- bigdecimal, for the same reason (from Liquid). Adding gem "bigdecimal" gets past it.
  3. Liquid Exception: undefined method 'tainted?' for an instance of String in /_layouts/news.html (liquid-4.0.3 variable.rb:124). Ruby 3.2 removed String#tainted?, and no gem restores it.

I also scanned the resolved bundle for other libraries Ruby 4 dropped from its default gems (ostruct, mutex_m, drb, benchmark, ...). Only csv and bigdecimal are loaded during a build.

Ruby 3.4.11 (the version before #236) is below the < 4.0 bound, so Bundler can pick a current github-pages there. Deploys built on 3.4.11 before #236. I haven't re-run the build on 3.4.11 locally; this PR's deploy after merge will confirm it.

Ways to move to Ruby 4 later

  • Wait until github-pages / commonmarker support Ruby 4. A Renovate rule holding Ruby below 4 until then would stop this from happening again.
  • Drop the github-pages gem and depend on Jekyll and its plugins directly. The site is built and deployed by our own Actions workflow, not GitHub's Pages builder, so the gem isn't required.

Follow-up

pages.yml only runs on push to main and workflow_dispatch, so PRs never build the site. That's how #236 merged with no build check. A pull_request trigger with the deploy job gated to main would catch this. PR builds would need their own concurrency group, since group: "pages" with cancel-in-progress: true would let a PR build cancel a deploy running on main.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-14T04:30:54.859098Z 8b3f792 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@mergify

mergify Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@nafg
nafg merged commit c4642c8 into main Oct 14, 2026
3 checks passed
@nafg
nafg deleted the revert-236-renovate/ruby-4.x branch October 14, 2026 04:38
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.

1 participant