Skip to content

Conversation

@cretz
Copy link
Member

@cretz cretz commented Jan 5, 2026

What was changed

  • Updated min Ruby version in gemspec to 3.3
  • Updated GH build-gems workflow to drop 3.2 and add 4.0
  • Updated GH ci workflow to do 3.3-4.0 instead of 3.2-3.4
  • Updated rb-sys and magnus, and then updated associated Rust code needed
  • Updated rbs and steep, and then updated a lot of sig code and some runtime code to conform to newer rules

NOTE: Waiting until release to update README with the changes in supported versions. Once this is approved, will adjust the "required checks" to fit the newer check names.

Checklist

  1. Closes [Feature Request] Confirm/assert Ruby 4 compatibility, maybe drop 3.2 support #364

@cretz cretz force-pushed the ruby-4 branch 6 times, most recently from 0e52446 to b7e3e4a Compare January 6, 2026 20:37
@cretz cretz marked this pull request as ready for review January 6, 2026 21:24
@cretz cretz requested a review from a team as a code owner January 6, 2026 21:24
Comment on lines -44 to +45
bundle exec rb-sys-dock --platform ${{ matrix.rubyPlatform }} --ruby-versions "3.2,3.3,3.4" --mount-toolchains --build
gem install rb_sys --no-document
rb-sys-dock --platform ${{ matrix.rubyPlatform }} --ruby-versions "3.3,3.4,4.0" --mount-toolchains --build
Copy link
Member Author

Choose a reason for hiding this comment

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

Had to be changed from bundle exec because bundle exec did a bundle install which was leaking GH-runner-built gems into the rb-sys-dock container causing glibc mismatches

Copy link
Member

@chris-olszewski chris-olszewski left a comment

Choose a reason for hiding this comment

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

All looks good to me.

Spot checked a few of the steep:ignore and they do all seem like false positives. Do you think it would worthwhile to tags the ignore with the specific errors?

class ExternallyImmutableHash < SimpleDelegator
def initialize(initial_hash)
super(initial_hash.freeze)
super(initial_hash.freeze) # steep:ignore
Copy link
Member

Choose a reason for hiding this comment

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

Any idea on why this became an ArgumentTypeMismatch with the steep bump?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. In RBS, we are calling this a Hash and there is not a typed initializer of hash that is valuable here. This is technically an initializer of SimpleDelegator, but RBS has no way of representing SimpleDelegator as what it truly is, so we lie. Newer Steep catches that this is an invalid super call for Hash even though we know it's valid for a delegator.

@cretz
Copy link
Member Author

cretz commented Jan 7, 2026

Do you think it would worthwhile to tags the ignore with the specific errors?

Maybe, at least for non-test code. Will look into doing so.

@cretz cretz merged commit 2bbcb88 into temporalio:main Jan 7, 2026
7 checks passed
@cretz cretz deleted the ruby-4 branch January 7, 2026 16:54
@kapso
Copy link

kapso commented Jan 8, 2026

@cretz thanks for adding Ruby 4 support

@chris-olszewski is there a release date for this? thanks.

@cretz
Copy link
Member Author

cretz commented Jan 8, 2026

There is not a specific release date, but shouldn't be too long. In the meantime, you can either build yourself or use gems that are made available as artifacts on main https://github.com/temporalio/sdk-ruby/actions/workflows/build-gems.yml runs.

@kapso
Copy link

kapso commented Jan 14, 2026

Hey guys any update on the release date?

We tried building from repo on our PaaS and it does not work.

@cretz
Copy link
Member Author

cretz commented Jan 14, 2026

Hey guys any update on the release date?

No specific update, though probably soon

We tried building from repo on our PaaS and it does not work.

Can also just download the gems that are uploaded artifacts to the latest main build-gems runs at https://github.com/temporalio/sdk-ruby/actions/workflows/build-gems.yml. Feel free to join us on #ruby-sdk on Slack to discuss the build issues and see if we can help.

@kapso
Copy link

kapso commented Jan 14, 2026

We tried that but it doesn't work. We use a PaaS for deployment so we dont have lot of control on the env.

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.

[Feature Request] Confirm/assert Ruby 4 compatibility, maybe drop 3.2 support

3 participants