Skip to content

CI: Drop old Ruby versions for Ubuntu 26.04 - #477

Merged
ohler55 merged 1 commit into
ohler55:developfrom
Watson1978:ci-skip-old-ruby-ubuntu
Oct 29, 2026
Merged

ohler55 merged 1 commit into
ohler55:developfrom
Watson1978:ci-skip-old-ruby-ubuntu

Conversation

@Watson1978

Copy link
Copy Markdown
Contributor

ubuntu-latest moves to Ubuntu 26.04 between 2026-10-19 and 2026-11-19 (announcement). setup-ruby only has CRuby 3.2 and newer for that image (README), so the Ruby 2.7, 3.0 and 3.1 jobs on Ubuntu fail in setup-ruby, and fail-fast then cancels the rest of the matrix.

This excludes those three versions on Ubuntu only. They keep running on macOS and Windows, so Ruby 2.7 is still tested.

What the failure looks like

From another project's CI that has already moved to the new image (fluent/fluent-plugin-kafka#589):

Image: ubuntu-26.04
https://github.com/ruby/ruby-builder/releases/download/ruby-2.7.8/ruby-2.7.8-ubuntu-26.04-x64.tar.gz
Error: Unavailable version 2.7.8 for ruby on ubuntu-26.04
  Cause: Unexpected HTTP response: 404

The 3.2 and newer jobs in the same run passed on ubuntu-26.04.

🤖 Generated with Claude Code

ubuntu-latest moves to ubuntu-26.04 between 2026-10-19 and 2026-11-19.
setup-ruby has no CRuby builds older than 3.2 for ubuntu-26.04, because
they do not compile there. The jobs fail in setup-ruby with
"Unavailable version 2.7.8 for ruby on ubuntu-26.04". With fail-fast,
a failure in the 2.7 or 3.1 job also cancels the rest of the matrix.

Exclude those three versions on Ubuntu only. They keep running on
macOS and Windows, so the gemspec floor of 2.7 is still tested.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ohler55
ohler55 merged commit d967f92 into ohler55:develop Oct 29, 2026
19 checks passed
@Watson1978
Watson1978 deleted the ci-skip-old-ruby-ubuntu branch October 29, 2026 00:50
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