Zum Inhalt springen
Skillpedia
Deployment & Cloud (DevOps)5.4k · #14961

azldev-build-component

Was er macht

Dieser Skill erklärt, wie man eine azldev-Komponente baut und sich durch Build-Fehler arbeitet. Er ist für Entwickler gedacht, die Software mit azldev paketieren und einen fehlschlagenden Build reparieren müssen.

Wann du ihn nutzt

  • ✓Wenn ein azldev-Komponentenbau fehlschlägt und du die Ursache finden musst.
  • ✓Wenn du ein Paket gegen ein lokales Repository seiner Abhängigkeiten neu bauen willst.
  • ✓Wenn eine fehlschlagende Testprüfung für eine bestimmte Komponente abgeschaltet werden sollte.

Link zum Skill

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

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-build-component/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Mein azldev-Komponentenbau schlägt in der Check-Phase fehl. Kannst du mir helfen, die Ursache zu finden und den Build zu verbessern?”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Agent folgt einer Schleife aus Render, Build und Test und prüft die gerenderte Spezifikation und die Diffs. Er nutzt die Build-Optionen des Werkzeugs, um Abhängigkeiten zu verketten und Build-Umgebungen zum Debuggen zu behalten.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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.

Häufige Fragen

Soll man gebaute RPMs auf dem Computer installieren?

Nein. Der Skill sagt, Pakete in einer Mock-Build-Root zu testen, da sie für die Distribution gedacht sind, nicht für deinen Rechner.

Testet das Bauen auch das Paket?

Nein. Der Skill sagt, Bauen und Testen sind getrennte Schritte.

Kann ich eine fehlschlagende Testprüfung überspringen?

Der Skill erwähnt, eine fehlschlagende Prüfung über eine Einstellung für eine Komponente abzuschalten, was nur mit Vorsicht geschehen sollte.

Details

Originalbeschreibung des Autors

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

Beliebtheit

GitHub-Sterne
5.4k
Platz im Ranking
#14961
Lizenz
MIT
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills