Pular para o conteúdo
Skillpedia
Deploy e nuvem (DevOps)5,4 mil · #14970

skill-koji-triage

O que ela faz

Esta skill analisa builds que falharam em um sistema de build Koji, lê as informações e os logs das tarefas e explica o que deu errado. Ela é para desenvolvedores que empacotam software e precisam entender falhas de build.

Quando usar

  • ✓Quando uma tarefa de build no Koji falhou e você precisa saber o motivo.
  • ✓Quando você quer baixar logs de build de uma página web do Koji.
  • ✓Quando você precisa procurar pacotes com problemas em um lote de builds do Koji.

Link da skill

https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/skill-koji-triage/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/skill-koji-triage/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“A tarefa 3307 do Koji falhou. Você pode buscar os logs e me dizer a causa raiz?”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente busca as páginas de tarefa e os logs na interface web do Koji, salva-os em arquivos e procura erros neles. Depois resume a causa raiz mais provável.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do GitHub.

Koji Build Failure Triage

Koji Web UI

  • Base URL: Get from the user, or from env variable KOJI_BASE_URL, or pre-configured in the MCP server.

    • If the env variable is not set, and the MCP is not pre-configured, prompt the user to input the base URL of the Koji Web UI (e.g., https://koji.example.com).
  • MCP tools (preferred): Use the koji MCP server tools to fetch pages and logs. These write output to temp files under base/build/work/scratch/koji/ to avoid bloating context. Use read_file and grep_search on the resulting files to inspect content.

    Available tools: koji_status, set_koji_url, koji_fetch, koji_allow_insecure, koji_cleanup. All tools return a dict with the result plus server state (base URL, output dir, etc.).

    1. Call koji_status to check if a base URL is already configured (via env or a prior call).
    2. Either call set_koji_url to set a default, or pass override_base_url directly to koji_fetch per-call. Setting a default is convenient when all requests target the same instance, and override_base_url is useful for ad-hoc queries against other instances.
    3. Call koji_fetch with the path (e.g., /koji/taskinfo?taskID=3307). It returns the file path where content was saved.
      • If the fetch fails with an SSL certificate error (e.g., self-signed cert), ask the user if they want to skip SSL verification, then call koji_allow_insecure (optionally with override_base_url) to proceed. Do NOT proceed without explicit user approval for the specific URL.
    4. Use read_file or grep_search on the saved file to extract the information you need.
    5. Call koji_cleanup when done to remove fetched temp files and reclaim disk space (NOTE: This will clean up ALL scratch files, so only call it when you're completely done with the current files).
  • MCP is required. If MCP tools are not working, ask the user to fix their MCP configuration rather than falling back to CLI tools.

  • Network issues: Koji is typically only accessible via VPN or corporate network. If you encounter connection errors or timeouts, assume it is a network permissions issue — ask the user to confirm they are connected to the appropriate network before retrying. Do NOT keep retrying on your own.

Discovery: Finding Builds by Package Name

When the user provides a package name instead of a task ID, use both discovery paths below to find all recent failures. Neither path alone is sufficient.

Why two paths? The package info page only lists builds where Koji created a build record. If a task fails early (e.g., buildSRPMFromSCM fails), no build record exists and the failure is invisible on the package page. The failed tasks list catches these, but doesn't filter by package — you must grep for the name. Always run both.

Path A: Package info page (finds builds with records)

  1. Search for the package:
/koji/search?match=glob&type=package&terms=<PACKAGE_NAME>
  • If the exact name doesn't match, try a glob: terms=<NAME>*
  • Extract the packageID from the results (look for packageinfo?packageID= links)
  • If the search returns only one match, Koji redirects directly to the package info page (skip step 2).
  1. Get recent builds from the package info page:
/koji/packageinfo?packageID=<PACKAGE_ID>
  • Look for buildinfo?buildID= links with state failed
  • Note the build NVRs (Name-Version-Release) for context
  1. Get the build's parent task ID:
/koji/buildinfo?buildID=<BUILD_ID>
  • Extract the taskinfo?taskID= link — this is the parent build task
  • The parent task's Descendants section lists the actual failed child tasks (buildArch, buildSRPMFromSCM)

Path B: Failed tasks list (catches failures with no build record)

Search the global failed tasks list for the package name:

/koji/tasks?owner=&state=failed&view=flat&method=build&order=-id
  • This lists all recent failed build tasks, newest first
  • Grep the results for the package name to find relevant task IDs
  • This catches early failures (e.g., buildSRPMFromSCM errors, plugin/callback errors) that never create a build record and would be invisible on the package info page

Combine results

Collect the parent task IDs from both paths, deduplicate, then for each parent task:

  1. Fetch taskinfo?taskID=<PARENT_ID> to see the Descendants tree
  2. Identify which child task(s) failed (buildSRPMFromSCM or buildArch)
  3. Proceed to th
Perguntas frequentes

Precisa de um endereço web do Koji?

Sim. A skill usa um endereço base informado por você, uma configuração do ambiente ou um servidor predefinido, e pede um endereço se nenhum estiver configurado.

E se o site tiver um certificado inválido?

A skill pergunta se você quer ignorar a verificação do certificado para aquela requisição.

Ela altera algum build?

As ferramentas da skill buscam e leem páginas e logs, que é o que ela usa para investigar.

Detalhes

Descrição original do autor

[Skill] Examine Koji builds, fetch task info and logs from the Koji Web UI, identify failures, and provide root cause analysis. Use when triaging Koji build failures, investigating failed tasks, downloading build logs, or searching for broken packages. Triggers: koji failure, koji build failed, koji task, koji log, koji triage, build failure analysis.

repo: microsoft/azurelinux

Popularidade

Estrelas no GitHub
5,4 mil
Posição no ranking
#14970
Licença
MIT
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas