-
Notifications
You must be signed in to change notification settings - Fork 26
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
Update Ruby to 3.2 #425
Update Ruby to 3.2 #425
Conversation
Since Ruby 2.7 is close to EOL, we are going to switch bundled Ruby to 3.2. We'll ship it as td-agent 5.0. TODO: Install Rust to build environment to build YJIT. Signed-off-by: Takuro Ashie <[email protected]>
Because they are already or close to EOL, we'll drop supporting them from the next release. Signed-off-by: Takuro Ashie <[email protected]>
Signed-off-by: Takuro Ashie <[email protected]>
632888c
to
db92e83
Compare
Signed-off-by: Takuro Ashie <[email protected]>
The source code of libffi is no longer bundled as of Ruby 3.2. Signed-off-by: Takuro Ashie <[email protected]>
The mater branch is now going to develop v5.0. Signed-off-by: Takuro Ashie <[email protected]>
* libffi-dev: Need to build fiddle as of Ruby 3.2 * libreadline-dev: Originally it was not built for Debian based distros but is enabled on Red Hat based distros. Signed-off-by: Takuro Ashie <[email protected]>
Signed-off-by: Takuro Ashie <[email protected]>
Signed-off-by: Takuro Ashie <[email protected]>
Signed-off-by: Takuro Ashie <[email protected]>
Hmm,
Updating bundler to 2.4.4 doesn't take effect. It doesn't reproduce on Ruby 3.1:
|
Run
|
When I run
(It reproduces on It might be a same issue we experienced in the past. |
I've confirmed on my local environment that nokogiri 1.14.0 is buildable on Ruby 3.2 for Windows. |
a367c02
to
6e9be98
Compare
* msys2 20221216.0.0 * Ruby 3.1.3.1 Signed-off-by: Takuro Ashie <[email protected]>
Signed-off-by: Takuro Ashie <[email protected]>
Signed-off-by: Takuro Ashie <[email protected]>
Signed-off-by: Takuro Ashie <[email protected]>
This could be occurred with fat gem mechanism. Maybe, nokogiri 1.13 or older does not include a binary for Ruby3.2, right? |
Yes. Now I succeeded to build it also on CI by nokogiri 1.14.0. |
I recommend to use Windows Sandbox for testing msi package or zip package. This is provided from Windows Professional Edition or higher. However, this isolated and refreshed in every time environment quite useful to test implicit dependencies. Or, using Dependencies to testify dependencies of Windows executables: https://github.com/lucasg/Dependencies |
This is because YJIT will introduce MSVC runtime dlls. |
Thanks for your information. I forgot it so far. |
In my understanding, Ruby on Windows doesn't support YJIT. In actual, RubyInstaller 3.2 doesn't provide
|
Got it. Interesting... |
I completely misunderstood the error, it's not installation error:
Something uses One of suspected module is serverspec but it's already fixed in 2.42.1: |
Oh, sorry, this is not related to serverspec test... |
I got it. It's specinfra's issue:
|
Fixed in specinfra-2.84.1 |
Wow! Super quick! |
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.
Almost of all really good to me. However, the latest version of msys2 is not same for currently used in this PR. Could you confirm whether we can use the latest version of msys2 on this PR or not?
Sorry, please let me see this tomorrow. |
If it doesn't cause a regression, adopting latest openssl 1.1.1s may be better. NOTE: openssl 1.1.1r has a regression. so announced of withdrawal |
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.
This PR is focused on updating Ruby. |
Signed-off-by: Takuro Ashie <[email protected]>
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.
Sorry for being late.
I have checked the fixes.
In addition, I have checked that the --yjit
option of the embedded Ruby works in my M1 MacBook.
LGTM.
Thanks for your review! |
Since Ruby 2.7 is close to EOL, we have to update Ruby.
The next major version of td-agent will bundle Ruby 3.2.
FYI: https://www.ruby-lang.org/en/news/2022/12/25/ruby-3-2-0-released/
TODO:
Fix CI failure on WindowsDone