Skip to main content

debug-test-errors

Guide for understanding expected errors and warnings in test output for this project. Covers SSH host key warnings (normal, expected, not failures), logging level meanings (ERROR vs WARN vs DEBUG), and when to be concerned vs when to ignore. Use when debugging E2E test output, seeing red or yellow warnings in tests, or investigating unexpected-looking log messages. Triggers on "test error", "test warning", "SSH warning", "E2E output", "debug test", "test failure", "known issue", "expected error", or "test output".

소스 정보

저장소
torrust/torrust-tracker-deployer
최근 소스 활동
2026년 2월 25일 19:30
감지된 SKILL.md 언어
영어
스타
5
포크
2

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
debug-test-errors
description
Guide for understanding expected errors and warnings in test output for this project. Covers SSH host key warnings (normal, expected, not failures), logging level meanings (ERROR vs WARN vs DEBUG), and when to be concerned vs when to ignore. Use when debugging E2E test output, seeing red or yellow warnings in tests, or investigating unexpected-looking log messages. Triggers on "test error", "test warning", "SSH warning", "E2E output", "debug test", "test failure", "known issue", "expected error", or "test output".
metadata
{"author":"torrust","version":"1.0"}
# Debugging Test Errors ## Expected: SSH Host Key Warnings This warning is **normal and expected** — not a failure: ```text WARN SSH warning detected, operation: "ssh_warning", host_ip: 127.0.0.1, Warning: Permanently added '[127.0.0.1]:32825' (ED25519) to the list of known hosts. ``` **Why it appears**: SSH connects to new hosts with `-o StrictHostKeyChecking=no` for automation. SSH adds the host key to `known_hosts` and informs us — this is normal security behavior. **What it means**: SSH is connecting successfully. This is working correctly. ## Log Level Guide | Level | Meaning | Action required? | | ------- | ----------------------------------------------- | ---------------- | | `ERROR` | Actual failure requiring attention | ✅ Yes | | `WARN` | Expected warning (e.g., SSH host key additions) | ❌ Usually no | | `DEBUG` | Detailed execution info for troubleshooting | ❌ No | ## When to Actually Be Concerned Contact the team or file an issue for: - **Process failures**: Overall command or test returns non-zero exit code - **Connection errors**: "Connection refused", "Host unreachable" - **Permission errors**: Unexpected "permission denied" - **Service failures**: Docker containers not starting - **Data corruption**: Invalid configs, lost state - **Unknown patterns**: Errors not listed in known-issues ## How to Check if a Test Actually Failed The overall exit code matters, not individual WARN messages: ```bash # Run E2E test — check exit code cargo run --bin e2e-infrastructure-lifecycle-tests; echo "Exit: $?" # Look for these indicators of real failure (not SSH warnings): # - "FAILED:", "ERROR:", "panicked at" # - Non-zero exit code ``` ## Common False Alarms | What you see | Is it a failure? | | -------------------------------------- | ---------------- | | SSH host key WARN in test logs | ❌ Expected | | WARN-level log lines | ❌ Usually no | | "Permanently added ... to known_hosts" | ❌ Expected | | "Grafana not ready yet, retrying..." | ❌ Expected | | Test prints red/orange text | Check exit code | ## Reference Known issues: [`docs/contributing/known-issues.md`](../../docs/contributing/known-issues.md) E2E testing: [`docs/e2e-testing/`](../../docs/e2e-testing/)
GitHub에서 보기