[ 
https://issues.apache.org/jira/browse/THRIFT-5909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18043174#comment-18043174
 ] 

Dmytro Shteflyuk edited comment on THRIFT-5909 at 12/5/25 11:54 PM:
--------------------------------------------------------------------

In the [May 
update|https://blog.rubygems.org/2025/06/16/may-rubygems-updates.html], 
Rubygems team reported rubygems statistics by Ruby version.

!CleanShot 2025-12-05 at [email protected]|width=100%!

It does seem like 2.7 still has some traction (8.25%, down from 15.78% for the 
previous year). Looks like a it might be worthwhile to start the CI matrix from 
this version (even though it is technically EoL).

Other examples:
 * 
[stdio|https://github.com/ruby/stringio/blob/master/.github/workflows/ubuntu.yml#L11]
 - core ruby gem, supports 2.7 and up
 * [aws-sdk-core|https://rubygems.org/gems/aws-sdk-core], second most 
downloaded package on RubyGems - 2.7 and up
 * [rack|https://rubygems.org/gems/rack] is 2.4 and up and they [actually test 
it|https://github.com/rack/rack/blob/main/.github/workflows/test.yaml#L16]

Many of the [top downloaded ruby gems|https://rubygems.org/stats] support older 
Ruby versions. They are also tend to be the oldest on the market. Bundler 
itself only supports active Ruby versions.


was (Author: kpumuk):
In the [May 
update|https://blog.rubygems.org/2025/06/16/may-rubygems-updates.html], 
Rubygems team reported rubygems statistics by Ruby version.

 !CleanShot 2025-12-05 at [email protected]! 

It does seem like 2.7 still has some traction (8.25%, down from 15.78% for the 
previous year). Looks like a it might be worthwhile to start the CI matrix from 
this version (even though it is technically EoL).

Other examples:

* 
[stdio|https://github.com/ruby/stringio/blob/master/.github/workflows/ubuntu.yml#L11]
 - core ruby gem, supports 2.7 and up
* [aws-sdk-core|https://rubygems.org/gems/aws-sdk-core], second most downloaded 
package on RubyGems - 2.7 and up
* [rack|https://rubygems.org/gems/rack] is 2.4 and up and they [actually test 
it|https://github.com/rack/rack/blob/main/.github/workflows/test.yaml#L16]

Many of the [top downloaded ruby gems|https://rubygems.org/stats] support older 
Ruby versions. They are also tend to be the oldest on the market. Bundler 
itself only supports active Ruby versions.

> add Ruby in GitHub workflow
> ---------------------------
>
>                 Key: THRIFT-5909
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5909
>             Project: Thrift
>          Issue Type: Sub-task
>          Components: Build Process, Ruby - Library
>            Reporter: Dmytro Shteflyuk
>            Assignee: Dmytro Shteflyuk
>            Priority: Major
>         Attachments: CleanShot 2025-12-05 at [email protected]
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> * Build is currently breaking for modern Ruby versions (see related tickets)
> * Need to make a decision on which Ruby versions are supports (see below)
> * Cross-tests break on UUID fields
> * There something weird going on with SSL
> Currently working on addressing all that in 
> https://github.com/kpumuk/thrift/commits/cross-test-ruby/ (will cleanup/split 
> to MRs/rewrite once the build is green).
> h2. Ruby versions
> _from https://github.com/apache/thrift/pull/3249#issuecomment-3563902783_
> Currently supported versions are 3.2 and above https://endoflife.date/ruby, 
> which might be too aggressive, maybe? I'm thinking about 2.7 and up 
> (https://github.com/kpumuk/thrift/actions/runs/19521001691), but can of 
> course lower it.
> It is also would make sense to limit support to Ruby versions that did not 
> reach their end of life. This would not only free up the resources on the CI, 
> but allow to use modern features and upgrade dependencies. Users who decide 
> to use outdated Ruby versions might as well continue using outdated versions 
> of the Thrift gem.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to