Skip to content

Commit 9a6566c

Browse files
committed
Fix genReport
Signed-off-by: Jack Luar <jluar@precisioninno.com>
1 parent ad154f5 commit 9a6566c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

flow/util/genReport.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
METRICS_CHECK_FMT = "{}/metadata-{}-check.log"
2020
REGEX_ERROR = re.compile(r"^\[error ?(\w+-\d+)?\]", re.IGNORECASE)
2121
REGEX_WARNING = re.compile(r"^\[warning ?(\w+-\d+)?\]", re.IGNORECASE)
22+
SKIPPED_FLOW_VARIANT_KEYWORDS = ["test", "tune"]
2223
STATUS_GREEN = "Passing"
2324
STATUS_RED = "Failing"
2425

@@ -248,7 +249,9 @@ def write_summary():
248249
dir_list = log_dir.split(os.sep)
249250
# Handles autotuner folders, which do not have `report.log` natively.
250251
# TODO: Can we log something for autotuner?
251-
if len(dir_list) != 4 or "test-" in dir_list[-1]:
252+
if len(dir_list) != 4 or any(
253+
word in dir_list[-1] for word in SKIPPED_FLOW_VARIANT_KEYWORDS
254+
):
252255
continue
253256
report_dir = log_dir.replace(LOGS_FOLDER, REPORTS_FOLDER)
254257

tools/AutoTuner/test/resume_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def setUp(self):
5151
f" --platform {self.platform}"
5252
f" --config {self.config}"
5353
f" --jobs {self.jobs}"
54-
f" --experiment test_resume"
54+
f" --experiment test-resume"
5555
f" tune --iterations {self.iterations} --samples {self.samples}"
5656
f" --resources_per_trial {res_per_trial}"
5757
f" {c}"

0 commit comments

Comments
 (0)