-
Notifications
You must be signed in to change notification settings - Fork 343
ci: test against a compatible connection_pool version #706
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
base: main
Are you sure you want to change the base?
Conversation
grzuy
left a comment
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.
Good catch 💯
b8d489f to
b9cfa6a
Compare
b9cfa6a to
217c129
Compare
Appraisals
Outdated
| appraise "redis_store" do | ||
| # Direct version requirement on connection_pool | ||
| # can be removed once https://github.com/rails/rails#56291 is fixed and released | ||
| gem "connection_pool", "~> 2.5" |
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.
redis_4, redis_5, and redis_store gemfiles need it but it isn't because of redis, it's because of activesupport being installed as a dev dependency which seems unfortunate, but when trying to remove it lot of tests failed so I think we can work on that separately if we ever want to cc @grzuy
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.
Gotcha.
And we can't solve it by listing connection_pool 2.5 as an additional dev dependency in the gemspec, because that would affect tests that try testing when connection_pool is not present, right?
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.
oh I see.. I guess you are referring to this commit .. I guess that behavior got "ignored" since activesupport was added directly as a dev dependency on the gemspec, and therefore connection_pool available for all gemfiles.. 😅
At this point, since activesupport was added, the "pooled" versions of the gemfiles aren't adding any value since they are all "pooled", so I added a commit just cleaning up the spec gemfiles. Or do you think there is value in going back to testing "pooled" and "not pooled" versions, and we should go in the opposite direction removing activesupport dev dependency and such?
EDIT:
In summary I think we have many different options:
- Just add
connection_poolon the Appraisals to get the CI green - Add
connection_poolin the gemspec given thatactivesupportis already there + remove duplicated gemfiles (pooled) - Remove
activesupportfrom the gemspec + Addconnection_poolon the Appraisals
CI started failing since
connection_pool3 was released https://github.com/rack/rack-attack/actions/runs/20482828723It's an indirect dependency, but our dependencies weren't prepared for these breaking changes on
connection_pool