Skip to content

Commit 18ba9d9

Browse files
author
Tatu Aalto
authored
Merge pull request #44 from tatu-aalto/fix_heatmap_logging
fix: Not correct logging for heatmap
2 parents 039d434 + 94cc26b commit 18ba9d9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

flaky_tests_detection/check_flakes.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,12 @@ def create_heat_map(
187187
table_data = get_image_tables_from_fliprate_table(fliprate_table, top_identifiers_ewm)
188188

189189
if grouping_option == "days":
190-
filename = f"{window_size}day_flip_rate_top{top_n}.png"
191190
title_ewm = (
192191
f"Top {top_n} of tests with highest latest window exponentially weighted moving average fliprate score "
193192
f"- alpha (smoothing factor) = {EWM_ALPHA} - last {window_size * window_count} days of data"
194193
)
195194
filename_ewm = f"{window_size}day_flip_rate_ewm_top{top_n}.png"
196195
else:
197-
filename = f"{window_size}runs_flip_rate_top{top_n}.png"
198196
title_ewm = (
199197
f"Top {top_n} of tests with highest latest window exponentially weighted moving average fliprate score - "
200198
f"alpha (smoothing factor) = {EWM_ALPHA} - {window_size} last runs fliprate and "
@@ -203,7 +201,7 @@ def create_heat_map(
203201
filename_ewm = f"{window_size}runs_flip_rate_ewm_top{top_n}.png"
204202

205203
generate_image(table_data, title_ewm, filename_ewm)
206-
logging.info("%s and %s generated.", filename, filename_ewm)
204+
logging.info(f"generated {filename_ewm}")
207205

208206

209207
def main():

0 commit comments

Comments
 (0)