Repository navigation
spec: EPEL as an add-on repository; boxes that start on EL7 - #48
Merged
Merged
Conversation
The stuck EL7 fleet is counted by EPEL's own mirror stats, and rpm.transit refused every box with EPEL on it. Now an adapter can name add-on repositories ([addons.<name>]: marker package, vendor, a repo per release). When the marker is installed, each hop's repo file carries the add-on's repo, and rpm.transit lets the vendor's packages through, but refuses before changing anything unless each one has a package of the same name in the next release's repos or add-on repos (and checks again that each was downloaded). EL gets EPEL 7 to 10. Also for boxes that start on CentOS 7: - service.record on a systemd box records its enabled service units: the EL8 pass-through erases module-stream packages (httpd, mariadb) and their enablement links with them. - build_el unpacks filesystem first, so EL7's /lib64 -> usr/lib64 symlinks exist before anything unpacks through them. - the mirror shim may fetch from dl.fedoraproject.org (EPEL 8 to 10). The Rust client compiles the same commands (client/parity.py: identical). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01U79sdXK2gVuGi4U9ty7qHc Signed-off-by: Claude <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01U79sdXK2gVuGi4U9ty7qHc Signed-off-by: Claude <[email protected]>
- rpm.transit reads the vendor last, so a vendor containing | can't pass as another package (the plain-vendor
refusal had the same hole).
- package_names checks each repo's own list and its decompressor; an unknown metadata format is an error.
- the transit's old repos (only used to install EL7's dnf) get no add-on repo, and boot-<addon> ids are gone.
- several add-ons chain with &&, so a failed set_release can't be masked.
- service.record on systemd refuses an empty list instead of keeping it forever.
- an adapter with addons must use {addons} in hop.set_release (both checkers, plus a broken case).
- SPEC: transit reference steps, service.record's systemd reference.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01U79sdXK2gVuGi4U9ty7qHc
Signed-off-by: Claude <[email protected]>
Signed-off-by: Claude <[email protected]> # Conflicts: # client/src/check.rs # tools/check.py # tools/test_check.py
Member
Author
|
Independent Claude review: sign-off on 72d2a91 (the merge of main after #46).
I'll merge with a merge commit once the required checks are green on this head. Generated by Claude Code |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Oct 13, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Peter · project thread
Before:
rpm.transit(EL7 -> EL8) refused any box with an EPEL package on it, and the box builder could not build a CentOS 7 root at all. That rules out the stuck EL7 fleet, which is counted by EPEL's own mirror stats (about 1.6M EL7 machines a day).After: the EL adapter names EPEL as an add-on repository. A box with
epel-releasekeeps EPEL from 7 to 10. The transit still refuses before changing anything unless every EPEL package has a package of the same name in EL8's repos or EPEL 8; a fix has to remove or replace the rest. CentOS 7 boxes build.This is the spec change the CentOS 7 -> Alma 10 route needs (box and route follow in their own PRs, AGENTS step 2). CI judges PRs with the base branch's tools, so nothing here is replayed by this PR's CI: the evidence is below.
How
[addons.<name>]in an rpm adapter:marker,vendor,repos(release id -> host/path).check.py(and the Rust checker) hold every value to plain patterns, since they land in root shell, and require{addons}inhop.set_releasewhenever add-ons exist; new broken cases intest_check.py.set_releaseappends{addons}, which adds[<release>-epel]to the harness's repo file only if the marker is installed then. A box without EPEL never sees the repo.rpm.transit: add-on vendor packages pass the vendor refusal only when the marker is installed (vendor parsed as everything after the second|, matched exactly). Beforeyum install dnf, each must have a same-name package in the target's base or add-on repos (names read per repo from primary metadata, gzip or xz). After the download, each must actually have been fetched. Only the target's add-on repo joins the transit'snewrepo file. Add-on metadata is pinned insources.service.recordon a box that already runs systemd records its enabled service units (refuses an empty record). A box born on EL7 has no SysV record, and the EL8 pass-through erases module-stream packages (httpd, mariadb) with their enablement links. Boxes coming from SysV record before systemd exists, so they are unchanged.build_elunpacksfilesystemfirst so EL7's/lib64 -> usr/lib64symlinks exist before other packages unpack through them.dl.fedoraproject.org(EPEL 8 to 10; EPEL 7 is onarchives.fedoraproject.org, already allowed).rpm.transit,service.record, adapter format.client/parity.pyon the merged head: identical (57 ids, 19 route hops, 135 checker cases).cargo test: 24 passed.Evidence
Local replays with this PR's tools (code as of 77145ca; the later merge of main only touched the checker's key lists and tests):
el/centos7-lamp(next PR) walkedcentos7 -> alma10: PASS, 15/15 checks at AlmaLinux 10.2, 2 hops, 24 fixes, EPEL carried 7 -> 8 -> 9 -> 10.routes/el/centos5-to-alma10.toml:el/centos5-webPASS (32 fixes, 15 min),el/centos5-dnsPASS (16 fixes, 9 min).Review focus
The add-on is an exception in a safety check (the transit's vendor refusal). Please check it can't be reached or widened outside an installed marker. The successor rule is by exact name, and the download backstop runs before the first destructive step.
🤖 Generated with Claude Code
https://claude.ai/code/session_01U79sdXK2gVuGi4U9ty7qHc
Generated by Claude Code