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

Bump Ruby to 2.3.7 #4518

Merged
merged 1 commit into from
Dec 11, 2019
Merged

Conversation

Matt-Yorkley
Copy link
Contributor

What? Why?

Related to #2891

Bumps Ruby to 2.3.7 🎉 I had to drop down from 2.3.8 because Semaphore apparently doesn't support it.

Full Ruby changelogs are here:

What should we test?

General release type test of core functionality.

Release notes

Bumped Ruby version to 2.3.7

Changelog Category: Changed

@Matt-Yorkley Matt-Yorkley self-assigned this Nov 28, 2019
@Matt-Yorkley
Copy link
Contributor Author

It's green!

@luisramos0
Copy link
Contributor

"Rails 3.2 reached its end of life-cycle with the release of Rails 5.0 on June 30th, 2016"
Ruby 2.3.0 was released on 2015-12-25
Ruby 2.3.7 was released on 2018-03-28

"Rails versions 3.2 to 4.2 were built to work with any version of Ruby from 1.9. 3 to 2.2, allowing flexibility"

I assume this will be the last ruby upgrade before the rails upgrade. Is that correct?
I think ruby 2.4 will only be ok with Rails 4.2 (not rails 4). link
I hope this ruby 2.3 will not create trouble when upgrading to rails 4.0.

@Matt-Yorkley
Copy link
Contributor Author

Yeah I think this will be the last one.

@mkllnk
Copy link
Member

mkllnk commented Dec 3, 2019

I'm concerned about Rail 4.0 being untested with Ruby 2.3. I haven't been able to run the Rails specs yet to confirm it it works. I would like test a couple more things. Otherwise I would say let's just try it. Worst case would be that we have to downgrade Ruby during the next upgrade. :-(

Copy link
Member

@mkllnk mkllnk left a comment

Choose a reason for hiding this comment

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

Okay, I double checked that this passes the specs.

@@ -1,5 +1,5 @@
source 'https://rubygems.org'
ruby "2.2.10"
ruby "2.3.7"
Copy link
Member

Choose a reason for hiding this comment

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

I'm wondering if we should remove this line altogether. I believe that the purpose is to make Bundler fail fast if the used Ruby version isn't right. Docs. But our application does work with several Ruby versions at the moment (2.1, 2.2, 2.3). So I would skip this requirement and see the .ruby-version file as source of truth to select the best version.

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, I think we'll get to it as soon as it breaks our development with the two versions.

@sigmundpetersen
Copy link
Contributor

I guess this is dependent on openfoodfoundation/ofn-install#549 before merge? 😊

@RachL RachL self-assigned this Dec 10, 2019
@RachL RachL added pr-staged-fr staging.coopcircuits.fr and removed pr-staged-fr staging.coopcircuits.fr labels Dec 10, 2019
@RachL RachL removed their assignment Dec 10, 2019
@luisramos0 luisramos0 added the pr-staged-fr staging.coopcircuits.fr label Dec 11, 2019
@luisramos0
Copy link
Contributor

I provisioned staging-fr with latest ofn-install (with 549) and now I started the deploy of this PR:
https://semaphoreci.com/openfoodfoundation/openfoodnetwork-2/servers/fr-staging/deploys/137

@RachL RachL self-assigned this Dec 11, 2019
@luisramos0
Copy link
Contributor

looking good, ready for testing.

@RachL
Copy link
Contributor

RachL commented Dec 11, 2019

Ok so I've taken the same testing approach than #4250 and #4301, which means I did a sanity check:

1- Login
2- Create a product and it appears correctly in the shop
3- Checkout (paypal & cash)
4- See the order on the order view (+ capture and ship and edit)

The rest will be tested during release testing like previsouly. So I'm moving this to ready to go 🎉

@RachL RachL removed the pr-staged-fr staging.coopcircuits.fr label Dec 11, 2019
@luisramos0 luisramos0 merged commit 4799293 into openfoodfoundation:master Dec 11, 2019
@sigmundpetersen
Copy link
Contributor

@luisramos0 should the open PR's in the pipe be rebased after this merge?

@sauloperez
Copy link
Contributor

sauloperez commented Dec 11, 2019

No need. Now the servers will have the current and upcoming Ruby version installed 🎉 we learned the lesson.

@luisramos0 luisramos0 mentioned this pull request Oct 1, 2020
@luisramos0 luisramos0 mentioned this pull request Dec 1, 2020
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.

6 participants