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

azldev-build-component

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

यह स्किल बताती है कि azldev घटक कैसे बनाएँ और बिल्ड की विफलताओं से कैसे निपटें। यह उन डेवलपर्स के लिए है जो azldev से पैकेज बनाते हैं और विफल बिल्ड ठीक करना चाहते हैं।

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

  • ✓जब azldev घटक की बिल्ड विफल हो और आपको कारण खोजना हो।
  • ✓जब आप किसी पैकेज को अपने स्थानीय dependencies के रिपॉज़िटरी के विरुद्ध दोबारा बनाना चाहते हों।
  • ✓जब किसी घटक के लिए एक विफल test जाँच बंद करनी हो।

Skill का लिंक

https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-build-component/SKILL.md

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

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

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

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

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

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

“मेरी azldev घटक बिल्ड check चरण में विफल हो रही है। क्या आप कारण खोजने और बिल्ड दोहराने में मदद कर सकते हैं?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट render, build और test के चक्र का पालन करता है, बने spec और diffs की जाँच करता है। वह निर्भरताएँ जोड़ने और डीबग के लिए बिल्ड एनवायरनमेंट रखने के लिए टूल के बिल्ड विकल्प इस्तेमाल करता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Build and debug a component

Never install built RPMs on your host — they target the distro, not your dev machine. Test them in a chroot with the azldev-mock skill. Building and testing are separate steps: azldev comp build produces RPMs; it does not test them.

Build

azldev comp build -p <name>                                     # one component
azldev comp build -p <a> -p <b> --local-repo-with-publish <dir> # chain deps via a local repo
azldev comp build -p <name> --local-repo <dir>                  # rebuild against a populated repo

Build foundational packages before their dependents. RPMs land in the project's configured output directory (out by default). -q quiets output but hides build progress — use it only for inner-loop builds you expect to succeed.

The inner loop

investigate → modify → render → build → test → inspect

Step Command
Investigate read the rendered spec under specs/, or azldev comp diff-sources -p <name>
Modify edit the component's .comp.toml (see the azldev-overlays and azldev-comp-toml skills)
Verify azldev comp render -p <name> (fast — skips source tarballs)
Build azldev comp build -p <name>
Test azldev adv mock shell --add-package <rpm> (see the azldev-mock skill)
Inspect azldev comp build -p <name> --preserve-buildenv always, then a mock shell

Prefer comp render for quick overlay verification; use comp diff-sources to see the exact overlay effect (it fetches sources once, applies overlays to a copy, and diffs the two trees). Builds can be slow — set generous timeouts.

Finalize with azldev comp update -p <name> before opening a PR (see the azldev-update-component skill).

Debugging build failures

  1. Render error mentioning a non-standard Release tag — a release-calculation issue; see the azldev-comp-toml skill.
  2. Preview error mentioning rpmdev-bumpspec, rpmdev-packager, rpm, rpmspec, python3, or the Python RPM module — this applies only when you explicitly use the temporary --rpmdev-bumpspec preview. Provision the named prerequisite for that opt-in path. Without the flag, azldev keeps the legacy static Release calculation.
  3. Overlay did not apply as expected — azldev comp diff-sources -p <name> shows what the overlays actually change.
  4. Inspect the build environment — azldev comp build -p <name> --preserve-buildenv on-failure (values on-failure, always, never), then enter a mock shell.
  5. Failing %check — fix the tests first (root cause, upstream patches, targeted fixes). Only as a last resort, disable with build.check.skip = true and a required build.check.skip_reason explaining what fails, why it cannot be fixed, and whether it is temporary. A transient --no-check build flag exists for one-off local builds.

Per-component build tweaks (build.defines, build.without) live in the .comp.toml — see the azldev-comp-toml skill.

Generated by azldev docs agent; do not hand-edit.

अक्सर पूछे जाने वाले सवाल

क्या बने RPM मेरे कंप्यूटर पर इंस्टॉल होने चाहिए?

नहीं। स्किल कहती है कि पैकेज mock build root में परखें, क्योंकि वे डिस्ट्रो के लिए हैं, आपकी मशीन के लिए नहीं।

क्या बिल्ड करने से पैकेज की जाँच भी हो जाती है?

नहीं। स्किल कहती है कि बिल्ड और टेस्ट अलग चरण हैं।

क्या विफल test जाँच छोड़ी जा सकती है?

स्किल एक सेटिंग के ज़रिए किसी घटक की विफल जाँच बंद करने का ज़िक्र करती है, जिसे सावधानी से इस्तेमाल करना चाहिए।

जानकारी

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

Read this before building a component or diagnosing a build failure; do not guess build flags or the inner loop. Explains how to build, iterate on, and debug an azldev component, covering comp build flags (local-repo, preserve-buildenv), the render/build/test inner loop, diff-sources, and disabling a failing %check via check.skip. Triggers include build component, build failed, build error, inner loop, preserve buildenv, local repo, disable check.

repo: microsoft/azurelinux

लोकप्रियता

GitHub स्टार
5.4k
रैंकिंग में स्थान
#14961
लाइसेंस
MIT
अपडेट की गई
2/11/2026

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

0

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

कमेंट

  • …

इस repository की और skills

azldev-add-component

5.4k

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

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

azldev-comp-toml

5.4k

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

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

azldev-image

5.4k

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

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

azldev-mock

5.4k

यह आपके एजेंट को mock बिल्ड एनवायरनमेंट में बने पैकेज परखने और जाँचने देती है, ताकि वे कभी आपके अपने कंप्यूटर को न छुएँ।

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

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