aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKirill Rysin <35688753+naspirato@users.noreply.github.com>2025-07-02 15:59:22 +0200
committerGitHub <noreply@github.com>2025-07-02 16:59:22 +0300
commit39f4d8f406ca5558aa72bcd13f7ea3604d66281f (patch)
tree73147b01b193805d5e6836883f4d4875d4530deb
parentf0fd91bd9b80a6766c035c0f05c1717822d813eb (diff)
downloadydb-39f4d8f406ca5558aa72bcd13f7ea3604d66281f.tar.gz
fix nemesis test report (#20506)
-rw-r--r--ydb/tests/olap/load/lib/conftest.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/ydb/tests/olap/load/lib/conftest.py b/ydb/tests/olap/load/lib/conftest.py
index 7604f0de4c6..21f838cdbd9 100644
--- a/ydb/tests/olap/load/lib/conftest.py
+++ b/ydb/tests/olap/load/lib/conftest.py
@@ -628,20 +628,20 @@ class LoadSuiteBase:
if "coredump" not in err.lower() and "oom" not in err.lower():
workload_errors.append(err)
- # --- Прикладываем логи, если есть проблемы с нодами или ошибки workload ---
- if node_issues > 0 or workload_errors:
- # Используем универсальный подход с getattr для вызова приватного метода
- attach_logs = getattr(self, "__attach_logs", None)
- if attach_logs:
- try:
- attach_logs(
+ # --- Переключатель: если cluster_log=all, то всегда прикладываем логи ---
+ cluster_log_mode = get_external_param('cluster_log', 'default')
+ attach_logs_method = getattr(type(self), "_LoadSuiteBase__attach_logs", None)
+ if attach_logs_method:
+ try:
+ if cluster_log_mode == 'all' or node_issues > 0 or workload_errors:
+ attach_logs_method(
start_time=getattr(result, "start_time", None),
attach_name="kikimr",
query_text="",
ignore_roles=True # Собираем логи со всех уникальных хостов
)
- except Exception as e:
- logging.warning(f"Failed to attach kikimr logs: {e}")
+ except Exception as e:
+ logging.warning(f"Failed to attach kikimr logs: {e}")
# --- FAIL TEST IF CORES OR OOM FOUND ---
if node_issues > 0: