Repository navigation
[elasticgraph]: Bump ruby/setup-ruby to v1.335.0 on pre-1.0 - #1464
Merged
Merged
Conversation
`ubuntu-latest` now resolves to ubuntu-26.04, which setup-ruby v1.229.0 doesn't recognize. It treats the runner as self-hosted, skips resolving `ruby-version: ruby` to a concrete version, and fails with "Could not convert version to a float". v1.335.0 (already used on main) supports ubuntu-26.04. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bsorbo
requested review from
BrianSigafoos-SQ and
myronmarston
as code owners
November 12, 2026 21:11
myronmarston
approved these changes
Nov 12, 2026
bsorbo
enabled auto-merge (squash)
November 12, 2026 21:24
bsorbo
added a commit
that referenced
this pull request
Nov 12, 2026
After #1464, the Release workflow on `pre-1.0` gets past **Set up Ruby** but fails at **Archive Docs** ([failed run](https://github.com/block/elasticgraph/actions/runs/43312038631)): ``` cannot load such file -- .../bundler-2.5.22/lib/gems/bundler-2.5.22/exe/bundle (LoadError) ... [error]: Missing 'redcarpet' gem for Markdown formatting. ``` The workflow uses `ruby-version: ruby`, which now resolves to Ruby 4.0. The pre-1.0 release bundle wasn't set up for it: - `BUNDLED WITH 2.5.22` makes `setup-ruby` install a Bundler that doesn't work with RubyGems 4. - Ruby 4.0 no longer loads `rdoc` from the standard library, so YARD has no Markdown provider in the minimal `config/release` bundle. This backports the `config/release` portions of #759 (`redcarpet`) and #958 (`irb`, which pulls in `rdoc`, plus the Bundler 4 lockfile) from `main`. `gem-release`, `rake` and `yard` stay at their current locked versions. Verified locally that `site:build_docs` succeeds with this bundle on Ruby 3.4. It hasn't been run on Ruby 4.0; the next release run will be the first test of that. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
The Release workflow on
pre-1.0fails at Set up Ruby withError: Could not convert version to a float(failed run).ubuntu-latestnow resolves toubuntu-26.04. The pinnedruby/setup-rubyv1.229.0 doesn't list that image as a supported platform, so it treats the runner as self-hosted. On that path it skips resolvingruby-version: rubyto a concrete version and passes an empty string tofloatVersion(), which throws.This bumps every
ruby/setup-rubypin onpre-1.0to the same SHAmainuses (7f797815…, v1.335.0), which supportsubuntu-26.04. CI, publish-site, and update-gem-version-artifacts used the same old pin, so they'd hit this too.🤖 Generated with Claude Code