[codex] Fix Rocky 10 distro VM repository bootstrap - #271
Conversation
Greptile SummaryFixes the Rocky 10.1 test VM by rewriting stale Both changes are well-scoped: the URL rewrite is gated on Confidence Score: 4/5Safe to merge — both changes are targeted, correct, and directly address the documented CI failure. No P0 or P1 issues found. One P2 style note about the hardcoded The Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[rockyNetworkBootstrap] --> B{VERSION_ID == 10.1?}
B -- Yes --> C["sed: vault/rocky/ → pub/rocky/ in all .repo files"]
C --> D[dnf clean all]
D --> E["grep diagnostic (|| true)"]
B -- No --> F[skip rewrite]
E --> G[packageManagerSucceed]
F --> G
G --> H["set +e\nstatus=0\nattempt loop 1..3"]
H --> I[run command]
I --> J["status=$?"]
J --> K{status == 0?}
K -- Yes --> L[exit 0]
K -- No --> M{attempt < 3?}
M -- Yes --> N[sleep 20]
N --> I
M -- No --> O["exit $status (non-zero)"]
Reviews (1): Last reviewed commit: "Fix Rocky 10 distro VM repository bootst..." | Re-trigger Greptile |
| if [ "''${VERSION_ID:-}" = "10.1" ]; then | ||
| for repo in /etc/yum.repos.d/*.repo; do | ||
| [ -f "$repo" ] || continue | ||
| sed -i -E 's|(https?://(dl|download)\\.rockylinux\\.org)/vault/rocky/|\\1/pub/rocky/|g' "$repo" | ||
| done | ||
| dnf clean all | ||
| grep -R "rocky/.*/BaseOS" /etc/yum.repos.d || true | ||
| fi |
There was a problem hiding this comment.
Hardcoded minor-version guard will silently skip future Rocky 10.x releases
The VERSION_ID=10.1 check is intentional per the PR description, but it means any future Rocky 10.2+ image that ships the same stale vault/ URLs will skip the rewrite entirely and fail in the same way. Consider expanding the guard to match the full 10.* series — or at least adding a comment explaining why the narrow match is deliberate — so the intent is clear when 10.2 arrives.
Summary
Fixes the Rocky 10 distro VM package check after the
lab-v0.75.0release proof exposed a stale repository URL in the Rocky 10.1 image.Why
Release run
25079806885got all six package build/signing legs green, then failed inRocky 10 package test:Rocky 10 package testhttp://dl.rockylinux.org/vault/rocky/10.1/BaseOS/x86_64/os/repodata/repomd.xml404, so retries cannot fix it by themselvesCurrent URL check from the runner host:
https://dl.rockylinux.org/vault/rocky/10.1/BaseOS/x86_64/os/repodata/repomd.xml-> 404https://dl.rockylinux.org/pub/rocky/10.1/BaseOS/x86_64/os/repodata/repomd.xml-> 200Changes
vault/rocky/tree to the currentpub/rocky/tree during Rocky network bootstrap.VERSION_ID=10.1, so Rocky 9.5 continues to use its valid vault path.if ... fi.Validation
nix-instantiate --parse nix/tests-distro.nixgit diff --check