-
Notifications
You must be signed in to change notification settings - Fork 24
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
Ruby3 Updates #438
Ruby3 Updates #438
Conversation
pderouen
commented
Apr 28, 2022
•
edited
Loading
edited
- Minor updates to get tests passing with Ruby 3
- Web compile is broken again in Windows, disabled that check for Windows GA
- Web compile is also broken with Ruby 3 (Windows & Linux), disabled in GA
- lint crashes when with Ruby 3 in GA, disabled that for now as well
- gem install origen is not able to see anything newer than 0.30, so Ruby 3 GA builds then installs
@pderouen Any performance improvements noticed when running the specs and tests for 3.x? |
Seems to be taking about the same amount of time when run with github actions |
Assuming everybody is ok with the changes and the open issues, this PR can be merged. There's not a rush. But, it would be nice to have a version available to use with ruby 3. |
The original rule sets were the defaults that Rubocop provided at the time. |
Should the tests not also be run on Ruby 2, or is the intention to only support R3 from here? |
The tests for Ruby 2.5, 2.6, and 2.7 still run. There are 4 work flows now because of the various issues (raised above):
Windows Ruby 2 checks |
@ginty I think I'll be able to use just the 1 workflow by adding if conditionals. That should make it less convoluted to figure out what's going on with the test setups. |
I'm not sure if I just missed the scroll bar when you show the checks below, or if it wasn't there before, but I can certainly see all the jobs now, thanks! |
I've noticed that some times it just take a bit longer to add all the jobs to the queue. |
ok, I like this better. Just 1 workflow and it's easy to see what's being run for which conditions. |
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
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.
What is the TL;DR on the 3.1 support? We have 3.1.2 on the network here but no 3.0. But I only see regressions run on 3.0. Can we add a 3.1 to it?
The rubocop version (0.30.0) is not compatible with Ruby 3.1:
That's the only issue with 3.1 (I think). I can add 3.1 to the checks and have it skip lint. |
@coreyeng I can take a look at updating rubocop over the next week or so. I spent a few hours on it when I first ran into it and discovered that we just need all new rule sets if moving to a newer version. |
Sounds good. IMO, its not really Ruby 3 ready if we need to axe one of the main commands and checks to make it work. I can probably help out too towards the end of the month if its still a lingering problem. |
@coreyeng I've been sifting through the new lint violations (>6000 with the new default rules) and refining the rules to be closer to what we had before. It's looking like there will be quite a few code changes for lint (100's). I would like to go ahead and start a separate branch just for the lint upgrade. I will get the new branch pushed up to the repo in the next few days. |
Sounds good! |