diff options
author | Martin Peres <martin.peres@linux.intel.com> | 2016-01-25 23:39:34 +0200 |
---|---|---|
committer | Martin Peres <martin.peres@linux.intel.com> | 2016-01-27 19:35:18 +0200 |
commit | 21d907615b7fd8dba625339796b12f48d518f6df (patch) | |
tree | ce6e80490589d664e430e7188c1680ce53881783 | |
parent | 27bd5449d722108889a731dd642044c28325d976 (diff) |
compare_reports: add the build-related annotations to the report
-rwxr-xr-x | stats/compare_reports.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/stats/compare_reports.py b/stats/compare_reports.py index 77f160a..035df90 100755 --- a/stats/compare_reports.py +++ b/stats/compare_reports.py @@ -94,8 +94,15 @@ for log_folder in args.log_folder: for event in report.events: if type(event) is EventBuildBroken: event.commit_range.new.annotation = event.commit_range.new.sha1 + ": build broken" + event.commit_range.new.annotation_long = str(event) elif type(event) is EventBuildFixed: event.fixed_commit_range.new.annotation = event.fixed_commit_range.new.sha1 + ": build fixed" + event.fixed_commit_range.new.annotation_long = str(event) + elif type(event) is EventPerfChange: + for result in event.commit_range.new.results: + if result.benchmark.full_name != event.benchmark.full_name: + continue + result.annotation = str(event) # add all the commits for commit in report.commits: @@ -381,6 +388,9 @@ html_template=""" % endfor </ul></td></tr>\\ % endif +% if hasattr(db["commits"][commit]['commit'], "annotation_long"): +<tr><td><b>Annotation:</b></td><td>${cgi.escape(db["commits"][commit]['commit'].annotation_long)}</td></tr>\\ +% endif </table>\\ </%def> |