You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[architect] install-source identity stated 3x with divergent names: packages/*.repo vs install-packages.py REPOS vs check-repo-availability.py REPOS #73
The set of repositories Utah installs from — which repos, in which precedence order, at which URLs — is the image's install-source identity. It is currently stated three times:
packages/hummingbird.repo + packages/utah-packages.repo — the actual yum repo configuration (IDs, baseurls, priorities).
scripts/install-packages.py:26 — REPOS = ("utah-packages", "public-hummingbird-x86_64-rpms"), restating the repo IDs for --enablerepo flags.
scripts/check-repo-availability.py:30-31 — REPOS = {"public-hummingbird": <url>, "utah-packages": <pages-url>}, restating the same two repos as a name→URL dict.
The copies have already diverged cosmetically: the checker keys Hummingbird as public-hummingbird, but the real repo ID is public-hummingbird-x86_64-rpms. The Justfile guards one direction textually (grep -q '"utah-packages"' scripts/install-packages.py, Justfile:63), which means the drift risk has bitten before — but the guard only covers one of the three statements.
Related: the TOML manifest reader section() is duplicated verbatim in check-repo-availability.py:35, install-packages.py:29, and verify-rpm-contract.py:31.
Impact
A repo rename, baseurl move, or added install source must be made in three places; miss one and the CI preflight (just check-repos) validates a different repository set than the image build installs from — the check passes while the build consumes something else.
Recommendation
Single-source the identity in packages/*.repo:
check-repo-availability.py derives its repo set by parsing packages/*.repo (section name = repo ID, baseurl = check URL). The factory repo's in-image file:///etc/utah-packages baseurl carries a ci-mirror: annotation naming the Pages URL the CI check queries instead.
Longer term, extract the triplicated section() reader into one shared module (needs a Containerfile change to ship into the image — also deferred for the same occupancy reason).
Filed by architect agent (ACMM L5 — hold-gated mode)
Activity
fix(packages): single-source install repository identity in packages/…