Skip to content

[elasticgraph]: Bump ruby/setup-ruby to v1.335.0 on pre-1.0 - #1464

Merged
bsorbo merged 1 commit into
pre-1.0from
bump-setup-ruby-pre-1.0
Nov 12, 2026
Merged

bsorbo merged 1 commit into
pre-1.0from
bump-setup-ruby-pre-1.0

Conversation

@bsorbo

@bsorbo bsorbo commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

The Release workflow on pre-1.0 fails at Set up Ruby with Error: Could not convert version to a float (failed run).

ubuntu-latest now resolves to ubuntu-26.04. The pinned ruby/setup-ruby v1.229.0 doesn't list that image as a supported platform, so it treats the runner as self-hosted. On that path it skips resolving ruby-version: ruby to a concrete version and passes an empty string to floatVersion(), which throws.

This bumps every ruby/setup-ruby pin on pre-1.0 to the same SHA main uses (7f797815…, v1.335.0), which supports ubuntu-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

`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
bsorbo enabled auto-merge (squash) November 12, 2026 21:24
@bsorbo
bsorbo merged commit a114d5c into pre-1.0 Nov 12, 2026
30 checks passed
@bsorbo
bsorbo deleted the bump-setup-ruby-pre-1.0 branch November 12, 2026 21:31
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>
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.

2 participants