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
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

2 participants