From d9e36527d8de6203d70b00aacd6e47c1fe7b1396 Mon Sep 17 00:00:00 2001 From: Damian Krolik Date: Wed, 10 May 2023 17:14:09 +0200 Subject: [PATCH] [tools] Try to fix bloat check when comment has empty cell The bloat check has been failing for months now because gh_report.py script seems to assume that the first row in a comment to the analyzed PR has no empty cells, and for the cc32xx platform, which happens to finish the build as the first one, a row with a blank section name is added. I don't know what is the reason of the blank section, but the script should not give up just because of one invalid entry as we miss important code size increase warnings. --- scripts/tools/memory/memdf/util/markdown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tools/memory/memdf/util/markdown.py b/scripts/tools/memory/memdf/util/markdown.py index 52aea03e86db91..f4d91379086884 100644 --- a/scripts/tools/memory/memdf/util/markdown.py +++ b/scripts/tools/memory/memdf/util/markdown.py @@ -34,7 +34,7 @@ def read_hierified(f): for i in range(0, len(header)): column = columns[i + 1].strip() if not column: - column = rows[-1][i] + column = rows[-1][i] if len(rows) > 0 else '(blank)' row.append(column) rows.append(tuple(row))