Skip to content
Merged
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
6 changes: 6 additions & 0 deletions research/ime/test_hosted_inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,12 @@ def checked_accounting(observed):
("status", "states", "state_timeline", "ast_parse_milliseconds")}
except subprocess.TimeoutExpired as error:
record["timed_out"] = True
# What the child looked like exactly when the deadline hit: a live
# child with complete checkpoints means the timeout happened after
# the last recorded stage rather than during start-up.
record["exit_at_timeout"] = process.poll() if process is not None else None
partial = getattr(error, "output", None) or b""
record["partial_stdout_bytes"] = len(partial) if isinstance(partial, (bytes, bytearray)) else 0
record["error"] = inventory.error_identity(error)
raise
except BaseException as error:
Expand Down