Skip to content

chore: bump setup-ruby and pin test matrix to ubuntu-24.04 - #178

Merged
rahul-mixpanel merged 1 commit into
masterfrom
ci/fix-setup-ruby-ubuntu-26
Nov 12, 2026
Merged

rahul-mixpanel merged 1 commit into
masterfrom
ci/fix-setup-ruby-ubuntu-26

Conversation

@rahul-mixpanel

Copy link
Copy Markdown
Contributor

Problem

Every test (3.x) and test-openfeature (3.x) job fails within seconds at Set up Ruby. Master is affected too (run 41891871527), and so is #177. ubuntu-latest now resolves to ubuntu-26.04. The pinned ruby/setup-ruby v1.269.0 doesn't recognise that image: it logs The current runner (ubuntu-26.04-x64) was detected as self-hosted. Fail-fast then cancels the remaining versions.

Fix

  • Bump ruby/setup-ruby to v1.338.0 (latest, pinned by SHA) in ruby.yml and release-rubygems.yml. This release lists ubuntu-26.04 as supported. (prepare-release.yml doesn't use setup-ruby.)
  • Pin test and test-openfeature to runs-on: ubuntu-24.04. Per the setup-ruby README, ubuntu-26.04 only has prebuilt CRuby 3.2 and newer, because older CRuby doesn't compile there. Pinning keeps 3.0 and 3.1 in the matrix.
  • Set fail-fast: false on both matrices so a failure on one Ruby version no longer cancels the others.

The release workflow uses Ruby 3.3, so it can stay on ubuntu-latest with the bumped action.

Follow-up (not in this PR)

Ruby 3.0 and 3.1 are EOL, and the current runner image no longer has builds for them. The 24.04 pin keeps them working for now. Whether to drop them from the matrix and gemspec is a product decision.

🤖 Generated with Claude Code

@rahul-mixpanel
rahul-mixpanel requested review from a team and ketanmixpanel November 11, 2026 11:48
@codecov

codecov Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.28%. Comparing base (9defe25) to head (99925c7).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #178   +/-   ##
=======================================
  Coverage   97.28%   97.28%           
=======================================
  Files          16       16           
  Lines         885      885           
=======================================
  Hits          861      861           
  Misses         24       24           
Flag Coverage Δ
openfeature 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rahul-mixpanel rahul-mixpanel changed the title ci: bump setup-ruby and pin test matrix to ubuntu-24.04 chore: bump setup-ruby and pin test matrix to ubuntu-24.04 Nov 11, 2026
ubuntu-latest now resolves to ubuntu-26.04. The pinned setup-ruby v1.269.0
does not recognise that image, so every Set up Ruby step failed. Bump to
v1.338.0, which supports 26.04. That image only has prebuilt CRuby >= 3.2,
so pin the test jobs to ubuntu-24.04 to keep 3.0/3.1 coverage, and disable
fail-fast so one version's failure no longer cancels the rest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rahul-mixpanel
rahul-mixpanel force-pushed the ci/fix-setup-ruby-ubuntu-26 branch from 44bcc83 to 99925c7 Compare November 11, 2026 11:48
@greptile-apps

greptile-apps Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Reviews (1) · Last reviewed commit: "chore: bump setup-ruby and pin test matr..." · Reviewed by Greptile

@ketanmixpanel ketanmixpanel left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Pinning setup-ruby to v1.338.0 by SHA and moving to ubuntu-24.04 keeps Ruby 3.0 and 3.1 in the matrix, and fail-fast: false is a good change.

Local run on this branch (Ruby 3.2.2): core 407 examples, 0 failures, 2 pending (also pending on master); openfeature-provider 62 examples, 0 failures.

Nit: the 24.04 pin will go stale quietly. Worth a ticket for the Ruby 3.0/3.1 drop decision you list as a follow-up.

Copy link
Copy Markdown
Contributor Author

The goal was to unblock the other PRs from CI failures. If this becomes an issue in future, we could pick it up as a new task. Should be straight forward.

@rahul-mixpanel

Copy link
Copy Markdown
Contributor Author

Thanks @ketanmixpanel! Agreed. The 24.04 pin should be revisited along with the Ruby 3.0/3.1 drop decision, and that'll get a follow-up ticket.

@linear-code

linear-code Bot commented Nov 12, 2026

Copy link
Copy Markdown

SDK-479

@rahul-mixpanel
rahul-mixpanel merged commit f9ebc85 into master Nov 12, 2026
16 checks passed
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