Pular para o conteúdo
Skillpedia
Deploy e nuvem (DevOps)5,4 mil · #14961

azldev-build-component

O que ela faz

Esta skill explica como fazer o build de um componente azldev e resolver falhas de build. Ela é para desenvolvedores que empacotam software com azldev e precisam corrigir um build que falha.

Quando usar

  • ✓Quando um build de componente azldev falha e você precisa encontrar a causa.
  • ✓Quando você quer refazer o build de um pacote com um repositório local das dependências dele.
  • ✓Quando uma verificação de teste que falha deve ser desligada para um componente específico.

Link da skill

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

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-build-component/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Meu build do componente azldev falha na fase de check. Você pode me ajudar a encontrar a causa e iterar no build?”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente segue um ciclo de render, build e teste, inspecionando a especificação renderizada e os diffs. Ele usa as opções de build da ferramenta para encadear dependências e manter ambientes de build para depuração.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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.

Perguntas frequentes

Os RPMs gerados devem ser instalados no meu computador?

Não. A skill diz para testar os pacotes em um build root mock, já que eles são feitos para a distro e não para a sua máquina.

O build também testa o pacote?

Não. A skill diz que fazer o build e testar são etapas separadas.

Posso pular uma verificação de teste que falha?

A skill menciona desativar uma verificação que falha para um componente por meio de uma configuração, o que deve ser feito com cuidado.

Detalhes

Descrição original do autor

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

Popularidade

Estrelas no GitHub
5,4 mil
Posição no ranking
#14961
Licença
MIT
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas