Append a new section to neutron dashboard

As recently we started seeing issues in gate jobs for neutron
this patch add a section to existing dashboard to track patches
related to gate failure. Example of review page [1].

[1]. https://tinyurl.com/lqdu3qo

Change-Id: Id88ee651e40e521f092bf1411fbdbe2d646ea978
This commit is contained in:
Manjeet Singh Bhatia 2017-02-28 19:10:44 +00:00
parent 745653e3dd
commit 5064fa6e7f
1 changed files with 9 additions and 0 deletions

View File

@ -115,6 +115,14 @@ def write_queries_for_project(f, project, milestone):
section_name = "Blueprints %s" % project.name
write_section(f, section_name, query)
def write_gate_queries_for_project(file_name, project):
all_gate_bugs = {'tags': ['gate-failure'],
'importance': ["Critical", "High", "Medium", "Low"],
'status': ["In Progress"]}
query = _search_task(project, **all_gate_bugs)
section_name = "All Gate Failures %s" % project.name
write_section(f, section_name, query)
def get_stadium_projects():
data = urllib2.urlopen("http://git.openstack.org/cgit/openstack/"
@ -169,3 +177,4 @@ with open(file_name, 'w') as f:
print("Querying Launchpad, this might take a while...")
write_queries_for_project(f, neutron, milestone)
write_queries_for_project(f, neutron_client, milestone)
write_gate_queries_for_project(f, neutron)