Skip to content

Commit

Permalink
Make short tags name unique for PANDAs
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-t-grecu committed Feb 18, 2024
1 parent 2f008f1 commit 2c9907e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
1 change: 0 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ def mkconfig(date, slots, platforms, projects):
]
"""
pretty_sep = ",\n "
slots_list = []
project_list = []
platform_list = []
checker = StatusChecker(
Expand Down
14 changes: 14 additions & 0 deletions status_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 2c9907e

Please sign in to comment.