Skip to content

Commit

Permalink
trace: include timeout actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed Dec 26, 2024
1 parent 7b1f4ec commit 18b3ed1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/inspect_ai/_cli/trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit 18b3ed1

Please sign in to comment.