Skip to content
Skillpedia
Deploy & cloud (DevOps)5.4k Β· #14961

azldev-build-component

What it does

This skill explains how to build an azldev component and work through build failures. It is for developers who package software with azldev and need to fix a failing build.

When to use it

  • βœ“When an azldev component build fails and you need to find the cause.
  • βœ“When you want to rebuild a package against a local repository of its dependencies.
  • βœ“When a failing test check should be turned off for a specific component.

Skill link

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

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

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.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œMy azldev component build fails in the check phase. Can you help me find the cause and iterate on the build?”

5 new skills a week. 1 minute to read.

How it works

The agent follows a render, build and test loop, inspecting the rendered spec and diffs. It uses the tool's build options to chain dependencies and keep build environments for debugging.

Technical content (original SKILL.md)

Original text by the author, straight from 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.

FAQ

Should built RPMs be installed on my computer?

No. The skill says to test packages in a mock build root, since they target the distro and not your machine.

Does building also test the package?

No. The skill says building and testing are separate steps.

Can I skip a failing test check?

The skill mentions disabling a failing check for a component through a setting, which should be used carefully.

Details

Original description by the author

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

Popularity

GitHub stars
5.4k
Ranking position
#14961
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills