Skip to content

Commit 0ae852e

Browse files
authored
Add warnings and errors to db in benchmarks (#13298)
1 parent 8bc4b9b commit 0ae852e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ydb/tests/olap/load/lib/conftest.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ def _attach_plans(plan: YdbCliHelper.QueryPlan) -> None:
223223
if os.getenv('NO_KUBER_LOGS') is None and not success:
224224
cls._attach_logs(start_time=result.start_time, attach_name='kikimr')
225225
if upload:
226+
stats['with_warrnings'] = bool(result.warning_message)
227+
stats['with_errors'] = bool(error_message)
226228
ResultsProcessor.upload_results(
227229
kind='Load',
228230
suite=cls.suite(),
@@ -260,7 +262,8 @@ def setup_class(cls) -> None:
260262
suite=cls.suite(),
261263
test='_Verification',
262264
timestamp=start_time,
263-
is_successful=(error is None)
265+
is_successful=(error is None),
266+
statistics={'with_errors': bool(error), 'with_warrnings': False}
264267
)
265268
if os.getenv('NO_KUBER_LOGS') is None and error is not None:
266269
cls._attach_logs(start_time=max(start_time - 600, first_node_start_time), attach_name='kikimr_start')

0 commit comments

Comments
 (0)