-
Notifications
You must be signed in to change notification settings - Fork 181
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
Add compatibility with sidekiq 7.0 #546
Add compatibility with sidekiq 7.0 #546
Conversation
This adds a new mock loader that allows for testing against sidekiq 7.0. This also the relevant appraisal.
This removes some appraisals since they're efectively targeting the same sidekiq version. Namely, sidekiq-6.0, sidekiq-6.1, sidekiq-6.3 and sidekiq-6.4 were actually resolving to 6.5.2. With this change, we run less tests but we actually target different sidekiq versions.
401ab10
to
cd330a8
Compare
@kevinnio looks like the test suite never finishes and hangs at some point. Would you mind taking a look? |
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.
Waiting on tear suite to complete successfully
Hi @kevinnio, Sidekiq 7.0 introduced a change to the middleware. Essentially, you're supposed to include some modules now in your middleware classes.
Did you look into adding this middleware? It might not be necessary for OTel's instrumentation. At New Relic, we needed it to keep our tests passing, but I don't quite recall why. We added it conditionally to keep the instrumentation backward compatible. This might be why the redis/sidekiq tests have some issues? It looks like |
Hi, @kaylareopelle. Yes, I am aware of those new modules. I'll also take a look at why the specs are not passing. |
Sidekiq 7.0 requires middlewares to add new modules. These modules are not currently in use by our code, but I'm adding them for good measure.
1a99365
to
80a0913
Compare
Those appraisals need an older version of the redis gem so sidekiq can establish a connection with the redis server properly. Without it, tests against sidekiq 6.4.2 hang for hours before timing out in GitHub Actions.
Pushed a fix for the specs. |
@arielvalentin Specs are now fixed. |
a815312
to
e0c20fe
Compare
This adds a new mock loader that allows for testing against sidekiq 7.0. No actual code changes were needed to pass all the tests.
This also adds the relevant appraisal.
Included is a commit that removes some appraisals since they were effectively targeting the same sidekiq version.