Logo: Rpm Examine

Rpm Examine

Organisatioun
opendatahub-io
rpm-examine

Analyséiert Feeler am RPM-Build-Log

Iwwersiicht

Editeuropendatahub-io
Repositoryai-helpers
Skill-Nummrpm-examine
Stären
39
Forks
76
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    opendatahub-io huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Rpm Examine an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/opendatahub-io/ai-helpers/tree/main/plugins/odh-rpm/skills/rpm-examine
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/opendatahub-io/ai-helpers.git /tmp/ai-helpers
mkdir -p .claude/skills
cp -r /tmp/ai-helpers/plugins/odh-rpm/skills/rpm-examine .claude/skills/rpm-examine
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Rpm Examine an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Rpm Examine automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Rpm Examine net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Name

odh-ai-helpers:rpm-examine

Synopsis

/rpm:examine <copr-chroot-url>
/rpm:examine <build-log-url> <srpm-url>
/rpm:examine <build.log> <specfile|dist-git> [sources]

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 (optional)

Mode 2: Local Files

Provide paths to local build artifacts.

Arguments:

  1. <build.log> - Path to build log file (required)
  2. <specfile|dist-git> - Path to spec file or dist-git repo clone (required)
  3. [sources] - Path to source tarball or unpacked sources (optional)

Context gathering: If sources not provided, search in:

  • build.log parent directory
  • specfile parent directory
  • dist-git clone directory

Implementation

1. Input Detection

  • If single URL: Copr results directory → continue to step 2a
  • If two URLs: Direct URLs to build.log and SRPM (Koji/Brew) → download both directly, then follow 2a steps 3-5
  • If local path(s): Local workflow → continue to step 2b

2. Artifact Collection

2a. URL Workflow
  1. Create temporary working directory
  2. Download files from Copr URL:
    bash
    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
  3. Decompress logs: gunzip *.log.gz (if needed)
  4. Extract SRPM: rpm2cpio *.src.rpm | cpio -idmv
  5. Locate extracted spec file
2b. Local Workflow
  1. Verify build.log exists and is readable
  2. Verify specfile/dist-git path exists
  3. Search for sources if not provided:
    • Check build.log parent directory for *.tar.* or *.src.rpm
    • Check specfile parent directory
    • If dist-git repo, check for sources in repo

3. Context Gathering

Collect all relevant information before analysis:

Spec file analysis:

  • BuildRequires dependencies
  • Patches and their application order
  • Macros and their expansions
  • Build steps (%prep, %build, %install, %check, %files)

Additional context:

  • For dist-git repos: Run git diff to check uncommitted changes
  • Examine patch files for conflicts or application failures
  • Look for auxiliary files: %{name}.conf, %{name}.desktop, systemd units
  • Check for additional logs: root.log, state.log, mock.log

Source code (if needed):

  • For compiler errors: Unpack sources to examine code
  • For test failures: Locate test files and configurations
  • For build system issues: Check CMakeLists.txt, Makefile.am, setup.py, etc.

4. Analysis

Scan Strategy
  1. Start at the end: Scan build.log from bottom up to find failure point
  2. Identify the phase: Determine which RPM build phase failed:
    • %prep - Source unpacking and patch application
    • %build - Compilation and building
    • %install - Installation to buildroot
    • %check - Test suite execution
    • Binary RPM creation - File packaging
  3. Find the trigger: Locate exact command or operation that failed
  4. Trace backwards: Follow the chain of events leading to failure
  5. Cross-reference: Compare findings with specfile configuration
Error Keywords to Search
  • "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 formatting
Hard To Find Error Patterns

Spec file whitespace issues:

  • Trailing space after backslash (\ instead of \) - Breaks line continuation, causing subsequent lines to be completely ignored by the shell
  • Missing backslash in multi-line constructs (especially in %if blocks)
  • Detection: Use cat -A specfile.spec to reveal trailing spaces (shows as \ $ at end of line) or grep '\\ $' specfile.spec
  • Symptoms: CMake/configure options appear ignored, features default to wrong values, mysterious "directory not found" errors

5. Cleanup

  • If URL workflow was used, clean up temporary directory after analysis
  • Ask user before cleanup if they might need files for further investigation

Output Format

Provide a clear, structured analysis:

1. Error Summary

Brief description of what failed (1-2 sentences)

2. Root Cause

Technical explanation of why it failed:

  • Which phase encountered the error
  • What operation or command triggered it
  • Underlying technical reason

3. Suggested Fixes

Specific, actionable steps to resolve:

  • Exact changes needed (with code/spec snippets if applicable)
  • Commands to run
  • Dependencies to add/modify
  • Patches to apply/modify

4. Additional Recommendations

Optional section for:

  • Related improvements
  • Potential future issues
  • Best practices
  • Warnings about side effects

Heefeg gestallte Froen

Wat mécht de KI-Skill Rpm Examine?

Analyséiert Feeler am RPM-Build-Log

Firwat Rpm Examine op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Rpm Examine besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Rpm Examine an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/opendatahub-io/ai-helpers/tree/main/plugins/odh-rpm/skills/rpm-examine an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Rpm Examine benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Rpm Examine benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Rpm Examine domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Rpm Examine gratis?

Jo. opendatahub-io huet de Skill ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇