fix: skip stale registry.ci ocp spec in OfficialImageTagFrom#5222
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR modifies ChangesOCP Registry Image Filtering
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 16 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (16 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/test checkconfig e2e |
|
Tests from second stage were triggered manually. Pipeline can be controlled only manually, until HEAD changes. Use command to trigger second stage. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deepsm007, jcpowermac The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/override ci/prow/images |
|
@deepsm007: Overrode contexts on behalf of deepsm007: ci/prow/images DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@deepsm007: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
https://redhat-internal.slack.com/archives/CBN38N3MW/p1780243383859199
/cc @openshift/test-platform
Fix: Skip Stale Registry.CI OCP Spec in OfficialImageTagFrom
Component affected: Image resolution utility in ci-operator (
pkg/steps/utils/)What changed: The
OfficialImageTagFromfunction now skips stale OCP image references from the internal registry.ci registry (registry.ci.openshift.org/ocp/*) when resolving official image tag sources. The function checks both the spec and status image stream tags, but only returns them if they are either non-DockerImage types OR DockerImage references that don't point to the internal OCP registry. When a spec or status tag references a stale internal registry.ci OCP image, the function falls back to using a Quay-based image reference instead.Why it matters: ci-operator uses
OfficialImageTagFromto resolve image sources for official OCP images during CI test setup. The internal registry.ci is temporary and images there can become outdated or unavailable. By filtering out these stale internal references, the system automatically falls back to Quay, which hosts the canonical, actively-maintained OCP images. This prevents CI job failures caused by attempting to pull from obsolete or deprecated internal registries and ensures jobs use current, reliable image sources.Testing: Added test case "skip stale registry.ci ocp spec" that verifies when an image stream tag's spec contains a DockerImage reference to registry.ci.openshift.org/ocp/*, that reference is correctly skipped and the function returns a Quay-based reference instead.