diff --git a/run.py b/run.py index 5e5439d..8636c1c 100644 --- a/run.py +++ b/run.py @@ -128,7 +128,6 @@ def mkconfig(date, slots, platforms, projects): ] """ pretty_sep = ",\n " - slots_list = [] project_list = [] platform_list = [] checker = StatusChecker( diff --git a/status_checker.py b/status_checker.py index 683935e..cbd1336 100644 --- a/status_checker.py +++ b/status_checker.py @@ -204,6 +204,20 @@ def _fetch_build_info( # for platform in self.platforms_to_check # if platform in project["results"] # ] + # make short platform names unique for PANDA (add +1,+2, ... to same names in list) + ssplatforms = set(short_platforms) + if len(ssplatforms) < len(short_platforms): + for pn in ssplatforms: + if not pn.startswith('*') or short_platforms.count(pn) == 1: + continue + pc = 1 + while True: + try: + ip = short_platforms.index(pn) + short_platforms[ip] += '!{}'.format(pc) + pc += 1 + except ValueError: + break nested_results_cols = [("Project", ""), ("Failed MRs", "")] nested_results_cols += [ (platform, "BUILD / TEST")