Skip to content

Commit 13ce4d0

Browse files
oharboeclaude
andcommitted
review: make metadata-synth -j-safe, explicit utf-8 in synDashboard
metadata-synth ran synth/metadata-generate/metadata-check-synth as plain prerequisites, which race under make -j; run them as sequential sub-makes instead. synDashboard.py reads test logs with an explicit utf-8 encoding so non-UTF-8 host defaults cannot break parsing. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
1 parent 5022d1f commit 13ce4d0

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

‎flow/util/synDashboard.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def failing_rules(test_dir):
7272
if not log_file.is_file():
7373
return []
7474
fields = []
75-
for line in log_file.read_text(errors="replace").splitlines():
75+
for line in log_file.read_text(encoding="utf-8", errors="replace").splitlines():
7676
match = FAIL_RULE_RE.match(line)
7777
if match:
7878
fields.append(match.group(1))

‎flow/util/utils.mk‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@ metadata: finish metadata-generate metadata-check
66
# Synthesis-only metadata: generate and check QoR after just the synth
77
# stage, without running the full flow. The synthesis-stage subset of
88
# the design's regular rules file gates the run, so no per-variant
9-
# rules file needs to be committed.
9+
# rules file needs to be committed. Sequential sub-makes rather than
10+
# prerequisites: each step consumes the previous one's outputs, which
11+
# plain prerequisites would race under make -j.
1012
.PHONY: metadata-synth
1113
metadata-synth: export RULES_JSON = $(DESIGN_DIR)/rules-base.json
12-
metadata-synth: synth metadata-generate metadata-check-synth
14+
metadata-synth:
15+
$(MAKE) synth
16+
$(MAKE) metadata-generate
17+
$(MAKE) metadata-check-synth
1318

1419
.PHONY: metadata-generate
1520
metadata-generate:

0 commit comments

Comments
 (0)