Skip to content

fix nemesis test report #20506

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 2, 2025
Merged
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
18 changes: 9 additions & 9 deletions ydb/tests/olap/load/lib/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,20 +628,20 @@ def _handle_final_status(self, result, workload_name, node_errors):
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:
Expand Down
Loading