-
Notifications
You must be signed in to change notification settings - Fork 69
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
Rails 6 #516
Rails 6 #516
Conversation
Current status:
|
@markets wouldn't we a bit less risky to do a major revamp of all our gems in our current version and then going through a more progressive migration path, from 4.2 to 5, then to 5.2 and finally to 6? again, I'm just aiming to minimize anything that requires our attention. |
Hi @sauloperez 👋 I don't think so, this way we need to test the app only 1 time. Locally (before the fist commit I mean), I already made the transition from 4.2 -> 5.0 -> 5.2 -> 6.0. I know this is really big branch 😺, but I prefer 1 big branch and test the whole thing 1 time vs several Rails upgrades and tests. On the other hand, during the latest 4/5 months, I worked on this topic in my company (we upgraded 5 BIG apps from 4.2 -> 6.0), so more or less I have all the "tricks" and common steps fresh in my mind :)) I'll finalize this after the Elastic ✂️ (#551), so I don't need to migrate the Elastic gems. I really think we can do it this way and test the app only once (ok should be a depth test 💪, but only 1 time) I'll test with care locally before removing the |
Ok, @markets far enough. I give you all my trust 😂 . By the way, those migration skills you got might come in handy in another project you might know about 😏 |
Pending:
|
Update: only specs still pending to be reviewed. I just made a first attempt, and I got a lot of errors from ElasticSearch:
But as pointed above, I'll prefer to avoid this migration, so I'll wait until the ElasticSearch ✂️. |
…w (detected on Travis logs: https://travis-ci.org/github/coopdevs/timeoverflow/builds/749899949#L476). Taking a look to the structure.sql file, it seems it was generated using postgresql 9.5 (e09469c#diff-1dd5a8f580b9615769ddc19a64a98f455d9d20eb149c443f41d9d3c797d39b12R5), so maybe at some point we should fix this situation (a dump from current production?).
A deploy fails because the loaded version and the one specified in config/deploy.rb don't match.
I tried to deploy it to staging but we need more changes to provisioning. Capistrano raises the following:
We need to upgrade bundler in both servers, which I'm doing in coopdevs/timeoverflow-provisioning#183. |
This is the version the Gemfile.lock at coopdevs/timeoverflow#516 defines.
This only install the required bundler version when installing a new Ruby version. It does not do that when Ruby is unchanged. To solve this I did a `gem install bundler -v 2.1.4` manually. All pior efforts using the command module failed so I figured it wasn't a big deal since it's a change that happens very rarely. This is bundler version is the one Gemfile.lock at coopdevs/timeoverflow#516 defines.
This only installs the required bundler version when installing a new Ruby version. It does not do that when Ruby is unchanged. To solve this I did a `gem install bundler -v 2.1.4` manually. All prior efforts using the command module failed so I figured it wasn't a big deal since it's a change that happens very rarely. This is bundler version is the one Gemfile.lock at coopdevs/timeoverflow#516 defines.
Now we got passed bundler but there's another failure.
you should be able to precompile assets locally and debug it @markets. We should also give you permission to deploy to speed things up. |
Cool @sauloperez! I'll fix that one about js compilation, thanks! |
Fixed by 88b898f ✔️ |
Thanks @markets @sauloperez for these great efforts 👏 👏 👏 |
Wow! all tests passing! ✔️ 🏁 |
All yours for testing @sseerrggii . I just deployed it to staging. |
👍 |
Tested!! Rails 6 seems to work perfect, maybe it's my imagination but the app flies 🛩️ I needed to edit I noticed one problem, but I'm not sure if its Rails 6 related, I think it happened to me sometimes in the past 🤔 but on master works fine.... On /statistics_all_transfers i get: |
Si! Perfecte! Thanks @markets for me it's green @sauloperez ✔️ |
👍🏼 @sseerrggii you're right! good catch! I just pushed a couple of fixes:
Now all green again, even code coverage and coverage diff ✅ |
@markets @sauloperez I think it's ready to merge Who should do the merge? |
🆒 😎 thanks! Rails 6 is in da house 🎉 |
Already live in production 😎 although I took us v3.1.0 and v3.1.1 to get it right. |
Rails 6 🎉
Extras:
coffee-rails
.rspec
fileNotes:
Rails/HttpPositionalArguments
cop