Skip to content

WA-VERIFY-075: Verify Sidekiq worker error handling patterns under Rails 7.1 appraisal #1052

@kitcommerce

Description

@kitcommerce

Summary

Following WA-SEC-019 (narrowing broad rescue clauses), verify that Sidekiq workers handle errors correctly under the Rails 7.1 appraisal — specifically that StandardError rescues don't suppress legitimate retry-triggering errors.

Approach

# Find all Sidekiq workers
grep -r 'include Sidekiq::Worker' --include='*.rb' -l .

# Check for rescue patterns in workers
grep -rn 'rescue\b' --include='*.rb' core/app/workers/ | grep -v '^\s*#'

# Run worker tests under Rails 7.1 appraisal
BUNDLE_GEMFILE=gemfiles/rails_7_1.gemfile bundle exec rake core_test TEST_FILES="test/workers/**"

Acceptance Criteria

  • All Sidekiq workers identified
  • Rescue patterns reviewed (no bare rescue remaining, StandardError boundaries appropriate)
  • Worker tests pass under Rails 7.1 appraisal
  • Document any workers with non-retryable error handling that should be flagged

Client Impact

None (verification only). Any fixes would be separate issues.

Notes

Related to WA-SEC-019 (PR #1040 — narrow broad rescue clauses).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions