Skip to content
Snippets Groups Projects

Resolve "Deployments::HooksWorker args do not serialize to JSON safely"

All threads resolved!

What does this MR do and why?

Behind a feature flag, the MR serializes sidekiq worker parameters and resolves the warning

Job arguments to Deployments::HooksWorker do not serialize to JSON safely. This will raise an error in
Sidekiq 7.0. 

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

  1. Create a deployment
  2. Check log/sidekiq_client.log, you should see an entry Job arguments to Deployments::HooksWorker do not serialize to JSON safely. This will raise an error in Sidekiq 7.0.
  3. In rails console, enable feature flag improve_hooksworker_serialization
  4. Check log/sidekiq_client.log again, you should not see a new warning entry.

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #383194 (closed)

Edited by Halil Coban

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Shinya Maeda removed review request for @shinya.maeda

    removed review request for @shinya.maeda

  • Halil Coban added 1 commit

    added 1 commit

    • 4c330710 - refactor specs and rename feature flag

    Compare with previous version

  • Halil Coban added 529 commits

    added 529 commits

    Compare with previous version

  • Halil Coban requested review from @shinya.maeda

    requested review from @shinya.maeda

  • Shinya Maeda approved this merge request

    approved this merge request

  • :wave: @shinya.maeda, thanks for approving this merge request.

    This is the first time the merge request is approved. To ensure full test coverage, a new pipeline will be started shortly.

    For more info, please refer to the following links:

  • Shinya Maeda requested review from @bala.kumar and removed review request for @shinya.maeda

    requested review from @bala.kumar and removed review request for @shinya.maeda

  • Bala Kumar
  • Bala Kumar approved this merge request

    approved this merge request

  • Bala Kumar resolved all threads

    resolved all threads

  • Bala Kumar enabled an automatic merge when the pipeline for 80425494 succeeds

    enabled an automatic merge when the pipeline for 80425494 succeeds

  • merged

  • Bala Kumar mentioned in commit c7f486fc

    mentioned in commit c7f486fc

  • mentioned in issue #383194 (closed)

  • added workflowstaging label and removed workflowcanary label

  • Please register or sign in to reply
    Loading