log-analysis
Installation
SKILL.md
Skill: log_analysis
Analyze a SLURM job log file for failure root-cause attribution and restart decisions using NVRxLogAnalyzer.
Script: scripts/nvrx_logsage.py → attribution/log_analyzer/nvrx_logsage.py
What it does
- Reads the log file (UTF-8, falls back to latin-1).
- Splits into per-cycle chunks using
chunk_logs_strict(scans forprofiling.py:.*Cycle:\s*Nmarkers). Falls back to a single chunk when no markers are found. - For each chunk, extracts application errors via
return_application_errors(logsage). - Classifies each chunk with fast-path pattern matching (training done, SLURM cancelled, preemption, time limit) or calls the LLM via
get_proposed_solution_cat. - Returns one result tuple per cycle.