Skip to content

Commit 7fc9270

Browse files
committed
fix: ignore vsock related failure metrics
These metrics trigger spuriously, as iperf-vsock does not cleanly shutdown vsock connections at the end of a performance run, resulting in Firecracker occasionally observing incorrectly shut down sockets. Signed-off-by: Patrick Roy <[email protected]>
1 parent df82a41 commit 7fc9270

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/host_tools/fcmetrics.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,11 +466,19 @@ def flatten_dict(node, prefix: str):
466466

467467
metrics.flush()
468468

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+
469476
failure_metrics = {
470477
key: value
471478
for key, value in flattened_metrics.items()
472479
if "err" in key or "fail" in key or "panic" in key or "num_faults" in key
473480
if value
481+
if key not in ignored_failure_metrics
474482
}
475483
assert not failure_metrics, json.dumps(failure_metrics, indent=1)
476484

0 commit comments

Comments
 (0)