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

azldev-build-component

하는 일

이 스킬은 azldev 구성 요소를 빌드하고 빌드 실패를 해결하는 방법을 설명합니다. azldev로 패키징하다가 실패한 빌드를 고쳐야 하는 개발자를 위한 것입니다.

사용하는 경우

  • ✓azldev 구성 요소 빌드가 실패해서 원인을 찾아야 할 때.
  • ✓의존성 패키지들의 로컬 저장소로 다시 빌드하고 싶을 때.
  • ✓특정 구성 요소에서 실패하는 테스트 검사를 끄고 싶은 경우.

스킬 링크

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

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

사용 방법

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

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

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

AI에게 요청하는 예시

“azldev 구성 요소 빌드가 check 단계에서 실패합니다. 원인을 찾고 빌드를 반복해서 고치도록 도와주실 수 있나요?”

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

작동 방식

에이전트는 render, build, test 반복 과정을 따르며, 렌더링된 스펙과 차이를 살펴봅니다. 도구의 빌드 옵션으로 의존성을 연결하고, 디버깅을 위해 빌드 환경을 보관합니다.

기술 내용 (원본 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을 제 컴퓨터에 설치해야 하나요?

아닙니다. 스킬은 RPM이 배포판을 대상으로 하므로 mock 빌드 루트에서 테스트하라고 설명합니다.

빌드하면 패키지도 테스트되나요?

아닙니다. 스킬에 따르면 빌드와 테스트는 별개의 단계입니다.

실패하는 테스트 검사를 건너뛰어도 되나요?

스킬은 설정을 통해 구성 요소의 검사를 끌 수 있다고 언급하며, 신중하게 사용해야 한다고 설명합니다.

상세 정보

작성자의 원본 설명

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
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬