X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_alerts.py;h=d22e7aa9630c6383a5e26b2a739f399808804d01;hp=9a0a03a59fdd752b57da65de213d6b4a2e0ab032;hb=d24bcf6e10fdee8e6ba1a0ef2f75e69d9e9d0a40;hpb=0d576e9088c81ae1678c36f594336f18db53605b diff --git a/resources/tools/presentation/generator_alerts.py b/resources/tools/presentation/generator_alerts.py index 9a0a03a59f..d22e7aa963 100644 --- a/resources/tools/presentation/generator_alerts.py +++ b/resources/tools/presentation/generator_alerts.py @@ -375,6 +375,30 @@ class Alerting: ) text = u"" + + legend = (f"Legend:\n[ Last trend in Mpps | number of runs for " + f"last trend |") + + out_file = ( + f"{self.configs[alert[u'way']][u'output-dir']}/" + f"trending-regressions.txt" + ) + try: + with open(out_file, u'w') as reg_file: + reg_file.write(f"{legend} regressions ]") + except IOError: + logging.error(f"Not possible to write the file {out_file}.txt.") + + out_file = ( + f"{self.configs[alert[u'way']][u'output-dir']}/" + f"trending-progressions.txt" + ) + try: + with open(out_file, u'w') as reg_file: + reg_file.write(f"{legend} progressions ]") + except IOError: + logging.error(f"Not possible to write the file {out_file}.txt.") + for idx, test_set in enumerate(alert.get(u"include", list())): test_set_short = u"" device = u""