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 cla@meta.com. 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.
Can we remove these lines?
There was a problem hiding this comment.
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.
Yeah, I know... We need to set aside some time to make it faster and more efficient... :(
There was a problem hiding this comment.
Thanks for the effort you are putting into it!
There was a problem hiding this comment.
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.6It 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.