Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions ydb/tests/olap/lib/allure_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from ydb.tests.olap.lib.ydb_cluster import YdbCluster
from ydb.tests.olap.lib.results_processor import ResultsProcessor
from urllib.parse import urlencode
from datetime import datetime


def allure_test_description(
Expand Down Expand Up @@ -40,6 +41,7 @@ def _pretty_str(s):
f"schema=/{test_info['database']}/{YdbCluster.tables_path}&tenantPage=query"
f"&diagnosticsTab=nodes&name=/{test_info['database']}'>link</a>"
),
'timestamp': datetime.now().strftime('%c'),
}
)
if ResultsProcessor.send_results:
Expand Down
5 changes: 4 additions & 1 deletion ydb/tests/olap/lib/ydb_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,10 @@ def _check_node(n):
start_time = int(ss.get('StartTime', int(time()) * 1000)) / 1000
uptime = int(time()) - start_time
r = ss.get('Roles', [])
role = r[0] if len(r) > 0 else role
for role_candidate in ['Storage', 'Tenant']:
if role_candidate in r:
role = role_candidate
break
if uptime < 15:
error = f'Node {name} too yong: {uptime}'
except BaseException as ex:
Expand Down