Skip to content

spec: EPEL as an add-on repository; boxes that start on EL7 - #48

Merged
TusanHomichi merged 4 commits into
mainfrom
claude/project-thread-qturuz
Oct 13, 2026
Merged

TusanHomichi merged 4 commits into
mainfrom
claude/project-thread-qturuz

Conversation

@TusanHomichi

@TusanHomichi TusanHomichi commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

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-release keeps 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} in hop.set_release whenever add-ons exist; new broken cases in test_check.py.
  • Hops: set_release appends {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). Before yum 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's new repo file. Add-on metadata is pinned in sources.
  • service.record on 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_el unpacks filesystem first so EL7's /lib64 -> usr/lib64 symlinks exist before other packages unpack through them.
  • Mirror shim may fetch dl.fedoraproject.org (EPEL 8 to 10; EPEL 7 is on archives.fedoraproject.org, already allowed).
  • SPEC: new "Add-on repositories" section, rpm.transit, service.record, adapter format.
  • Rust client: same commands. client/parity.py on 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):

  • New box el/centos7-lamp (next PR) walked centos7 -> alma10: PASS, 15/15 checks at AlmaLinux 10.2, 2 hops, 24 fixes, EPEL carried 7 -> 8 -> 9 -> 10.
  • No regression on routes/el/centos5-to-alma10.toml: el/centos5-web PASS (32 fixes, 15 min), el/centos5-dns PASS (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

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]>
@TusanHomichi TusanHomichi self-assigned this Oct 13, 2026
@github-actions github-actions Bot added the needs-claude-review Waiting on the Claude review layer label Oct 13, 2026
- 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

Copy link
Copy Markdown
Member Author

Independent Claude review: sign-off on 72d2a91 (the merge of main after #46).

  • 77145ca (the add-on code) was signed off earlier. Two optional nits stay as they are: there's no message when the systemd record comes back empty (it still refuses), and a crafted V1|V2 vendor across two add-ons can't be reached from any adapter that passes the vendor pattern.
  • The merge review checked every file both sides touched. Nothing was dropped or duplicated, and check_hardware runs before the add-on block's early return in both checkers. Add-ons and the hardware tables don't interact, since hwdata reads only the base repos.
  • Local results on 72d2a91: check.py ok, test_check.py 0 missed, test_umask/test_grub/test_net_ifcfg ok, cargo fmt/clippy/test (24 passed) ok, and parity.py reports identical output.
  • The replays with this PR's tools all passed: el/centos7-lamp reached Alma 10.2 with 15/15 checks, el/centos5-web and el/centos5-dns both reached Alma 10.2.

I'll merge with a merge commit once the required checks are green on this head.


Generated by Claude Code

@TusanHomichi
TusanHomichi marked this pull request as ready for review October 13, 2026 04:38
@TusanHomichi
TusanHomichi merged commit 8b8393e into main Oct 13, 2026
8 checks passed
@TusanHomichi
TusanHomichi deleted the claude/project-thread-qturuz branch October 13, 2026 04:38
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T04:39:22.601963Z 72d2a91 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-claude-review Waiting on the Claude review layer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants