मुख्य सामग्री पर जाएँ
Skillpedia
डिप्लॉय और क्लाउड (DevOps)5.4k · #14970

skill-koji-triage

यह क्या करती है

यह स्किल Koji बिल्ड सिस्टम में विफल बिल्ड देखती है, टास्क की जानकारी और लॉग पढ़ती है, और समझाती है कि क्या गलत हुआ। यह उन डेवलपर्स के लिए है जो सॉफ़्टवेयर पैकेज करते हैं और बिल्ड विफलताएँ समझना चाहते हैं।

कब इस्तेमाल करें

  • ✓जब कोई Koji बिल्ड टास्क विफल हो और आपको कारण जानना हो।
  • ✓जब आप Koji वेब पेज से बिल्ड लॉग डाउनलोड करना चाहते हों।
  • ✓जब Koji बिल्ड के एक बैच में टूटे पैकेज खोजने हों।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/skill-koji-triage/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“Koji टास्क 3307 विफल हुआ है। क्या आप लॉग लाकर मूल कारण बता सकते हैं?”

हर हफ़्ते 5 नई skills, 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 वेब पता चाहिए?

हाँ। स्किल आपके दिए बेस पते, किसी environment सेटिंग या पूर्वनिर्धारित सर्वर से पता लेती है, और कुछ सेट न होने पर आपसे माँगती है।

अगर साइट का certificate खराब हो तो?

स्किल पूछती है कि क्या आप उस अनुरोध के लिए certificate जाँच छोड़ना चाहते हैं।

क्या यह कोई बिल्ड बदलती है?

स्किल के टूल पेज और लॉग लाते और पढ़ते हैं, जो जाँच के लिए ज़रूरी है।

जानकारी

लेखक का मूल विवरण

[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
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

azldev-add-component

5.4k

यह आपके एजेंट को azldev Linux डिस्ट्रीब्यूशन बिल्ड में नया सॉफ़्टवेयर घटक जोड़ने में मदद करती है, upstream spec देखने से लेकर नतीजे की जाँच तक।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

azldev-build-component

5.4k

यह आपके एजेंट को azldev पैकेज बनाने और उसकी बिल्ड गड़बड़ियाँ ठीक करने में मदद करती है, जिसमें render, build और test का चक्र शामिल है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

azldev-comp-toml

5.4k

यह आपके एजेंट को azldev घटक फ़ाइलें लिखने, बदलने और समीक्षा करने में मदद करती है, जो बताती हैं कि हर पैकेज कैसे बनता है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

azldev-image

5.4k

यह आपके एजेंट को azldev image कमांड से Linux image, जैसे container या virtual machine image, बनाने, boot करने और परखने में मदद करती है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

मिलती-जुलती skills