NO-ISSUE: UPSTREAM: <carry>: remove dead e2e registry push job and related variables#711
Conversation
WalkthroughRemoved exported e2e catalog/registry variables and route-derived LOCAL_REGISTRY_HOST from the OpenShift Makefile. The build-test-registry.sh script now requires only NAMESPACE and NAME (positional IMAGE removed) and no longer creates/waits for an image-push Job or creates/prints an OpenShift Route. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Makefile
participant Script as build-test-registry.sh
participant OpenShift as "OpenShift API (oc)"
participant Deployment as "Registry Deployment"
Note over Makefile,Script: Old flow (left) vs New flow (right)
rect rgba(200,200,255,0.5)
Makefile->>Script: invoke with NAMESPACE, NAME, IMAGE (old)
Script->>OpenShift: apply Namespace/Deployment/Service
Script->>Deployment: wait for Available
Script->>OpenShift: create Job (push image)
OpenShift->>Script: Job completes
Script->>OpenShift: create Route and print host
end
rect rgba(200,255,200,0.5)
Makefile->>Script: invoke with NAMESPACE, NAME (new)
Script->>OpenShift: apply Namespace/Deployment/Service
Script->>Deployment: wait for Available
Note right of Script: no Job creation, no Route creation/printing
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 12✅ Passed checks (12 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Review rate limit: 9/10 reviews remaining, refill in 6 minutes. Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: joelanford 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 |
|
@joelanford: This pull request explicitly references no jira issue. 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 openshift-eng/jira-lifecycle-plugin repository. |
|
/retest |
2 similar comments
|
/retest |
|
/retest |
|
/test e2e-gcp-ovn-upgrade |
|
/lgtm |
|
/hold |
|
/retest |
Rollout plan
|
5cbc099 to
47a7553
Compare
47a7553 to
6fc27c0
Compare
|
/lgtm |
6fc27c0 to
2648821
Compare
|
/hold cancel We actually need this PR to merge before the openshift/release PR. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@openshift/operator-controller/build-test-registry.sh`:
- Line 17: The arg-count check currently rejects any invocation with three args
by using the exact-match condition 'if [[ "$#" -ne 2 ]]; then'; change that to
require a minimum of two args instead (e.g., use a "less than 2" check on "$#")
so the script accepts an optional third legacy argument, leaving the rest of the
script behavior unchanged (update the conditional that contains 'if [[ "$#" -ne
2 ]]; then' to a minimum-args check).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: dad81d7d-0d99-4e56-88cc-629cff3c54d2
📒 Files selected for processing (2)
openshift/Makefileopenshift/operator-controller/build-test-registry.sh
🚧 Files skipped from review as they are similar to previous changes (1)
- openshift/Makefile
|
/lgtm |
|
@joelanford: 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. |
|
/verified by tshort |
|
@tmshort: This PR has been marked as verified by 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 openshift-eng/jira-lifecycle-plugin repository. |
Summary
openshift/operator-controller/build-test-registry.sh(upstream'stestdata/push/push.gois now a no-op stub)E2E_REGISTRY_IMAGEargument frombuild-test-registry.shinvocations inopenshift/MakefileREG_PKG_NAME,E2E_TEST_CATALOG_V1,E2E_TEST_CATALOG_V2,CATALOG_IMG,LOCAL_REGISTRY_HOSTTest plan
Summary by CodeRabbit