esc-reporting/esc-analyze.py | 1 + esc-reporting/esc-collect.py | 3 +-- esc-reporting/esc-report.py | 9 ++++++++- 3 files changed, 10 insertions(+), 3 deletions(-)
New commits: commit 59f126a82eb207ee57f3b0d1ebca1456276673d0 Author: jan Iversen <j...@libreoffice.org> Date: Fri May 12 19:35:34 2017 +0200 esc-report, added crashreport diff --git a/esc-reporting/esc-analyze.py b/esc-reporting/esc-analyze.py index 5977a65..e1bd93a 100755 --- a/esc-reporting/esc-analyze.py +++ b/esc-reporting/esc-analyze.py @@ -564,6 +564,7 @@ def analyze_esc(): statList['data']['esc']['crashtest'] = {'import': crashData['crashtest']['crashlog'], 'export': crashData['crashtest']['exportCrash']} + statList['data']['esc']['crashreport'] = crashData['crashreport']['versions'] diff --git a/esc-reporting/esc-collect.py b/esc-reporting/esc-collect.py index 74c1883..bd00450 100755 --- a/esc-reporting/esc-collect.py +++ b/esc-reporting/esc-collect.py @@ -679,8 +679,7 @@ def get_crash(cfg): rawList['crashtest'][type] = len(tmp) -1 print("Updating crashreport dump") - print(".....talk with moggi, about REST API") - + rawList['crashreport'] = util_load_url('http://crashreport.libreoffice.org/api/get/crash-count') rawList['newest-entry'] = datetime.datetime.now().strftime('%Y-%m-%d %H') util_dump_file(fileName, rawList) diff --git a/esc-reporting/esc-report.py b/esc-reporting/esc-report.py index fc2c1f6..a209868 100755 --- a/esc-reporting/esc-report.py +++ b/esc-reporting/esc-report.py @@ -315,6 +315,13 @@ def report_esc_prototype(): statList['data']['esc']['crashtest']['export'], statList['diff']['esc']['crashtest']['export']) escPrototype = escPrototype.replace('$<ESC_CRASHTEST_UPDATE>', txt) + txt = '' + for id in sorted(statList['data']['esc']['crashreport']): + txt += ' + {} {}({:+d})\n'.format(id, + statList['data']['esc']['crashreport'][id], + statList['diff']['esc']['crashreport'][id]) + escPrototype = escPrototype.replace('$<ESC_CRASHREPORT_UPDATE>', txt) + fp = open('/tmp/esc_prototype_report.txt', 'w', encoding='utf-8') print('ESC prototype report, generated {} based on stats.json from {}\n\n\n'.format( datetime.datetime.now().strftime("%Y-%m-%d"), statList['addDate']), file=fp) @@ -509,7 +516,7 @@ def report_ui(): print(' {} made {} changes in 1 month, and {} changes in 1 year'.format( top10list[i]['name'], top10list[i]['month'], top10list[i]['year']), file=fp) fp.close() - return {'title': 'ESC UI report', 'mail': 'tietze.he...@gmail.com', 'file': '/tmp/esc_prototype_report.txt'} + return {'title': 'ESC UI report', 'mail': 'tietze.he...@gmail.com', 'file': '/tmp/esc_ui_report.txt'} _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits