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

Upgrade Ruby to 2.7 #3055

Merged
merged 6 commits into from Aug 17, 2022
Merged

Upgrade Ruby to 2.7 #3055

merged 6 commits into from Aug 17, 2022

Conversation

knu
Copy link
Member

@knu knu commented Dec 31, 2021

We need to update Ruby to 2.7 before we can look to update to Ruby 3.x.

Currently, Ruby 2.7 builds are so flaky and tests are randomly failing whereas no failures are seen with Ruby 2.6. Solved!

@knu
Copy link
Member Author

knu commented Dec 31, 2021

https://github.com/huginn/huginn/runs/4672758156
Failures are so random I have no idea what is going on. 🤔

@knu knu force-pushed the ruby-2.7 branch 13 times, most recently from 2c83d38 to 7a9baa7 Compare January 4, 2022 10:49
@knu
Copy link
Member Author

knu commented Jan 6, 2022

The test instability reproduced on CircleCI containers, so there has to be something there. I'll investigate further to figure out.

@knu knu force-pushed the ruby-2.7 branch 8 times, most recently from 2ba6040 to a616ad2 Compare January 13, 2022 10:59
@knu
Copy link
Member Author

knu commented Jan 13, 2022

super_diff was useful while investigating failing tests, but after experiencing unstable test results, turning it off seems to have fixed the problems.

@knu knu changed the title Support Ruby 2.7 Upgrade Ruby to 2.7 Jan 13, 2022
@vfonic
Copy link

vfonic commented Feb 9, 2022

Hey @knu!

What's the status of this PR?
I'm looking into using this project for scraping some data off the web, but my project uses Ruby 2.7.
Ruby 2.6 is at the EOL: https://www.ruby-lang.org/en/downloads/

@knu knu force-pushed the ruby-2.7 branch 2 times, most recently from cb96ecc to 7dd1737 Compare March 24, 2022 16:52
@knu
Copy link
Member Author

knu commented May 24, 2022

The unstableness might be caused by caching of the interpolation context.

I can not really explain why this broke. For some reason the array we
use as an index for the interpolation cache was not "hashed" properly
and created false hits inn the cache. Explicitly calling `hash` on the
array key also calls `hash` on elements and properly caches the data.
@knu knu force-pushed the ruby-2.7 branch 2 times, most recently from c6dc65e to 1c920b7 Compare August 17, 2022 17:43
- em-http-request 1.1.7
- google-protobuf 3.21.5
- jmespath 1.6.1
- nokogiri 1.13.8
- rack 2.2.4
- rails 6.0.5.1
@knu
Copy link
Member Author

knu commented Aug 17, 2022

Now that the test flakiness has been fixed, it's time to merge this!

@knu knu merged commit bb19f2f into master Aug 17, 2022
@knu knu deleted the ruby-2.7 branch August 17, 2022 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants