Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3f5f02b2 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge changes I7953020c,I960cfdb8 into main

* changes:
  Skip metrics upload when doing benchmarks.
  Fix formatting string in benchmark pretty printer
parents f7c58560 7eba158c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -335,6 +335,7 @@ class Runner():
                "--build-mode",
                "--all-modules",
                f"--dir={self._options.root}",
                "--skip-metrics-upload",
            ] + modules
            env = dict(os.environ)
            env["TARGET_PRODUCT"] = lunch.target_product
+1 −9
Original line number Diff line number Diff line
@@ -73,14 +73,6 @@ def LoadSummary(filename):
# Rows:
#   Benchmark

@dataclasses.dataclass(frozen=True)
class Key():
    pass

class Column():
    def __init__(self):
        pass

def lunch_str(d):
    "Convert a lunch dict to a string"
    return f"{d['TARGET_PRODUCT']}-{d['TARGET_RELEASE']}-{d['TARGET_BUILD_VARIANT']}"
@@ -186,7 +178,7 @@ def main(argv):
        for key, column in summary["columns"]:
            for id, cell in column:
                duration_ns = statistics.median([b["duration_ns"] for b in cell])
                table.Set(tuple([summary["date"].strftime("YYYY-MM-DD"),
                table.Set(tuple([summary["date"].strftime("%Y-%m-%d"),
                                 summary["branch"],
                                 summary["tag"]]
                                + list(key)),