Skip to content

Commit 73505bd

Browse files
committed
fix remote dataset info
1 parent 361369e commit 73505bd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

eval_protocol/pytest/tracing_utils.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,14 @@ def update_row_with_remote_trace(
171171
row.messages = remote_row.messages
172172
row.tools = remote_row.tools
173173
row.input_metadata.session_data = remote_row.input_metadata.session_data
174-
row.input_metadata.dataset_info = remote_row.input_metadata.dataset_info
174+
remote_info = remote_row.input_metadata.dataset_info or {}
175+
if row.input_metadata.dataset_info is None:
176+
row.input_metadata.dataset_info = dict(remote_info)
177+
else:
178+
for k, v in remote_info.items():
179+
if k not in row.input_metadata.dataset_info:
180+
row.input_metadata.dataset_info[k] = v
181+
175182
row.execution_metadata = remote_row.execution_metadata
176183
return None
177184
else:

0 commit comments

Comments
 (0)