-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Bump ruby version to 3.1.3 #36074
Bump ruby version to 3.1.3 #36074
Conversation
Hi @spuyet! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
Base commit: 7c82a3f |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
2 similar comments
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
I think you should also bump the Supported Xcode versions: https://circleci.com/docs/using-macos/ Xcode Also not sure if Ruby 3 is good to go per #33485 discussion |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
2 similar comments
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
@dcangulo Thx for you help, I bumped the Xcode version to |
There is some breaking changes with the release of Xcode 14.2: https://discuss.circleci.com/t/xcode-14-2-released-breaking-changes/46303
|
ls -l vendor/bundle/ruby | ||
ls -l vendor/bundle/ruby/3.1.0/bin |
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.
Can we remove these lines?
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.
I'm still debugging the build as it does not work, looks like bundle exec pod
fails because the binstub
is not found for ruby 3.1.3
, it needs more investigation. This is not easy to debug as the whole build is extremely slow.
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.
Yeah, I know... We need to set aside some time to make it faster and more efficient... :(
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.
Thanks for the effort you are putting into it!
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.
It looks to me like the test_ios_rntester
job is missing the setup_ruby
step. This is where gems are installed, so Cocoapods doesn't exist. (I'm guessing maybe it was previously working because it was pulling the gems from a cache?)
Can we add the setup_ruby
step to test_ios_rntester
, or will that break something?
It looks like things aren't very consistent with Ruby on CircleCI. There is a fairly recent support article that says:
But, it looks like I was trying to get steps:
- run:
name: Install Ruby
command: rbenv install 2.7.6
- macos/switch-ruby:
version: 2.7.6 It may be necessary to consider this if RN intends to continue to pin each version to an exact version of Ruby. I suppose the options are:
|
Hi @spuyet! Thank you so much for this PR: it was extremely helpful and instrumental to kickstart an internal discussion with the React org about the DevX we want to provide related to Ruby. We decided to go into a different direction and to support a wider range of Ruby versions rather than fixing a single specific one. See this comment for further info. Again, thank you so much for all the work you are putting in your contributions, please keep'em coming: we strongly believe that React Native and Meta could benefit from OSS contributions as much as the community can benefit from our work on the framework! Thank you so much! 🙇 |
@cipolleschi Could you post an update/conclusion to the Discussions and Proposals thread? |
@kevinvangelder we removed all the ruby requirements (but not Ruby Bundler) from the codebase, so now React Native should work with all the Ruby versions from |
Which React Native versions does this apply to? |
@tibbe I think this should apply to all the versions in the current support window, so 73-72-71. Probably also 70. |
Summary
Ruby 2.7 EOL is in less than 2 months so we should bump the version to the latest one available.
This is could break some stuff, let's see if the CI is complaining 😉
Changelog
[GENERAL] [CHANGED] - Bump ruby version to 3.1.3
Test plan
No particular test plan.