Stop spamming ansible/ansible

Having the system-required template in place means we're running
merge-check on all ansible patches - and reporting back the results.

We need to stop that.

Change-Id: I75f6086174eb8f64d82185a153a55641425c9632
This commit is contained in:
Monty Taylor 2018-01-25 10:17:33 -06:00
parent 2f80ef8c80
commit fc3505d4a3
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
2 changed files with 7 additions and 3 deletions

View File

@ -31,6 +31,10 @@ def check_system_templates():
print("=====================================")
for entry in projects:
project = entry['project']
# TODO(mordred) Generalize this, but for now, avoid doing this check
# on ansible.
if project['name'] == 'ansible/ansible':
continue
try:
correct = False
for template in project['templates']:
@ -94,7 +98,7 @@ def check_release_jobs():
for entry in projects:
project = entry['project']
name = project['name']
found = [tmpl for tmpl in project['templates']
found = [tmpl for tmpl in project.get('templates', [])
if tmpl in release_templates]
if len(found) > 1:
errors = True

View File

@ -3,8 +3,8 @@
- project:
name: ansible/ansible
templates:
- system-required
# ansible/ansible does not include system-required on purpose. We do not
# gate ansible/ansible and we should NOT be doing merge-check on it.
check:
jobs:
- shade-ansible-devel-functional-devstack: