-
Notifications
You must be signed in to change notification settings - Fork 7
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 to Ruby 2.4 #1794
Upgrade to Ruby 2.4 #1794
Conversation
Let's wait until January to merge this, so that we send it to production when Julien is back from vacations. |
2b891ad
to
5103c3e
Compare
Hum, the integration tests on CI seem to be much slower all of a sudden in this branch ( |
Selecting options is what's taking the most time in both Capybara & Cucumber specs. Each time it must select an option in a form, the browser hangs for a while, and I see the following message in the geckodriver log. It eventually continues but that inserts many hangs in the automated process that slows everything down (the rest feels normally fast).
It may have something to do with the CdxSelect React component. |
Further reduced: the hangup occurs when we click the |
Found it: |
I added an optimization to avoid blindly looking for the element when it's already the element we expect (it matches There are still lots of cases where the fallback to the slow path is required (which I tried to optimize a bit). Reviewing the matchers in Page Objects to directly attach CdxSelect to |
@matiasgarciaisaia I reworked the production The changes for deployments are:
This is already done in staging. |
ee546ff
to
a2089d0
Compare
# Add config files | ||
ADD docker/web-run /etc/service/web/run | ||
EXPOSE 3000 | ||
CMD ["/app/docker/web-run"] |
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.
The command actually starts whenever
and puma
processes. We might want to have a distinct container for whenever
, like we do for sidekiq
.
Alternative: use sidekiq-cron
or sidekiq-scheduler
instead.
@@ -1,4 +1,4 @@ | |||
FROM ruby:2.3 | |||
FROM ruby:2.4 |
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.
Yeah, we're moving to Debian Buster (oldstable
) 💪
BUG: the PDF is slightly different than on Generating the PDF relies on the abandoned and far outdated After trying, unsuccessfully, to get a similar rendering, I chose to try out Prawn which proved as simple to use as ever and allowed to tweak the render to reach almost exactly the same render when zoomed at 400% (important because of dot matrix printer). |
4caa11a
to
2accebc
Compare
encryptor
gem (fixing the algorithm to the previousaes-256-cbc
default);poirot-rails
gem (we'll remove it in a dedicated PR);aws-sdk
gem (or justaws-sdk-s3
);therubyracer
gem withmini_racer
(Upgrade tomini_racer
gem #1791);Gemfile
to use the merged commitbuild therework production Dockerfile to be based oninstedd/nginx-rails:2.4
Docker imageruby:2.4
instead ofinstedd/nginx-rails
.refs #1792