We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 462a572 commit ac90fdbCopy full SHA for ac90fdb
eval_protocol/pytest/tracing_utils.py
@@ -179,7 +179,18 @@ def update_row_with_remote_trace(
179
if k not in row.input_metadata.dataset_info:
180
row.input_metadata.dataset_info[k] = v
181
182
+ preserved_extra = row.execution_metadata.extra
183
+
184
row.execution_metadata = remote_row.execution_metadata
185
186
+ if preserved_extra:
187
+ if row.execution_metadata.extra:
188
+ # Merge remote and local extras; local takes precedence on conflicts
189
+ merged = row.execution_metadata.extra or {}
190
+ merged.update(preserved_extra)
191
+ row.execution_metadata.extra = merged
192
+ else:
193
+ row.execution_metadata.extra = preserved_extra
194
return None
195
else:
196
raise ValueError("Output data loader should return exactly one row.")
0 commit comments