You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f"FAILURE: Import time regression of {diff:.2f} ms exceeds both the absolute threshold ({diff_threshold} ms) "
273
-
f"and the relative threshold ({relative_diff_threshold:.2f} ms, 15% of baseline Median)."
255
+
ifbaseline_p50isnotNone:
256
+
diff=p50_time-baseline_p50
257
+
258
+
diff_msg= (
259
+
f"--- Diff vs Baseline ---\n"
260
+
f"Baseline Median: {baseline_p50:.2f} ms\n"
261
+
f"Current Median: {p50_time:.2f} ms\n"
262
+
f"Difference: {diff:+.2f} ms"
274
263
)
275
-
exit_code=1
276
-
else:
277
-
ifdiff>diff_threshold:
278
-
final_messages.append(f"SUCCESS: Import time regression of {diff:.2f} ms exceeds absolute threshold ({diff_threshold} ms) but is within relative threshold ({relative_diff_threshold:.2f} ms, 15%).")
f"FAILURE: Import time regression of {diff:.2f} ms exceeds both the absolute threshold ({diff_threshold} ms) "
270
+
f"and the relative threshold ({relative_diff_threshold:.2f} ms, 15% of baseline Median)."
271
+
)
272
+
exit_code=1
279
273
else:
280
-
final_messages.append("SUCCESS: Import time diff is within acceptable thresholds.")
274
+
ifdiff>diff_threshold:
275
+
final_messages.append(f"SUCCESS: Import time regression of {diff:.2f} ms exceeds absolute threshold ({diff_threshold} ms) but is within relative threshold ({relative_diff_threshold:.2f} ms, 15%).")
276
+
else:
277
+
final_messages.append("SUCCESS: Import time diff is within acceptable thresholds.")
281
278
else:
282
279
final_messages.append(f"WARNING: Baseline CSV {diff_baseline} not found. Skipping diff check.")
final_messages.append(f"WARNING: Median import time ({p50_time:.2f} ms) exceeds the absolute failure threshold ({fail_threshold} ms), but the baseline ({baseline_p50:.2f} ms) also exceeded it. Bypassing absolute backstop failure.")
285
+
else:
286
+
final_messages.append(f"FAILURE: Median import time ({p50_time:.2f} ms) exceeds the failure threshold ({fail_threshold} ms).")
287
+
exit_code=1
288
+
else:
289
+
final_messages.append(f"SUCCESS: Median import time ({p50_time:.2f} ms) is within the failure threshold ({fail_threshold} ms).")
0 commit comments