Skip to content

Analyze failures skill - #3647

Merged
mkoura merged 4 commits into
masterfrom
analyze_failures_skill
Aug 21, 2026
Merged

Analyze failures skill#3647
mkoura merged 4 commits into
masterfrom
analyze_failures_skill

Conversation

@mkoura

@mkoura mkoura commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

mkoura added 4 commits August 21, 2026 12:02
Replace `scripts/analyze_failures.sh` with a Claude Code skill that
detects a regression vs node-upgrade run and follows the matching
prompt from `agent_docs/`. The skill also answers where a run's logs
and artifacts live, both for saved run directories and for local
runs against a dev cluster.

Sharpen both analysis prompts: describe the `cluster_artifacts/`
state dirs and their contents, say what `errors_all.log` actually
greps, point at `start-cluster.log` / `supervisord.log` when the
cluster fails to start, and note that load generator logs mean the
testnet was under constant load during the run.
Unpack step: artifacts downloaded from a CI run contain only the
`*.tar.xz` archives, while a locally produced run dir keeps both the
archives and the unpacked dirs, so unpack what is missing first.

Detection: match results as dir or tarball, and stop asking instead of
falling back to the regression prompt - an upgrade run that dies before
step1's pytest produces no results at all.

Drop the duplicated path map in favour of the prompt files' inputs list,
use the same temp dir fallbacks as `runner/copy_artifacts.sh`, and stop
implying that `$1` gets substituted in the skill body.

Prompts: don't hardcode a 3-pool testnet, list the rotated logs and the
`nodes/` and `shelley/` subdirs that `_copy_state_dir_content` also
saves, note the fallback names of the state dirs, and warn that
`grep_errors.sh` skips rotated logs.
@mkoura
mkoura requested a review from saratomaz as a code owner August 21, 2026 10:09
@mkoura
mkoura merged commit 58134ff into master Aug 21, 2026
1 check passed
@mkoura
mkoura deleted the analyze_failures_skill branch August 21, 2026 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant