Skip to content

Commit

Permalink
report: fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Øyvind Harboe <[email protected]>
  • Loading branch information
oharboe committed Oct 25, 2024
1 parent ad1d976 commit b962c60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,11 @@ BOOMTILE_VARIABLES = SKIP_REPORT_METRICS | FAST_BUILD_SETTINGS | {
"HOLD_SLACK_MARGIN": "-200",
}

WNS_REPORT_SWEEP = [variant for variant in SWEEP if "naja" not in variant]

SWEEP_JSON = {
"base": BOOMTILE_VARIABLES,
"sweep": SWEEP,
"sweep": {variant: SWEEP[variant] for variant in WNS_REPORT_SWEEP},
"stage": "cts",
"stages": [
"floorplan",
Expand Down Expand Up @@ -472,8 +474,6 @@ write_binary(
visibility = [":__subpackages__"],
) for variant in SWEEP]

WNS_REPORT_SWEEP = [variant for variant in SWEEP if "naja" not in variant]

genrule(
name = "wns_report",
srcs = [
Expand Down
6 changes: 3 additions & 3 deletions wns_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def main():
logs = sorted(map(os.path.basename, pathlib.Path(log_dir).glob("*.log")))
logs_dir = os.path.join(log_dir, "..")

variables = sorted(set(k["variables"] for v in sweep.values() for k in v.keys()))
variables = sorted(set(k for v in sweep.values() for k in v.get("variables", {}).keys()))

table_data = None
for variant in sweep:
Expand All @@ -100,9 +100,9 @@ def main():
+ [stats[name] for name in names]
+ [
(
sweep[variant]["variables"].get(variable, "")
sweep[variant].get("variables", {}).get(variable, "")
if sweep_json["base"].get(variable, "")
!= sweep[variant]["variables"].get(variable, "")
!= sweep[variant].get("variables", {}).get(variable, "")
else ""
)
for variable in variables
Expand Down

0 comments on commit b962c60

Please sign in to comment.