Skip to content

Conversation

@arielvalentin
Copy link
Contributor

Sidekiq v7.3.9 fixed a load ordering problem where it was requiring its ActiveJob Adapter too early:

sidekiq/sidekiq@886e434

Our tests relied on this load ordering bug so the suite started failing:

https://github.com/open-telemetry/opentelemetry-ruby-contrib/actions/runs/13447267345/job/37575230194

  /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/gems/3.4.0/gems/sidekiq-7.3.9/lib/active_job/queue_adapters/sidekiq_adapter.rb:71:in '<class:SidekiqAdapter>': uninitialized constant Sidekiq::ActiveJob (NameError)

        class JobWrapper < Sidekiq::ActiveJob::Wrapper

This change borrows from Sidekiq's test suite to ensure the Rails integration is loaded: https://github.com/sidekiq/sidekiq/blob/main/test/helper.rb#L75

Sidekiq v7.3.9 fixed a load ordering problem where it was requiring its ActiveJob Adapter too early:

sidekiq/sidekiq@886e434

Our tests relied on this load ordering bug so the suite started failing:

https://github.com/open-telemetry/opentelemetry-ruby-contrib/actions/runs/13447267345/job/37575230194

```console
  /opt/hostedtoolcache/Ruby/3.4.1/x64/lib/ruby/gems/3.4.0/gems/sidekiq-7.3.9/lib/active_job/queue_adapters/sidekiq_adapter.rb:71:in '<class:SidekiqAdapter>': uninitialized constant Sidekiq::ActiveJob (NameError)

        class JobWrapper < Sidekiq::ActiveJob::Wrapper
```

This change borrows from Sidekiq's test suite to ensure the Rails integration is loaded: https://github.com/sidekiq/sidekiq/blob/main/test/helper.rb#L75
@kaylareopelle kaylareopelle merged commit 3e304c2 into open-telemetry:main Feb 25, 2025
59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants