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.mdSalin 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
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
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
- Render error mentioning a non-standard
Releasetag โ a release-calculation issue; see theazldev-comp-tomlskill. - 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-bumpspecpreview. Provision the named prerequisite for that opt-in path. Without the flag, azldev keeps the legacy static Release calculation. - Overlay did not apply as expected โ
azldev comp diff-sources -p <name>shows what the overlays actually change. - Inspect the build environment โ
azldev comp build -p <name> --preserve-buildenv on-failure(valueson-failure,always,never), then enter a mock shell. - Failing
%checkโ fix the tests first (root cause, upstream patches, targeted fixes). Only as a last resort, disable withbuild.check.skip = trueand a requiredbuild.check.skip_reasonexplaining what fails, why it cannot be fixed, and whether it is temporary. A transient--no-checkbuild 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
Komentar
- โฆ
Skill lain dari repositori ini
azldev-add-component
5.4kMembantu agent Anda menambahkan komponen perangkat lunak baru ke build distribusi Linux azldev, mulai dari memeriksa spec hulu hingga memvalidasi hasilnya.
azldev-comp-toml
5.4kMembantu agent Anda menulis, mengedit, dan meninjau file definisi komponen yang dipakai azldev untuk menjelaskan cara setiap paket dibangun.
azldev-image
5.4kMembantu agent Anda membangun, menjalankan, dan menguji image Linux, seperti image container atau mesin virtual, dengan perintah image azldev.
azldev-mock
5.4kMembantu agent Anda menguji dan memeriksa paket hasil build di dalam lingkungan mock build, sehingga tidak pernah menyentuh komputer Anda sendiri.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.