Commit 258c847c authored by Mark Lapierre's avatar Mark Lapierre

Disallow running untagged jobs by default

Updates tests to provide tags where needed
parent 98f2f02a
......@@ -36,7 +36,6 @@ module QA
runner.tags = tags
runner.image = image
runner.config = config if config
runner.run_untagged = true
runner.register!
end
end
......
......@@ -19,6 +19,7 @@ module QA
file_path: '.gitlab/.gitlab-webide.yml',
content: <<~YAML
terminal:
tags: ["web-ide"]
script: sleep 60
YAML
}
......@@ -29,7 +30,7 @@ module QA
@runner = Resource::Runner.fabricate_via_api! do |runner|
runner.project = project
runner.name = "qa-runner-#{Time.now.to_i}"
runner.tags = %w[qa docker web-ide]
runner.tags = %w[web-ide]
runner.image = 'gitlab/gitlab-runner:latest'
runner.config = <<~END
concurrent = 1
......
......@@ -22,7 +22,7 @@ module QA
runner.project = upstream_project
runner.token = upstream_project.group.sandbox.runners_token
runner.name = upstream_project_name
runner.tags = %w[qa test]
runner.tags = [upstream_project_name]
end
end
......@@ -38,6 +38,7 @@ module QA
job1:
stage: test
tags: ["#{upstream_project_name}"]
script: echo "done"
staging:
......@@ -55,6 +56,7 @@ module QA
project_push.file_content = <<~CI
downstream_job:
stage: test
tags: ["#{upstream_project_name}"]
script: echo "done"
CI
end
......@@ -74,7 +76,7 @@ module QA
it 'creates a multi-project pipeline' do
Page::MergeRequest::Show.perform do |show|
pipeline_passed = show.retry_until(reload: true, max_attempts: 10, sleep_interval: 5) do
pipeline_passed = show.retry_until(reload: true, max_attempts: 20, sleep_interval: 6) do
show.has_content?(/Pipeline #\d+ passed/)
end
......
......@@ -21,6 +21,7 @@ module QA
project_push.commit_message = 'Add .gitlab-ci.yml'
project_push.file_content = <<~EOF
test:
tags: ["qa"]
script: echo 'OK'
only:
- merge_requests
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment