-
Notifications
You must be signed in to change notification settings - Fork 2.4k
ART-14263: Migrate OCP 5.0 RPM repos to R2 CloudFlare #79886
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -63,7 +63,7 @@ failovermethod = priority | |
|
|
||
| [rhel-10.2-server-ose-5.0] | ||
| name = rhel-10.2-server-ose-5.0 | ||
| baseurl = https://mirror2.openshift.com/enterprise/reposync/5.0/rhel-10-server-ose-rpms/ | ||
| baseurl = https://openshift-mirror-list.ci-systems.workers.dev/enterprise/reposync/5.0/rhel-10-server-ose-rpms/ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
FILE="core-services/release-controller/_repos/ocp-5.0-rhel102.repo"
echo "== File: $FILE =="
if [ ! -f "$FILE" ]; then
echo "Missing file: $FILE" >&2
exit 1
fi
# Show line numbers around the reported baseurl lines
nl -ba "$FILE" | sed -n '50,95p'
# Also report any other baseurl occurrences in the file
echo
echo "== baseurl occurrences =="
rg -n "^[[:space:]]*baseurl[[:space:]]*=" "$FILE" || true
# And any mirrorlist/mirror2/cdn related URLs
echo
echo "== mirror/cdn related URL occurrences =="
rg -n "openshift-mirror-list|mirror2|cdn|content-delivery|workers\.dev" "$FILE" || trueRepository: openshift/release Length of output: 196 🏁 Script executed: #!/bin/bash
set -euo pipefail
FILE="core-services/release-controller/_repos/ocp-5.0-rhel102.repo"
echo "== File: $FILE =="
[ -f "$FILE" ] || { echo "Missing file: $FILE" >&2; exit 1; }
echo
echo "== Lines 55-90 (context) =="
awk 'NR>=55 && NR<=90 {printf "%d\t%s\n", NR, $0}' "$FILE"
echo
echo "== baseurl occurrences =="
rg -n '^[[:space:]]*baseurl[[:space:]]*=' "$FILE" || true
echo
echo "== mirror/cdn related URL occurrences =="
rg -n 'openshift-mirror-list|mirror2|cdn|content-delivery|workers\.dev' "$FILE" || trueRepository: openshift/release Length of output: 3680 Missing mandatory
Provide the 🤖 Prompt for AI Agents |
||
| enabled = 1 | ||
| gpgkey = https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-release https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-beta https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-openshifthosted | ||
| sslverify = false | ||
|
|
@@ -75,7 +75,7 @@ skip_if_unavailable = true | |
|
|
||
| [rhel-10.2-early-kernel] | ||
| name = rhel-10.2-early-kernel | ||
| baseurl = https://mirror2.openshift.com/enterprise/reposync/5.0/rhel-102-early-kernel/ | ||
| baseurl = https://openshift-mirror-list.ci-systems.workers.dev/enterprise/reposync/5.0/rhel-102-early-kernel/ | ||
| enabled = 1 | ||
| gpgkey = https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-release https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-beta https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-openshifthosted | ||
| sslverify = false | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,7 +38,7 @@ failovermethod = priority | |
| name = rhel-8-server-ose | ||
| # Using mirror until aarch64 content released to CDN | ||
| # See: https://github.com/openshift/release/pull/23111#discussion_r739417374 | ||
| baseurl = https://mirror2.openshift.com/enterprise/reposync/5.0_aarch64/rhel-8-server-ose-rpms | ||
| baseurl = https://openshift-mirror-list.ci-systems.workers.dev/enterprise/reposync/5.0_aarch64/rhel-8-server-ose-rpms | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
# Show the relevant file and the exact line with baseurl (and nearby fields)
FILE="core-services/release-controller/_repos/ocp-5.0-rhel8-aarch64.repo"
echo "== $FILE =="
if [ -f "$FILE" ]; then
nl -ba "$FILE" | sed -n '1,120p'
else
echo "MISSING: $FILE"
fi
# Search for other ocp repo files to compare URL patterns
echo
echo "== Compare baseurl patterns across core-services/release-controller/_repos/ocp-*.repo =="
fd -a "ocp-*.repo" core-services/release-controller/_repos | sort | wc -l
fd -a "ocp-*.repo" core-services/release-controller/_repos | sort | while read -r f; do
echo "--- $f"
rg -n "^(baseurl|mirrorlist|#|metalink|gpgkey|enabled|repo(batch)?|name)\b" "$f" | head -n 30 || true
# Show only the baseurl line(s)
rg -n "^baseurl\s*=" "$f" || true
done
# Look for documentation of the /test-repo-files slash command
echo
echo "== Search for /test-repo-files guidance =="
rg -n "/test-repo-files" -S . || true
# Look for other mentions of mirror2 / CDN URL expectations (if present)
echo
echo "== Search for mirror2 / CDN URL wording =="
rg -n "mirror2|CDN|cdn\.|openshift-mirror-list" -S core-services/release-controller/_repos || trueRepository: openshift/release Length of output: 195 🏁 Script executed: #!/bin/bash
set -euo pipefail
FILE="core-services/release-controller/_repos/ocp-5.0-rhel8-aarch64.repo"
echo "== Show $FILE and baseurl line =="
if [ -f "$FILE" ]; then
echo "--- baseurl line(s) ---"
rg -n "^baseurl\s*=" "$FILE" || true
echo "--- line 41 (context) ---"
awk 'NR>=35 && NR<=47 {printf "%5d:%s\n", NR, $0}' "$FILE" || true
else
echo "MISSING: $FILE"
fi
echo
echo "== Compare baseurl patterns across core-services/release-controller/_repos/ocp-*.repo =="
if command -v fd >/dev/null 2>&1; then
mapfile -t files < <(fd -a "ocp-*.repo" core-services/release-controller/_repos | sort)
else
mapfile -t files < <(find core-services/release-controller/_repos -maxdepth 1 -type f -name "ocp-*.repo" | sort)
fi
echo "Found: ${`#files`[@]} ocp-*.repo files"
for f in "${files[@]}"; do
echo
echo "--- $f ---"
rg -n "^baseurl\s*=" "$f" || true
done
echo
echo "== Search for /test-repo-files guidance =="
rg -n "/test-repo-files" -S . || true
echo
echo "== Search for mirror2 / CDN / openshift-mirror-list wording =="
rg -n "mirror2|CDN|cdn\.|openshift-mirror-list" -S core-services/release-controller/_repos || trueRepository: openshift/release Length of output: 1707 🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "== List ocp-*.repo files and show baseurl lines =="
for f in $(find core-services/release-controller/_repos -maxdepth 1 -type f -name 'ocp-*.repo' | sort); do
echo
echo "--- $f ---"
awk -F= '/^baseurl[[:space:]]*=/{gsub(/[[:space:]]+$/,"",$2); print "baseurl = "$2}' "$f"
done
echo
echo "== Search for /test-repo-files guidance =="
rg -n "/test-repo-files" -S . || true
echo
echo "== Search for openshift-mirror-list / mirror2 / CDN wording =="
rg -n "openshift-mirror-list|mirror2|CDN|cdn\.redhat\.com" -S core-services/release-controller/_repos || trueRepository: openshift/release Length of output: 50374 🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "== Search for test-repo-files guidance =="
rg -n "test-repo-files" -S . --hidden --glob '!.git/*' || true
rg -n "/test-repo-files" -S . --hidden --glob '!.git/*' || true
echo
echo "== Search for repo-file validation mention (broader) =="
rg -n "repo[- ]file|repo file|mirror.*CDN|openshift-mirror-list" -S . --hidden --glob '!.git/*' | head -n 50 || trueRepository: openshift/release Length of output: 10956 🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "== CLAUDE.md /test-repo-files section =="
awk 'NR>=30 && NR<=70 {print}' CLAUDE.md
echo
echo "== .claude/commands/test-repo-files.md =="
awk 'NR>=1 && NR<=120 {print}' .claude/commands/test-repo-files.md
echo
echo "== .claude/SLASH_COMMANDS.md /test-repo-files =="
awk 'NR>=360 && NR<=430 {print}' .claude/SLASH_COMMANDS.md
echo
echo "== .claude/commands/README.md /test-repo-files =="
awk 'NR>=610 && NR<=675 {print}' .claude/commands/README.mdRepository: openshift/release Length of output: 10053 🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "== Find implementation references for test-repo-files =="
rg -n "test-repo-files" -S . --hidden --glob '!.git/*' | head -n 80
echo
echo "== Search for openshift-mirror-list usage in test-repo-files code =="
rg -n "openshift-mirror-list\.ci-systems\.workers\.dev|mirror2\.openshift\.com|cdn\.redhat\.com|rhsm-pulp\.corp\.redhat\.com" -S . --hidden --glob '!.git/*' | head -n 80
echo
echo "== Search for mirror2 host list inside any scripts =="
rg -n "mirror2\.openshift\.com" -S . --hidden --glob '!.git/*' | head -n 80Repository: openshift/release Length of output: 27409 Run 🤖 Prompt for AI Agents |
||
| gpgkey = https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-release https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-beta https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-openshifthosted | ||
| sslverify = false | ||
| gpgcheck = 0 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: openshift/release
Length of output: 278
🏁 Script executed:
Repository: openshift/release
Length of output: 50374
🏁 Script executed:
Repository: openshift/release
Length of output: 6206
🏁 Script executed:
Repository: openshift/release
Length of output: 5758
🏁 Script executed:
Repository: openshift/release
Length of output: 5526
🏁 Script executed:
Repository: openshift/release
Length of output: 2176
🏁 Script executed:
Repository: openshift/release
Length of output: 2777
Add
/test-repo-filesvalidation output forcore-services/release-controller/_repos/ocp-5.0-rhel10.repoPR feedback is missing the required
/test-repo-filesrun results for the updatedbaseurlentries in this file (lines 3, 15, 39, 51, 63, 77). Add the passing output for:/test-repo-files ocp-5.0-rhel10🤖 Prompt for AI Agents