@@ -127,9 +127,10 @@ def message_formatter(msg_num):
127127
128128 # Validate against performance bounds
129129 if not is_valid :
130- self .logger .warning (
130+ self .logger .error (
131131 "Performance bounds validation failed: %s" , "; " .join (violations )
132132 )
133+ assert False , f"Performance bounds validation failed: { '; ' .join (violations )} "
133134
134135 self .logger .info (
135136 "Successfully completed basic production test with comprehensive metrics"
@@ -219,9 +220,10 @@ def message_formatter(msg_num):
219220
220221 # Validate against performance bounds
221222 if not is_valid :
222- self .logger .warning (
223+ self .logger .error (
223224 "Performance bounds validation failed: %s" , "; " .join (violations )
224225 )
226+ assert False , f"Performance bounds validation failed: { '; ' .join (violations )} "
225227
226228 self .logger .info (
227229 "Successfully completed basic production test with comprehensive metrics with transaction"
@@ -325,11 +327,12 @@ def message_formatter(msg_num):
325327
326328 # Validate against performance bounds
327329 if not is_valid :
328- self .logger .warning (
330+ self .logger .error (
329331 "Performance bounds validation failed for %ds test: %s" ,
330332 test_duration ,
331333 "; " .join (violations ),
332334 )
335+ assert False , f"Performance bounds validation failed for { test_duration } s test: { '; ' .join (violations )} "
333336
334337 self .logger .info (
335338 "Successfully completed %ds batch production test with comprehensive metrics" ,
@@ -466,11 +469,15 @@ def message_formatter(msg_num):
466469
467470 # Validate against performance bounds
468471 if not is_valid :
469- self .logger .warning (
472+ self .logger .error (
470473 "Performance bounds validation failed for %s compression: %s" ,
471474 compression_type ,
472475 "; " .join (violations ),
473476 )
477+ assert False , (
478+ f"Performance bounds validation failed for { compression_type } compression: "
479+ f"{ '; ' .join (violations )} "
480+ )
474481
475482 self .logger .info (
476483 "Successfully completed %s compression test with comprehensive metrics" ,
@@ -607,9 +614,10 @@ def message_formatter(i):
607614 ), f"Send throughput too low: { metrics_summary ['send_throughput_msg_per_sec' ]:.2f} msg/s"
608615
609616 if not is_valid :
610- self .logger .warning (
617+ self .logger .error (
611618 "Performance bounds validation failed: %s" , "; " .join (violations )
612619 )
620+ assert False , f"Performance bounds validation failed: { '; ' .join (violations )} "
613621
614622 self .logger .info (
615623 "Successfully completed SR production test with comprehensive metrics"
0 commit comments