Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/tests/ftest/cart/util/cart_logtest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
#
# (C) Copyright 2018-2024 Intel Corporation
# (C) Copyright 2025 Hewlett Packard Enterprise Development LP
# (C) Copyright 2025-2026 Hewlett Packard Enterprise Development LP
#
# SPDX-License-Identifier: BSD-2-Clause-Patent

Expand Down Expand Up @@ -225,6 +225,7 @@ def __init__(self, log_iter, quiet=False):
self.fi_triggered = False
self.fi_location = None
self.skip_suffixes = []
self.skip_substrings = []
self._tracers = []
self.ftest_mode = False

Expand Down Expand Up @@ -443,6 +444,10 @@ def _check_pid_from_log_file(self, pid, abort_on_warning, leak_wf, show_memleaks
show = False
if show and any(map(line.get_msg().endswith, self.skip_suffixes)):
show = False
if show:
line_msg = line.get_msg().casefold()
if any(sub in line_msg for sub in self.skip_substrings):
show = False
if show:
# Allow WARNING or ERROR messages, but anything higher like assert should
# trigger a failure.
Expand Down
10 changes: 9 additions & 1 deletion utils/node_local_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ def __del__(self):
os.unlink(server_file)
for log in self.server_logs:
if os.path.exists(log.name):
log_test(self.conf, log.name)
log_test(self.conf, log.name, skip_fi=self._fi)
try:
os.unlink(join(self.agent_dir, 'nlt_agent.yaml'))
os.rmdir(self.agent_dir)
Expand Down Expand Up @@ -5022,6 +5022,14 @@ def sizeof_fmt(num, suffix='B'):
if ignore_busy:
lto.skip_suffixes.append(" DER_BUSY(-1012): 'Device or resource busy'")

if skip_fi:
lto.skip_substrings.extend([
'sluggish ec boundary report from rank',
'sluggish stable epoch reporting',
'progress callback was not called for too long',
'rpc failed; rc:',
])

try:
lto.check_log_file(abort_on_warning=True,
show_memleaks=show_memleaks,
Expand Down
Loading