Failure in qa/specs/features/ee/api/enablement/elasticsearch/elasticsearch_api_spec.rb:56

Summary

Failure found in master in https://gitlab.com/gitlab-org/gitlab-qa-mirror/-/jobs/595860274 for test - Enablement:Search When using elasticsearch API to search for a known blob When searching a private repository finds a blob as an authorized user

Please note: The error is the same as in #221251 (closed) so they may have the same cause.

Stack trace

 1) Enablement:Search When using elasticsearch API to search for a known blob When searching a private repository finds a blob as an authorized user
      Failure/Error: raise 'Empty search result returned' if json_body.empty?
      
      RuntimeError:
        Empty search result returned
      # ./qa/specs/features/ee/api/enablement/elasticsearch/elasticsearch_api_spec.rb:76:in `block in successful_search'
      # ./qa/support/retrier.rb:26:in `block in retry_on_exception'
      # ./qa/support/repeater.rb:22:in `repeat_until'
      # ./qa/support/retrier.rb:20:in `retry_on_exception'
      # ./qa/specs/features/ee/api/enablement/elasticsearch/elasticsearch_api_spec.rb:72:in `successful_search'
      # ./qa/specs/features/ee/api/enablement/elasticsearch/elasticsearch_api_spec.rb:57:in `block (4 levels) in <module:QA>'
      # /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:123:in `block in run'
      # /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `loop'
      # /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `run'
      # /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
      # ./spec/spec_helper.rb:69:in `block (2 levels) in <top (required)>'
      # /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:123:in `block in run'
      # /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `loop'
      # /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `run'
      # /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
      # /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:37:in `block (2 levels) in setup'
      # ./qa/specs/runner.rb:71:in `perform'
      # ./qa/scenario/template.rb:10:in `block in perform'
      # ./qa/scenario/template.rb:8:in `tap'
      # ./qa/scenario/template.rb:8:in `perform'
      # ./qa/scenario/template.rb:33:in `perform'
      # ./qa/scenario/template.rb:10:in `block in perform'
      # ./qa/scenario/template.rb:8:in `tap'
      # ./qa/scenario/template.rb:8:in `perform'
      # ./qa/scenario/bootable.rb:28:in `launch!'

Possible fixes

Edited by Mark Lapierre