File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -466,11 +466,19 @@ def flatten_dict(node, prefix: str):
466
466
467
467
metrics .flush ()
468
468
469
+ ignored_failure_metrics = [
470
+ # We trigger these spuriously in vsock tests due to iperf-vsock not implementing connection shutdown
471
+ # See also https://github.com/stefano-garzarella/iperf-vsock/issues/4
472
+ "fc_metrics.vsock.rx_read_fails" ,
473
+ "fc_metrics.vsock.tx_write_fails" ,
474
+ ]
475
+
469
476
failure_metrics = {
470
477
key : value
471
478
for key , value in flattened_metrics .items ()
472
479
if "err" in key or "fail" in key or "panic" in key or "num_faults" in key
473
480
if value
481
+ if key not in ignored_failure_metrics
474
482
}
475
483
assert not failure_metrics , json .dumps (failure_metrics , indent = 1 )
476
484
You can’t perform that action at this time.
0 commit comments