Skip to content
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

Support ruby 3 #21531

Merged
merged 8 commits into from
Sep 22, 2022
Merged

Support ruby 3 #21531

merged 8 commits into from
Sep 22, 2022

Conversation

jrafanie
Copy link
Member

@jrafanie jrafanie commented Oct 29, 2021

Let's upgrade to ruby 3

Need new gems:

Dependencies:

After this PR is merged:

@jrafanie
Copy link
Member Author

jrafanie commented Jan 10, 2022

@miq-bot cross-repo-tests /all ManageIQ/inventory_refresh#97

miq-bot pushed a commit to ManageIQ/manageiq-cross_repo-tests that referenced this pull request Jan 10, 2022
@jrafanie
Copy link
Member Author

@miq-bot cross-repo-tests /all ManageIQ/inventory_refresh#97

miq-bot pushed a commit to ManageIQ/manageiq-cross_repo-tests that referenced this pull request Jan 10, 2022
miq-bot pushed a commit to ManageIQ/manageiq-cross_repo-tests that referenced this pull request Jan 10, 2022
@jrafanie
Copy link
Member Author

@miq-bot cross_repo_tests #21531, /all including #21531, ManageIQ/inventory_refresh#97

miq-bot pushed a commit to ManageIQ/manageiq-cross_repo-tests that referenced this pull request Jan 10, 2022
@jrafanie
Copy link
Member Author

@miq-bot cross_repo_tests #21531,/core including #21531, ManageIQ/inventory_refresh#97

jrafanie added a commit to jrafanie/manageiq-pods that referenced this pull request Sep 20, 2022
Depends on ruby 3 support via ManageIQ/manageiq#21531
Depends on ManageIQ/manageiq-rpm_build#304 for ruby 3
rpm builds
@jrafanie jrafanie closed this Sep 20, 2022
@jrafanie jrafanie reopened this Sep 20, 2022
Gemfile Outdated
@@ -1,5 +1,5 @@
raise "Ruby versions < 2.6.0 are unsupported!" if RUBY_VERSION < "2.6.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this change to make 2.7 the minimum?

Gemfile Outdated
@@ -85,7 +85,7 @@ gem "mime-types", "~>3.0", :require => false,

# Modified gems (forked on Github)
gem "handsoap", "=0.2.5.5", :require => false, :source => "https://rubygems.manageiq.org" # for manageiq-gems-pending only
gem "ruport", "=1.7.0.3", :source => "https://rubygems.manageiq.org"
gem "ruport", "~>1.8.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is no longer modified we should move it into the "regular gems" section.

@jrafanie jrafanie changed the title [WIP] Support ruby 3 Support ruby 3 Sep 21, 2022
@jrafanie
Copy link
Member Author

I'm finished suggested changes and restarted the cross repo tests: ManageIQ/manageiq-cross_repo-tests#706

I think we're ready to merge when things are green.

@miq-bot
Copy link
Member

miq-bot commented Sep 21, 2022

Checked commits jrafanie/manageiq@04e0622~...f9469b7 with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint
21 files checked, 0 offenses detected
Everything looks fine. ⭐

@miq-bot miq-bot removed the wip label Sep 21, 2022
@jrafanie
Copy link
Member Author

@agrare @bdunne @kbrock @Fryguy Ok, this is green, the 3.0 results are the same as the 2.7 ones (ui-service and api fail in the same way): ManageIQ/manageiq-cross_repo-tests#706

I think we're ready to merge this and start building pods and appliances and ensuring all the repositories are testing with 3.0 going forward.

raise "Ruby versions < 2.6.0 are unsupported!" if RUBY_VERSION < "2.6.0"
raise "Ruby versions >= 3.0.0 are unsupported!" if RUBY_VERSION >= "3.0.0"
raise "Ruby versions < 2.7.0 are unsupported!" if RUBY_VERSION < "2.7.0"
raise "Ruby versions >= 3.1.0 are unsupported!" if RUBY_VERSION >= "3.1.0"
Copy link
Member Author

@jrafanie jrafanie Sep 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2.7 minimum and 3.0.x maximum

Copy link
Member

@bdunne bdunne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@bdunne bdunne merged commit de23798 into ManageIQ:master Sep 22, 2022
@bdunne bdunne assigned bdunne and unassigned Fryguy Sep 22, 2022
@jrafanie jrafanie deleted the ruby3 branch September 22, 2022 14:34
@Fryguy Fryguy added this to the Oparin milestone Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants