Order-dependent failure spec/lib/marginalia_spec.rb:130
Job #379717844 failed for 35b7b16d:
This is from a community contributor's fork but is reproducible locally.
Minimal reproduction (contrast with running spec/lib/marginalia_spec.rb
by itself):
bin/rspec spec/lib/gitlab/sidekiq_middleware_spec.rb spec/lib/marginalia_spec.rb
Failure:
7428 Failures:
7429 1) Marginalia spec for Sidekiq worker jobs when the feature is enabled generates a query that includes the component and value
7430 Failure/Error: expect(recorded.log.last).to include("#{component}:#{value}")
7431 expected "SELECT \"users\".* FROM \"users\" ORDER BY \"users\".\"id\" ASC LIMIT 1 /*application:sidekiq,corre...cadc,job_class:MarginaliaTestJob,line:/lib/gitlab/sidekiq_status/server_middleware.rb:7:in `call'*/" to include "line:/spec/support/sidekiq_middleware.rb"
7432 # ./vendor/ruby/2.6.0/gems/rspec-support-3.8.2/lib/rspec/support.rb:97:in `block in <module:Support>'
7433 # ./vendor/ruby/2.6.0/gems/rspec-support-3.8.2/lib/rspec/support.rb:106:in `notify_failure'
7434 # ./vendor/ruby/2.6.0/gems/rspec-expectations-3.8.4/lib/rspec/expectations/fail_with.rb:35:in `fail_with'
7435 # ./vendor/ruby/2.6.0/gems/rspec-expectations-3.8.4/lib/rspec/expectations/handler.rb:38:in `handle_failure'
7436 # ./vendor/ruby/2.6.0/gems/rspec-expectations-3.8.4/lib/rspec/expectations/handler.rb:50:in `block in handle_matcher'
7437 # ./vendor/ruby/2.6.0/gems/rspec-expectations-3.8.4/lib/rspec/expectations/handler.rb:27:in `with_matcher'
7438 # ./vendor/ruby/2.6.0/gems/rspec-expectations-3.8.4/lib/rspec/expectations/handler.rb:48:in `handle_matcher'
7439 # ./vendor/ruby/2.6.0/gems/rspec-expectations-3.8.4/lib/rspec/expectations/expectation_target.rb:65:in `to'
7440 # ./spec/lib/marginalia_spec.rb:132:in `block (5 levels) in <top (required)>'
7441 # ./spec/lib/marginalia_spec.rb:131:in `each'
7442 # ./spec/lib/marginalia_spec.rb:131:in `block (4 levels) in <top (required)>'
7443 # ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:257:in `instance_exec'
7444 # ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:257:in `block in run'
7445 # ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:503:in `block in with_around_and_singleton_context_hooks'
7446 # ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:460:in `block in with_around_example_hooks'
7447 # ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/hooks.rb:464:in `block in run'
7448 # ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/hooks.rb:604:in `block in run_around_example_hooks_for'
7449 # ./vendor/ruby/2.6.0/gems/rspec-core-3.8.2/lib/rspec/core/example.rb:345:in `call'
7450 # ./spec/lib/marginalia_spec.rb:105:in `block (4 levels) in <top (required)>'
7451 # ./vendor/ruby/2.6.0/gems/sidekiq-5.2.7/lib/sidekiq/testing.rb:16:in `__set_test_mode'
7452 # ./vendor/ruby/2.6.0/gems/sidekiq-5.2.7/lib/sidekiq/testing.rb:30:in `fake!'
7453 # ./spec/lib/marginalia_spec.rb:105:in `block (3 levels) in <top (required)>'