-
Notifications
You must be signed in to change notification settings - Fork 12
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
Drop integration tests for Ruby 2 and Rails 5 #160
Conversation
Pull Request Test Coverage Report for Build 10523965758Details
💛 - Coveralls |
Whilst we generally pass this argument, it should be `2.0.0`.
89a8669
to
9a3cf45
Compare
We are dropping integration test support for these end of life versions. This work will focus solely on the integration tests and not the gem itself.
9a3cf45
to
10f676e
Compare
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.
I'm not confident reviewing the last commit, but the rest look good to me
run: | | ||
rails_versions=$(curl https://rubygems.org/api/v1/versions/rails.json | jq 'group_by(.number[:1])[] | (.[0].number) | select(.[:1]|tonumber > 5)' | jq -s -c) | ||
rails_versions=$(curl https://rubygems.org/api/v1/versions/rails.json | jq '[.[] | select(.number | test("beta") | not)] | group_by(.number[:1])[] | (.[0].number) | select(.[:1]|tonumber > 5)' | jq -s -c) |
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.
I don't know the jq syntax well enough to review this line
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.
Honestly, me too, I would prefer something less dynamic but more obvious, but happy to trust in this having seen it work.
@@ -45,7 +45,7 @@ COPY --from=build /rails /rails | |||
WORKDIR /rails/mail-notify-integration | |||
|
|||
# add Mail Notify to the Gemfile | |||
ARG MAIL_NOTIFY_BRANCH=v2 | |||
ARG MAIL_NOTIFY_BRANCH=2.0.0 |
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.
When you say "we generally pass this argument", do you mean it gets passed in somewhere else, overriding this?
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.
Yep, when you build a docker image you can pass in arguments to change the output, it's a common pattern to declare and set a default like this, you see it a lot in this Dockerfile. ARG
for images ENV
for running containers.
We are dropping support for Rails 5 in our integration tests.
10f676e
to
0f1f10d
Compare
Supporting these is more effort than value so we will drop support.
This work only relates to our integration tests and not the gem itself.