Skip to content
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

Bump govuk_sidekiq from 8.0.1 to 9.0.0 #3185

Merged
merged 4 commits into from
Sep 26, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 24, 2024

Bumps govuk_sidekiq from 8.0.1 to 9.0.0.

Changelog

Sourced from govuk_sidekiq's changelog.

9.0.0

  • Switch from using redis gem to redis-client
  • BREAKING: Remove redis-namespace dependency and support for Redis namespaces
    • Run the redis_namespace:remove_namespace rake task immediately after upgrading to to this version, to retain existing queued jobs.
  • BREAKING: Upgrade Sidekiq to version 7.0, follow these steps to upgrade:
    1. Sidekiq::Worker has been deprecated in Sidekiq 7. Replace all instances of Sidekiq::Worker with Sidekiq::Job, then rename/move your workers to be app/sidekiq/MyJob.rb instead of app/workers/MyWorker.rb.
    2. Remove the requirement for Sidekiq strict arguments from config/initializers/sidekiq.rb. This was added to include Sidekiq 7 strict arguments behaviour in Sidekiq 6, but is no longer needed to be explictly required, since this is now the default behaviour.
    3. If using sidekiq-unique-jobs, pin to < 8.0.8 until a known issue is resolved.
    4. Make any changes required based on the information in the Sidekiq 7 API migration guide.
Commits
  • 946dd53 Merge pull request #115 from alphagov/sidekiq-mobbing
  • 289da44 Release version 9.0.0 of the gem
  • 749f82b Add rake task to remove Redis namespacing
  • a89c0b9 Add upgrade instructions for Sidekiq 7
  • 97050fb Upgrade Sidekiq to version 7.0
  • 34c94ea Remove redis-namespace dependency
  • 578789e Switch from redis to redis-client
  • 53c521a Merge pull request #114 from alphagov/dependabot/bundler/rubocop-govuk-eq-5.0.2
  • c8b44f0 Update rubocop-govuk requirement from = 5.0.1 to = 5.0.2
  • 2e5127a Merge pull request #113 from alphagov/dependabot/bundler/rubocop-govuk-eq-5.0.1
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [govuk_sidekiq](https://github.com/alphagov/govuk_sidekiq) from 8.0.1 to 9.0.0.
- [Changelog](https://github.com/alphagov/govuk_sidekiq/blob/main/CHANGELOG.md)
- [Commits](alphagov/govuk_sidekiq@v8.0.1...v9.0.0)

---
updated-dependencies:
- dependency-name: govuk_sidekiq
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies ruby Pull requests that update Ruby code labels Sep 24, 2024
Copy link

This application is owned by the publishing platform team. Please let us know in #govuk-publishing-platform when you raise any PRs.

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

This application uses the `redis` gem in `VolatileLock` but relied on it
being included by `govuk_sidekiq`.

As `govuk_sidekiq` no longer includes this dependency, we need to
explicitly require it in this app.
We have upgraded `rack` from 2.2.9 to 3.1.7 as part of the Sidekiq 7
upgrade.

As of version 3.0.0 of `rack`, there is a change where cookie attributes
are now lowercase [1], so we need to update the test to reflect this.

1: https://github.com/rack/rack/blob/main/CHANGELOG.md#changed-2
We have now upgraded to Sidekiq 7, so don't need to require strict
arguments in preparation for switching, as this version includes that
requirement by default.
@brucebolt
Copy link
Member

We don't need to rename the workers in this app, as it uses ActiveJob instead of including Sidekiq::Workers in workers.

@brucebolt brucebolt merged commit 8419bcd into main Sep 26, 2024
15 checks passed
@brucebolt brucebolt deleted the dependabot/bundler/govuk_sidekiq-9.0.0 branch September 26, 2024 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants