본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)5.4k · #14970

skill-koji-triage

하는 일

이 스킬은 Koji 빌드 시스템의 실패한 빌드를 살펴보고, 작업 정보와 로그를 읽은 뒤 무엇이 잘못되었는지 설명합니다. 패키지를 만들며 빌드 실패를 이해해야 하는 개발자를 위한 것입니다.

사용하는 경우

  • ✓Koji 빌드 작업이 실패해서 그 이유를 알아야 할 때.
  • ✓Koji 웹 페이지에서 빌드 로그를 내려받고 싶을 때.
  • ✓여러 Koji 빌드 묶음에서 깨진 패키지를 찾아야 하는 경우.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/skill-koji-triage/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“Koji 작업 3307이 실패했습니다. 로그를 가져와 근본 원인을 알려 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 Koji 웹 인터페이스에서 작업 페이지와 로그를 가져와 파일로 저장하고, 그 안에서 오류를 검색합니다. 그다음 가장 가능성 높은 근본 원인을 요약합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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
자주 묻는 질문

Koji 웹 주소가 필요한가요?

네. 스킬은 사용자가 준 주소, 환경 설정, 기본 서버 중 하나를 사용하며, 설정된 것이 없으면 주소를 물어본다고 설명합니다.

사이트 인증서가 잘못되었으면 어떻게 하나요?

스킬은 해당 요청에 대해 인증서 검사를 건너뛸지 사용자에게 묻는다고 설명합니다.

빌드를 바꾸나요?

스킬의 도구는 페이지와 로그를 가져와 읽기만 하며, 조사를 위해 이것만 사용한다고 설명합니다.

상세 정보

작성자의 원본 설명

[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

인기도

GitHub 스타
5.4k
순위
#14970
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬