Langsung ke konten
Skillpedia
Deploy & cloud (DevOps)5.4k ยท #14961

azldev-build-component

Fungsinya

Skill ini menjelaskan cara membangun komponen azldev dan menangani kegagalan build. Skill ini untuk pengembang yang mengemas perangkat lunak dengan azldev dan perlu memperbaiki build yang gagal.

Kapan dipakai

  • โœ“Saat build komponen azldev gagal dan Anda perlu mencari penyebabnya.
  • โœ“Saat Anda ingin membangun ulang paket terhadap repositori lokal dari dependensinya.
  • โœ“Ketika pemeriksaan tes yang gagal perlu dinonaktifkan untuk komponen tertentu.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-build-component/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit โ†’

Contoh permintaan ke AI

โ€œBuild komponen azldev saya gagal pada fase check. Bisakah Anda membantu mencari penyebabnya dan mengulang build?โ€

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent mengikuti siklus render, build, dan tes, dengan memeriksa spec yang dirender dan diff-nya. Agent memakai opsi build alat untuk merangkai dependensi dan menyimpan lingkungan build untuk di-debug.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.

Pertanyaan umum

Apakah RPM hasil build harus dipasang di komputer saya?

Tidak. Menurut skill ini, paket harus diuji di mock build root, karena paket itu ditujukan untuk distro, bukan komputer Anda.

Apakah proses build juga menguji paket?

Tidak. Menurut skill ini, build dan tes adalah langkah yang terpisah.

Bisakah saya melewati pemeriksaan tes yang gagal?

Skill ini menyebut menonaktifkan pemeriksaan yang gagal untuk komponen melalui pengaturan, yang sebaiknya digunakan dengan hati-hati.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
5.4k
Peringkat
#14961
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • โ€ฆ

Skill lain dari repositori ini

Skill serupa