Analyze failures skill - #3647
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.