Skip to content

Add a retry around QA Resource Runner

Will Meek requested to merge qa_runner_retry into master

What does this MR do and why?

Describe in detail what your merge request does and why.

Adds a retry for the QA runner. I found that it was trying to find the runner before it was available, causing my test to fail locally.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

From QA directory run a test that uses a runner eg.

CHROME_HEADLESS=false bundle exec bin/qa Test::Instance::All http://gdk.test:3000/ ./qa/specs/features/ee/browser_ui/13_secure/merge_request_license_widget_spec.rb

Test should not show the following failure

     1.1) Failure/Error:
            @runner = Resource::Runner.fabricate! do |runner|
              runner.project = @project
              runner.name = executor
              runner.tags = ['secure_license']
            end

          NoMethodError:
            undefined method `[]' for nil:NilClass

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading