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/mj2uyw5 Change-Id: Id88ee651e40e521f092bf1411fbdbe2d646ea978
This commit is contained in:
parent
745653e3dd
commit
69419521b3
|
@ -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/"
|
||||
|
@ -167,5 +175,6 @@ with open(file_name, 'w') as f:
|
|||
f.write("\n")
|
||||
|
||||
print("Querying Launchpad, this might take a while...")
|
||||
write_gate_queries_for_project(f, neutron)
|
||||
write_queries_for_project(f, neutron, milestone)
|
||||
write_queries_for_project(f, neutron_client, milestone)
|
||||
|
|
|
@ -71,6 +71,7 @@ def create_report(out_dir, name_space={}):
|
|||
# create the full report
|
||||
report_name_space = {'data': data_table_text, 'helper': html_helper}
|
||||
report_name_space.update(create_projects_dashboard(out_dir))
|
||||
report_name_space.update(create_gate_failure_dash(out_dir))
|
||||
filename = os.path.join(os.path.dirname(__file__), 'report.html')
|
||||
report_text = open(filename).read()
|
||||
t = Template(report_text, searchList=[report_name_space])
|
||||
|
|
Loading…
Reference in New Issue