From 18b3ed173a480196386277bcdc30424f897ea72c Mon Sep 17 00:00:00 2001 From: JJ Allaire Date: Thu, 26 Dec 2024 21:11:21 +0000 Subject: [PATCH] trace: include timeout actions --- src/inspect_ai/_cli/trace.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/inspect_ai/_cli/trace.py b/src/inspect_ai/_cli/trace.py index 2097fa9c7..c3886f1a7 100644 --- a/src/inspect_ai/_cli/trace.py +++ b/src/inspect_ai/_cli/trace.py @@ -133,7 +133,13 @@ def action_timeout(trace: ActionTraceRecord) -> None: print(f"Unknown event type: {trace.event}") # do we have any traces? - if len(running_actions) + len(canceled_actions) + len(error_actions) == 0: + if ( + len(running_actions) + + len(canceled_actions) + + len(error_actions) + + len(timeout_actions) + == 0 + ): print(f"TRACE: {shlex.quote(trace_file_path.as_posix())}\n") if all: print("No anomalies found in trace log.")