-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set maximum supported Ruby version #2497
Conversation
From the release announcement: Notable changes that may be impactful, sometimes silently (as in they may appear to work but displace/lose data): Delegation of args and kwargs
We must make sure to have Long term, in order to support both ruby <= 2.6, ruby 2.7, ruby 3.0+, and the future ruby version where
Note: 2.7 has slightly different behaviour than 2.6 and not so slightly than 3.0, sometimes depending how Proc arguments don't autosplat anymore
We should check whether we have such cases. Depending on code/specs things may appear to silently work but produce incorrect results. Constant assignment evaluation order
This doesn't appear to impact us:
|
I'm adding dd-trace-rb to an app already on Ruby 3.2, running into issue #2534 would love to know when Ruby 3.2 support will be available. |
There's quite a few things here -- I plan to separate this PR out a bit, and make sure we have Ruby 3.2 support for the next release of dd-trace-rb. |
This PR is mostly replaced by #2601 . I'm leaving it open as we may still want to import the tweak to the ruby maximum version. |
I've refreshed this PR, and now it tackles only the maximum version change. |
Codecov Report
@@ Coverage Diff @@
## master #2497 +/- ##
==========================================
- Coverage 98.02% 98.01% -0.01%
==========================================
Files 1148 1148
Lines 62453 62454 +1
Branches 2808 2808
==========================================
- Hits 61218 61217 -1
- Misses 1235 1237 +2
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
This looks good to me, although I think there was some ongoing discussion internally on < 3.3 vs < 3.4 so I guess we should probably arrive to a conclusion. Also -- can I annoy you to remove the old commits from the PR and keep only the latest change? ;) |
But then I can't inflate my commit stats in the repo! |
Ha! Only I am allowed to do that xD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM and thanks for capturing our reasoning.
I agree it makes sense to double-check with Loic as you mentioned on slack, since he's also been very interested in this discussion so far :)
I feel like we should still keep a note about |
I don't mind keeping the comment, but I think realistically that's yet another thing that was maybe-planned by Ruby core but didn't pan out lol. The Ruby codebase has a lot of other comments about things being experimental or removed soon and that weren't changed yet, so I'm not sure if we should worry about that one specifically :) (I'm still waiting for my frozen-by-default strings without magic comment :P ) |
Bump maximum Ruby version to the next, unreleased version 3.3 (
< 3.4
in practice).This PR also changes the comment around the
MAXIMUM_RUBY_VERSION
constant in order to document why we limit it, and what version we limit it to.