diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-27 18:08:16 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-27 18:08:16 +0300 |
commit | fb73ca3398c2ac49a616ab553e117b0586089702 (patch) | |
tree | c2f787ac97df38569c59cd0e967331ec1ead6d7e /qa | |
parent | b6b8f7dc871e73f29af55f06a773136a7242df57 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/resource/runner.rb | 2 | ||||
-rw-r--r-- | qa/qa/resource/sandbox.rb | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/qa/qa/resource/runner.rb b/qa/qa/resource/runner.rb index d1b4e8f7d54..f1f72c9cacd 100644 --- a/qa/qa/resource/runner.rb +++ b/qa/qa/resource/runner.rb @@ -54,7 +54,7 @@ module QA @id = this_runner[:id] super - + ensure Service::DockerRun::GitlabRunner.new(name).remove! end diff --git a/qa/qa/resource/sandbox.rb b/qa/qa/resource/sandbox.rb index 6c87fcb377a..54c13071cef 100644 --- a/qa/qa/resource/sandbox.rb +++ b/qa/qa/resource/sandbox.rb @@ -41,6 +41,14 @@ module QA resource_web_url(api_get) rescue ResourceNotFoundError super + + # If the group was just created the runners token might not be + # available via the API immediately. + Support::Retrier.retry_on_exception(sleep_interval: 5) do + resource = resource_web_url(api_get) + populate(:runners_token) + resource + end end def api_get_path |