Repository navigation
Revert "Update dependency ruby to v4" - #296
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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. |
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.
Reverts #236
Why
The Pages deploy after #236 (run 38510897711) failed with
cannot load such file -- csv (LoadError).csvis 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-pagesrelease. The Gemfile leavesgithub-pagesunpinned. On Ruby 4 it resolves to 223 (Jekyll 3.9.0, Liquid 4.0.3), because Bundler rules out every newer release:That holds for every version up to 232, the latest.
github-pages223 does not work on any Ruby from 3.2 on.Reproduced locally on Ruby 4.0.7:
cannot load such file -- csv: Ruby 3.4+ no longer shipscsvas a default gem. Addinggem "csv"gets past it.cannot load such file -- bigdecimal, for the same reason (from Liquid). Addinggem "bigdecimal"gets past it.Liquid Exception: undefined method 'tainted?' for an instance of String in /_layouts/news.html(liquid-4.0.3variable.rb:124). Ruby 3.2 removedString#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, ...). Onlycsvandbigdecimalare loaded during a build.Ruby 3.4.11 (the version before #236) is below the
< 4.0bound, so Bundler can pick a currentgithub-pagesthere. 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
github-pages/commonmarkersupport Ruby 4. A Renovate rule holding Ruby below 4 until then would stop this from happening again.github-pagesgem 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.ymlonly runs on push tomainandworkflow_dispatch, so PRs never build the site. That's how #236 merged with no build check. Apull_requesttrigger with the deploy job gated tomainwould catch this. PR builds would need their own concurrency group, sincegroup: "pages"withcancel-in-progress: truewould let a PR build cancel a deploy running on main.