From odh-ai-helpers
Analyzes RPM build.log failures from Copr chroot URLs, direct build.log/SRPM URLs, or local files. Delivers error summary, root cause, and actionable fixes.
npx claudepluginhub jeremyeder/ai-helpers-plugin --plugin odh-ai-helpers## Name odh-ai-helpers:rpm-examine ## Synopsis ## Description Analyze RPM build.log failures. Provide a comprehensive analysis with error summary, root cause, and actionable fixes. ### Mode 1: Copr Results URL or Direct URLs to build.log and SRPM Provide a single Copr build results URL to automatically fetch all build artifacts or provide two URLs - one for build.log and one for SRPM. **What gets downloaded:** - `build-live.log.gz` or `build.log` - Main build log - `*.src.rpm` - Source RPM containing spec file, sources, and patches - `root.log.gz`, `state.log` - Additional context logs...
/rpm-examineAnalyzes RPM build.log failures from Copr chroot URLs, direct build.log/SRPM URLs, or local files. Delivers error summary, root cause, and actionable fixes.
/fix-errorAnalyzes pasted error output to identify root causes, predict resolution times, and suggest fixes from common patterns. Supports --deep, --preventive, --quick options.
/build-fixAutomatically analyzes and fixes build errors (syntax, type, dependencies, config). Runs tests/builds for verification, retries up to 3x, and reports results with changes or recommendations.
/troubleshootDiagnoses and resolves code bugs, build failures, performance issues, and deployment problems through analysis, debugging, and fix application. Accepts [issue], --type, --trace, --fix flags.
/analyze-ci-failureAnalyzes CI/CD pipeline failures from logs or URLs, identifies root causes and types, checks flakiness and patterns, and suggests fixes with config diffs and confidence levels.
/build-fixAuto-detects build systems (Go/Air, Node/Vite/Webpack/package.json), parses error logs (auto or [log-path]), iteratively fixes until clean build.
Share bugs, ideas, or general feedback.
odh-ai-helpers:rpm-examine
/rpm:examine <copr-chroot-url>
/rpm:examine <build-log-url> <srpm-url>
/rpm:examine <build.log> <specfile|dist-git> [sources]
Analyze RPM build.log failures. Provide a comprehensive analysis with error summary, root cause, and actionable fixes.
Provide a single Copr build results URL to automatically fetch all build artifacts or provide two URLs - one for build.log and one for SRPM.
What gets downloaded:
build-live.log.gz or build.log - Main build log*.src.rpm - Source RPM containing spec file, sources, and patchesroot.log.gz, state.log - Additional context logs (optional)Provide paths to local build artifacts.
Arguments:
<build.log> - Path to build log file (required)<specfile|dist-git> - Path to spec file or dist-git repo clone (required)[sources] - Path to source tarball or unpacked sources (optional)Context gathering: If sources not provided, search in:
curl -LO <copr-url>/builder-live.log.gz
curl -LO <copr-url>/*.src.rpm
curl -LO <copr-url>/root.log.gz # optional
curl -LO <copr-url>/state.log # optional
gunzip *.log.gz (if needed)rpm2cpio *.src.rpm | cpio -idmv*.tar.* or *.src.rpmCollect all relevant information before analysis:
Spec file analysis:
Additional context:
git diff to check uncommitted changes%{name}.conf, %{name}.desktop, systemd unitsroot.log, state.log, mock.logSource code (if needed):
CMakeLists.txt, Makefile.am, setup.py, etc.%prep - Source unpacking and patch application%build - Compilation and building%install - Installation to buildroot%check - Test suite execution"Error:", "FAILED", "fatal error:""configure: error:", "No such file""undefined reference", "make: ***""CMake Error", "ninja: build stopped""ModuleNotFoundError", "ImportError""Ignoring extra path from command line" - May indicate broken line continuation in spec file"add_subdirectory given source" + "not an existing directory" - May indicate missing options due to spec formattingSpec file whitespace issues:
\ instead of \) - Breaks line continuation, causing subsequent lines to be completely ignored by the shell%if blocks)cat -A specfile.spec to reveal trailing spaces (shows as \ $ at end of line) or grep '\\ $' specfile.specProvide a clear, structured analysis:
Brief description of what failed (1-2 sentences)
Technical explanation of why it failed:
Specific, actionable steps to resolve:
Optional section for: