fix: use LocalTagReferencePolicy for input image tags#5139
fix: use LocalTagReferencePolicy for input image tags#5139Prucek wants to merge 1 commit intoopenshift:mainfrom
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
📝 WalkthroughWalkthroughSwitches created ImageStreamTag entries to use LocalTagReferencePolicy (instead of SourceTagReferencePolicy) and updates tests accordingly. Also refines build retry logic to treat failures containing the substring "manifest unknown" as non-retriable, with a new helper for that check. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 11 | ❌ 3❌ Failed checks (3 warnings)
✅ Passed checks (11 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Builds pull base images from the internal registry instead of quay-proxy, avoiding "manifest unknown" failures when quay.io garbage-collects a digest after import. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
dbdc4ab to
36ca557
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deepsm007, Prucek 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 |
|
/hold |
|
/retest-required |
|
/test e2e |
|
@Prucek: The following tests failed, say
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. |
Worth addressing |
Summary
SourcetoLocalhintsAtInfraReasonso it's classified as an infrastructure errorisNonRetriableInfraErrorcheck to skip futile retries when a manifest is permanently goneProblem
When quay.io GCs a base image digest (e.g.,
ubi-minimal), builds fail withPullBuilderImageFailed: manifest unknowneven though the image was already imported into the internal registry. WithSourceTagReferencePolicy, builds are directed back to quay-proxy to pull, which fails. ci-operator then retries 5 times futilely.Fix
LocalTagReferencePolicyfor input image tags — builds pull from the internal registry where the image is already cached from the import step. External registry GC no longer causes build failures.hintsAtInfraReason— classify "manifest unknown" as an infrastructure error so it's properly reported.isNonRetriableInfraError— detect "manifest unknown" as a permanent error and skip retries, saving minutes of futile attempts per affected image.🤖 Generated with Claude Code
Summary by CodeRabbit