skill-fedora-mirror-injections
Skill5.3k starsChanged 2 months agoMITView on GitHub
[Skill] Diagnose Azure Linux Stage 1 (bootstrap-mirror) BuildRequires resolution failures and backfill missing RPMs into the prod Fedora updates mirror via the azl-infra injections file. Use when triaging stage-1 / azl4-bootstrap-mirror build failures, finding dependency gaps in the Fedora mirror, deciding whether a failure is a real mirror gap vs a transient timeout or a spec bug, adding entries to azl4-stage1-injections.yaml, or opening a PR with mirror injections. Triggers: bootstrap-mirror, stage 1 build failure, fedora mirror gap, missing BuildRequires, nothing provides crate, no match for argument, injections file, azl4-stage1-injections, mirror injection.
Trending
Quiet since September.about the whole repository
Who's talking about microsoft/azurelinux
- A Hacker News story“Microsoft's Azure Linux”Hacker News · Jan 29, 2026 · 66 points
- @blowdart.me“github.com/microsoft/az...”Bluesky · Dec 13, 2024 · 10 likes
- A Hacker News story“Microsoft Azure Linux”Hacker News · May 19, 2026 · 4 points
- @matsuu.bsky.social“Microsoft、従来CBL-Marinerと呼んでいた自家製Linuxディストリビューションの名称をAzure Linuxに変更した模様。わいわい”Bluesky · Mar 10, 2024 · 4 likes
- project-copacetic/copacetic“[BUG] copa overwrites /usr/sbin symlink for mariner distroless/debug”GitHub · Nov 26, 2024 · 3 reactions
The biggest 5 of 40 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 40
Talked about on GitHub, Bluesky and Hacker News (40 times).
On GitHub · 26
- Nov 26, 2024[BUG] copa overwrites /usr/sbin symlink for mariner distroless/debug — project-copacetic/copacetic3 reactions · 1 comment
- Sep 7, 2025Release Expat 2.7.2 (ETA 2025-09-16) — libexpat/libexpat2 reactions
- May 28, 2025Add shadow-utils to our AZL3 images — dotnet/dotnet-buildtools-prereqs-docker2 reactions · 2 comments
- Mar 25, 2025Release Expat 2.7.1 (ETA 2025-03-27) — libexpat/libexpat2 reactions · 2 comments
- Sep 18, 2026Support Azure Linux 3 — microsoft/nvx1 reaction · 1 comment
21 more on GitHub
- Jun 10, 2024Add Azure Linux OS — repology/repology-updater1 reaction · 3 comments
- May 20, 2024Latest Azure Linux 3.0 drop is getting TLS error during `dotnet restore` — dotnet/dotnet-docker1 reaction · 1 comment
- Mar 19, 2024cbl-mariner images don't include useradd — microsoft/go1 reaction · 5 comments
- Sep 18, 2026feat(config): add VM SKU groups for test fan-out — microsoft/azure-linux-dev-tools0 reactions
- Jul 27, 2026Add Support For AzureLinux 4.0 — microsoft/WSL0 reactions · 6 comments
- Jul 8, 2026[New Product] Azure Linux — endoflife-date/endoflife.date0 reactions · 1 comment
- Jul 3, 2026Azure Linux 4.0 base image — alanta/azure-egress-proxy0 reactions · 2 comments
- Apr 2, 2026when running `azldev config dump` images return only an absolute path — microsoft/azure-linux-dev-tools0 reactions
- Sep 2, 2025Enable `CONFIG_INET_DIAG_DESTROY` kernel config in the Docker Desktop's linuxkit kernel — docker/roadmap0 reactions
- Aug 6, 2025[RFE] Enable CONFIG_INET_DIAG_DESTROY — flatcar/Flatcar0 reactions · 18 comments
- Jul 25, 2025Consume expanded BTF info on Azure Linux — microsoft/retina0 reactions
- May 11, 2025Update install.sh to ignore mkdir errors — microsoft/KeysInUse-OpenSSL0 reactions
- Mar 10, 2025This is an auto-generated pull request to cherry-pick commit 328a3a73fcdb595b632250fda537fa4037aa55f1 to 3.0-dev. Original PR: #12825 — Pitan1993/NiceHashBot0 reactions
- Mar 10, 2025This is an auto-generated pull request to cherry-pick commit 328a3a73fcdb595b632250fda537fa4037aa55f1 to 3.0-dev. Original PR: #12825 — nicehash/NiceHashMiner0 reactions · 2 comments
- Feb 4, 2025CVE-2024-46854 CVE-2024-43849 CVE-2024-46852 CVE-2024-46853 CVE-2024-41080 CVE-2024-46849 CVE-2024-50086 CVE-2024-47671 CVE-2022-48635 CVE-2024-43834 CVE-2024-36893 CVE-2024-46695 CVE-2024-43846 CVE-2024-50036 CVE-2024-47672 CVE-2024-44931 CVE-2024-50058 CVE-2024-46858 CVE-2024-43835 CVE-2024-36972 — solflare-wallet/utl-aggregator0 reactions
- Nov 26, 2024LiveOS ISOs cannot boot when SELinux is enabled — dracut-ng/dracut0 reactions · 10 comments
- Sep 18, 2024Extension fails on Azure Linux 3.0 as an unsupported distro — Azure/Guest-Configuration-Extension0 reactions · 1 comment
- Sep 5, 2024Request: New azurelinux tags — PowerShell/PowerShell-Docker0 reactions
- Aug 1, 2024Won't build due to error obtaining VCS status: exit status 128 (and workaround) — cblichmann/btrfscue0 reactions · 1 comment
- Mar 28, 2024FYI issue reported to CBL-mariner: tdnf cannot install ca-certificates due to certificate error — microsoft/wslg0 reactions · 3 comments
- Aug 22, 2022Add support for cgmanifest — aboutcode-org/scancode-toolkit0 reactions
On Bluesky · 11
- Dec 13, 2024github.com/microsoft/az... — @blowdart.me10 likes and reposts · 1 reply
- Mar 10, 2024Microsoft、従来CBL-Marinerと呼んでいた自家製Linuxディストリビューションの名称をAzure Linuxに変更した模様。わいわい — @matsuu.bsky.social4 likes and reposts
- May 19, 2026So Microsoft have a new server OS eh? Azure Linux https://github.com/microsoft/azurelinux — @ruari.velocipederider.com.ap.brid.gy2 likes and reposts · 2 replies
- Jun 6, 2026Microsoft circa 2000: Linux is communism Microsoft now: Has it's own Linux OS github.com/microsoft/az... — @martin-s.bsky.social1 likes and repost · 1 reply
- May 19, 2026Azure Linuxのリモートリポジトリはこちら github.com/microsoft/az... — @woodstream.jp1 likes and repost
6 more on Bluesky
- Jan 29, 2026Microsoft's Azure Linux Discussion | hackernews | Author: AbuAssar — @news.karthihegde.dev1 likes and repost
- Jan 29, 2026Microsoft's Azure Linux | Discussion — @hackernewsbot.bsky.social1 likes and repost
- Oct 8, 2025they do!! github.com/microsoft/az... — @jon.me.uk1 likes and repost
- Dec 11, 2024github.com/microsoft/az... — @mahdi.simply-vibing.com1 likes and repost
- Sep 25, 2024📦 microsoft / azurelinux ⭐ 4,196 (+18) 🗒 RPM Spec Linux OS for Azure 1P services and edge appliances — @github-trending.bsky.social1 likes and repost
- Sep 25, 2024今日のGitHubトレンド microsoft/azurelinux CBL-Marinerは、マイクロソフトのクラウドインフラおよびエッジ製品・サービス向けのLinuxディストリビューションです。… — @dailygithubtrends.bsky.social1 likes and repost
On Hacker News · 3
- Jan 29, 2026Microsoft's Azure Linux66 points · 109 comments
- May 19, 2026Microsoft Azure Linux4 points
- Sep 23, 2024Microsoft Azure Linux (cloud v3 and not Wal)2 points · 1 comment
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- base/comps/AGENTS.mdAGENTS.md
- distro/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- azldev-add-componentSkill
- azldev-build-componentSkill
- azldev-comp-tomlSkill
- azldev-imageSkill
- azldev-mockSkill
- azldev-overlay-metadataSkill
- azldev-overlaysSkill
- azldev-remove-componentSkill
- azldevSkill
- azldev-update-componentSkill
- skill-aks-healthSkill
- skill-deployment-contextSkill
- skill-koji-triageSkill
- skill-kql-queriesSkill
- skill-mass-triageSkill
- skill-metricsSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Use when the user asks to:
- Distinctive: line 29
Add / verify entries in the injections file.
- Distinctive: line 68
Check all buckets — gaps hide outside the obvious one.
- Very specific: line 129
No standalone --dry-run; reuse the script's own functions:
- Very specific: line 148
Commit the injection entries on a branch off azl-infra main and open the PR — this is the deliverable.
- Very specific: line 184
When old + new both exist (old in frozen base, new in updates/mirror), dnf picks the highest and an old-API spec fails (e.g.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Fedora Mirror Injections (AzL4 Stage 1 dependency gaps)
Diagnose BuildRequires resolution failures in AzL4 Stage 1
(*-bootstrap-mirror) builds, decide which are real prod-mirror gaps, and
backfill the missing RPMs via azl4-stage1-injections.yaml in azl-infra.
Validated on the mirror_bootstrap0623 round (draft PR #27888; 34-package
retest all passed).
Repos You Need
azl-infra— holds the injections file and mirror tooling. Clone from:https://dev.azure.com/mariner-org/polar/_git/azl-infra(Azure DevOps orgmariner-org, projectpolar). The relevant tree isscripts/fedora_mirror/.azurelinux— the package specs (for spec-fix cases). Clone from:https://github.com/microsoft/azurelinux.git(branch4.0).
When to Use This Skill
Use when the user asks to:
- Triage a stage-1 /
azl4-bootstrapbuild failure or triage summary. - Find what RPMs are missing from the prod Fedora updates mirror.
- Add / verify entries in the injections file.
- Decide if a failure needs a mirror injection, a retest, or a spec fix.
- Open a PR adding entries to the injections file.
Mental Model — a resolution failure IS a mirror gap
Stage 1 (azl4-bootstrap-mirror) builds resolve all BuildRequires
from the prod Fedora mirror alone (kojifedoramirror.blob.core.windows.net).
Koji-built RPMs from the same build set are not used as build deps, so
build ordering is irrelevant — a resolution failure means the mirror
lacks that exact NVR/crate version, even if the provider built fine in the
same run. Do not dismiss these as build-order races.
Repo split: fedora-43-everything (base release) is frozen and consumed
live from upstream; fedora-43-updates drifts and is what gets
mirrored into blob snapshots — so it is what needs injections.
The Eviction Pattern (root cause)
- A build pulled NVR
Xfromfedora-43-updates. - Fedora bumped to a newer major/minor
Y;Xdemoted fromupdatesrepodata. Xnever entered the frozenreleases/43/Everything.Xis still recoverable from kojipkgs (Fedora's build archive).
The spec's BuildRequires upper bound (>= X < next~) can't accept Y →
inject X back from kojipkgs.
Procedure
1. Scan the triage summary for resolution signatures
import json, re
d = json.load(open('triage-summary-*.json'))
pat = re.compile(r'nothing provides|No match for argument|Could NOT find|missing:', re.I)
for b in d['buckets']:
for t in b['tasks']:
if pat.search(t['shortSummary']):
print(b['name'], t['taskID'], t['package'])Check all buckets — gaps hide outside the obvious one.
2. Get EXACT pins from koji root.log (never trust summary ranges)
curl -sk "https://<koji-host>/koji/getfile?taskID=<childID>&name=root.log&offset=0" \
| grep -iE "nothing provides|No match for argument|conflicting requests"crate(icu_collections) >= 2.1.1 < 2.2.0~ proves the mirror has the name at
2.2.0 but not the needed version (the eviction signature).
3. Classify (not everything is injectable)
| Signature | Class | Action |
nothing provides ... < X~ / No match for argument: crate = X | Real mirror gap | Inject X from kojipkgs |
Curl error (28): Timeout from the blob mirror | Transient infra | Retest, don't inject |
Could NOT find <LIB> at %build, lib IS in mirror | Spec bug | Fix the azurelinux spec (BuildRequires) |
| Needs version requiring a whole-stack realignment | Version skew | Upstream owner fix |
0623 exclusions: grpc (libpfm-devel current, just add
BuildRequires: libpfm-devel), qt6-qthttpserver (qt6-qtbase-private-devel
= 6.10.2 vs mirror qtbase 6.9.2 → qt6 stack realignment).
4. Find the NVR + full subpackage fan-out on kojipkgs
Rust: SRPM is rust-<crate>; binaries are rust-<crate>-devel,
rust-<crate>+<feature>-devel — all noarch, one shared NVR. Inject
every subpackage of the NVR.
# versions
curl -s "https://kojipkgs.fedoraproject.org/packages/<name>/" | grep -oE '>[0-9][^<]*/<' | sed -E 's/>//;s/\/<//' | sort -V
# releases for a version
curl -s "https://kojipkgs.fedoraproject.org/packages/<name>/<ver>/" | grep -oE '>[0-9][^<]*\.fc[0-9]+/<' | sed -E 's/>//;s/\/<//'
# noarch subpackages for the NVR
curl -s "https://kojipkgs.fedoraproject.org/packages/<name>/<ver>/<rel>/noarch/" | grep -oE 'href="[^"]+\.noarch\.rpm"' | sed -E 's/href="//;s/"//' | sort5. Verify the transitive closure (avoid peeling the onion)
rpm -qp --requires <rpm> | grep -E 'crate\(' | grep '<' # upper-bounded deps
rpm -qp --provides <rpm> | grep -E '^crate\('Confirm each < X~ dep is satisfied by the injected set or current mirror
(e.g. siblings bounded < 3.0.0~ are fine against a 2.2.0 mirror; only
< 2.2.0~ pins need injecting). Iterate to a fixpoint. For masked gaps
(downstream packages that never reached builddep), run a full-set offline
depsolve against mirror + injections before rerunning. Note Rust
%generate_buildrequires produces BRs at build time — a static depsolve
misses them.
6. Add entries to the injections file
File: azl-infra/scripts/fedora_mirror/injections/azl4-stage1-injections.yaml
- {source: rust-icu_collections, name: rust-icu_collections-devel, version: 2.1.1, release: 5.fc43, arch: noarch}source= SRPM,name= binary RPM (setsourcewhenever they differ — always for rust crates; binaries live under the SRPM dir on kojipkgs).noarchfans out to x86_64 + aarch64; arch-specific binaries get one entry per arch.- File is sorted by
(source, name, arch),+feature-develbefore bare-devel. Insert in place; do not append. Keep entries comment-free (rationale goes in the PR/commit).
7. Pre-flight validation (offline, no Azure)
No standalone --dry-run; reuse the script's own functions:
import yaml, inject_packages as ip, logging
logging.disable(logging.CRITICAL)
inj = yaml.safe_load(open('injections/azl4-stage1-injections.yaml'))
repos = yaml.safe_load(open('repos.yaml'))
new = [p for p in ip.expand_packages(inj, repos) if p['source_name'] in {'rust-...'}]
print('HEAD failures:', sum(0 if ip.head_check(p['url'])[0] else 1 for p in new)) # want 08. Know how the run behaves
inject_packages.py is add-only + idempotent (dedup by dest path,
SKIPs existing). No delete path. Storage: account kojifedoramirrorsa,
container fedora-mirror; blob path
snapshots/<snap>/<repo>/<arch>/Packages/<first-letter>/<file>.rpm.
Snapshot caveat: the injection only helps if it lands in the snapshot the
target consumes — confirm the file's snapshot: matches before running.
9. Open the PR
Commit the injection entries on a branch off azl-infra main and open the
PR — this is the deliverable.
- Branch:
<user>/<task>-<date>off latestorigin/main. - Diff: additions-only to
azl4-stage1-injections.yaml(no existing lines touched), entries comment-free and in the correct alphabetical slot. - PR description carries the rationale: the eviction pattern, exact NVRs,
which failing package(s) each entry unblocks, closure notes, the target
snapshot:, and any packages deliberately excluded (spec bugs / version skew) with why. - Evidence: paste the Step 7 offline HEAD-check result (want 0 failures).
- Open as draft first if you want review before it's merge-ready.
After merge (optional): once the injection lands in the prod snapshot, retest the affected packages (include the transient-timeout ones; exclude spec/version-skew) with a body like:
{ "repoUri": "https://github.com/microsoft/azurelinux.git", "branch": "4.0", "commitSha": "", "packageTarget": "azl4-bootstrap-mirror", "packages": ["rust-icu_normalizer", "rust-rkyv", "..."], "isScratchBuild": true }
Transient timeout vs. real gap
A burst of Curl error (28): Timeout is usually a time-windowed blob outage,
not a bad package. Confirm: (1) same RPM failing across many packages →
systemic; (2) failures pack into a short window (0623: 29 in ~78 min) →
transient; (3) most other builds in that window succeeded (0623: 97%) →
mirror was up. If all three hold, retest — do not inject.
Gotcha — version float (pin the spec, don't delete)
When old + new both exist (old in frozen base, new in updates/mirror), dnf
picks the highest and an old-API spec fails (e.g. rust-uucore 0.0.27 vs
0.7.0). Deleting from the mirror is the wrong lever (sync re-adds it, no
delete tooling, diverges from upstream). Fix: pin the spec's
crate(uucore) = 0.0.27 (+ lockstep siblings uucore_procs,
uuhelp_parser). Since 0.0.27 lives in the frozen live base repo, the pin
needs zero mirror changes.
Reference
- Repo
azl-infra:https://dev.azure.com/mariner-org/polar/_git/azl-infra - Injections file:
azl-infra/scripts/fedora_mirror/injections/azl4-stage1-injections.yaml - Schema/template:
.../injections/example.yaml - Tooling:
.../fedora_mirror/{inject_packages,snapshot_repos}.py,repos.yaml,_common.py - kojipkgs archive:
https://kojipkgs.fedoraproject.org/packages/ - Prod mirror:
https://kojifedoramirrorsa.blob.core.windows.net/fedora-mirror/ - Worked example: draft PR #27888 in
azl-infra
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

