spec/tasks/gitlab/cleanup_rake_spec.rb failing
Job #1825954198 failed for 6695bf1c:
Failures:
1) gitlab:cleanup rake tasks sessions gitlab:cleanup:sessions:active_sessions_lookup_keys runs the task without errors
Failure/Error: expect { rake_task }.not_to raise_error
expected no Exception, got #<Redis::CannotConnectError: Error connecting to Redis on localhost:6382 (Errno::ECONNREFUSED)> with backtrace:
# ./lib/gitlab/instrumentation/redis_interceptor.rb:21:in `call'
# ./lib/gitlab/redis/multi_store.rb:75:in `method_missing'
# ./lib/tasks/gitlab/cleanup.rake:113:in `block (5 levels) in <top (required)>'
# ./lib/gitlab/redis/wrapper.rb:23:in `block in with'
# ./lib/gitlab/redis/wrapper.rb:23:in `with'
# ./lib/tasks/gitlab/cleanup.rake:111:in `block (4 levels) in <top (required)>'
# ./spec/support/helpers/rake_helpers.rb:6:in `run_rake_task'
# ./spec/tasks/gitlab/cleanup_rake_spec.rb:170:in `block (4 levels) in <top (required)>'
# ./spec/tasks/gitlab/cleanup_rake_spec.rb:184:in `block (5 levels) in <top (required)>'
# ./spec/tasks/gitlab/cleanup_rake_spec.rb:184:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:410:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:401:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:397:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:397:in `block (2 levels) in <top (required)>'
# ./spec/support/redis.rb:53:in `block (2 levels) in <top (required)>'
# ./spec/support/database/query_analyzer.rb:9:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/database/query_analyzer.rb:42:in `within'
# ./spec/support/database/query_analyzer.rb:9:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:102:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:56:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:102:in `block (2 levels) in <top (required)>'
# ./spec/tasks/gitlab/cleanup_rake_spec.rb:184:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:410:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:401:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:397:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:397:in `block (2 levels) in <top (required)>'
# ./spec/support/redis.rb:53:in `block (2 levels) in <top (required)>'
# ./spec/support/database/query_analyzer.rb:9:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/database/query_analyzer.rb:42:in `within'
# ./spec/support/database/query_analyzer.rb:9:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:102:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:56:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:102:in `block (2 levels) in <top (required)>'
2) gitlab:cleanup rake tasks sessions gitlab:cleanup:sessions:active_sessions_lookup_keys removes expired active session lookup keys
Failure/Error: super(*args, &block)
Redis::CannotConnectError:
Error connecting to Redis on localhost:6382 (Errno::ECONNREFUSED)
# ./lib/gitlab/instrumentation/redis_interceptor.rb:21:in `call'
# ./lib/gitlab/redis/multi_store.rb:75:in `method_missing'
# ./lib/tasks/gitlab/cleanup.rake:113:in `block (5 levels) in <top (required)>'
# ./lib/gitlab/redis/wrapper.rb:23:in `block in with'
# ./lib/gitlab/redis/wrapper.rb:23:in `with'
# ./lib/tasks/gitlab/cleanup.rake:111:in `block (4 levels) in <top (required)>'
# ./spec/support/helpers/rake_helpers.rb:6:in `run_rake_task'
# ./spec/tasks/gitlab/cleanup_rake_spec.rb:170:in `block (4 levels) in <top (required)>'
# ./spec/tasks/gitlab/cleanup_rake_spec.rb:190:in `block (6 levels) in <top (required)>'
# ./spec/tasks/gitlab/cleanup_rake_spec.rb:190:in `block (5 levels) in <top (required)>'
# ./lib/gitlab/redis/wrapper.rb:23:in `block in with'
# ./lib/gitlab/redis/wrapper.rb:23:in `with'
# ./spec/tasks/gitlab/cleanup_rake_spec.rb:188:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:410:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:401:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:397:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:397:in `block (2 levels) in <top (required)>'
# ./spec/support/redis.rb:53:in `block (2 levels) in <top (required)>'
# ./spec/support/database/query_analyzer.rb:9:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/database/query_analyzer.rb:42:in `within'
# ./spec/support/database/query_analyzer.rb:9:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:102:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:56:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:102:in `block (2 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
# IO::EINPROGRESSWaitWritable:
# Operation now in progress - connect(2) would block
# ./lib/gitlab/instrumentation/redis_interceptor.rb:21:in `call'