Skip to content

DPTP-4340: Remove direct mirroring to registry.ci.openshift.org, consolidate to single promotion step#4866

Open
deepsm007 wants to merge 1 commit intoopenshift:mainfrom
deepsm007:DPTP-4340
Open

DPTP-4340: Remove direct mirroring to registry.ci.openshift.org, consolidate to single promotion step#4866
deepsm007 wants to merge 1 commit intoopenshift:mainfrom
deepsm007:DPTP-4340

Conversation

@deepsm007
Copy link
Contributor

Removes the direct mirroring step to registry.ci.openshift.org and consolidates promotion into a single step that handles both quay.io mirroring and tagging.

The promotion now:
(1) mirrors to quay.io/openshift/ci using oc image mirror, then
(2) tags in registry.ci.openshift.org from quay-proxy.ci.openshift.org using oc tag.

/hold
/cc @Prucek @openshift/test-platform

@openshift-ci-robot
Copy link
Contributor

Pipeline controller notification
This repo is configured to use the pipeline controller. Second-stage tests will be triggered either automatically or after lgtm label is added, depending on the repository configuration. The pipeline controller will automatically detect which contexts are required and will utilize /test Prow commands to trigger the second stage.

For optional jobs, comment /test ? to see a list of all defined jobs. To trigger manually all jobs from second stage use /pipeline required command.

This repository is configured in: LGTM mode

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Dec 5, 2025
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Dec 5, 2025

@deepsm007: This pull request references DPTP-4340 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.21.0" version, but no target version was set.

Details

In response to this:

Removes the direct mirroring step to registry.ci.openshift.org and consolidates promotion into a single step that handles both quay.io mirroring and tagging.

The promotion now:
(1) mirrors to quay.io/openshift/ci using oc image mirror, then
(2) tags in registry.ci.openshift.org from quay-proxy.ci.openshift.org using oc tag.

/hold
/cc @Prucek @openshift/test-platform

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.

@coderabbitai
Copy link

coderabbitai bot commented Dec 5, 2025

Walkthrough

Removed the generic promotion step and eliminated the -quay suffix from promotion/mirror target names across promotion logic, tests, and promotion script fixtures; adjusted tag-vs-image classification for promotion pod generation and updated corresponding unit tests and YAML fixtures.

Changes

Cohort / File(s) Change Summary
Defaults
pkg/defaults/defaults.go, pkg/defaults/defaults_test.go
Removed registration/creation of a generic [promotion] step; tests now expect only the quay-specific promotion post-step ([promotion-quay]).
Promotion API
pkg/api/promotion.go, pkg/api/promotion_test.go
Dropped -quay suffix from proxy target formatting (targets now use namespace/name:tag); updated tests' expected keys accordingly.
Promotion step logic
pkg/steps/release/promote.go, pkg/steps/release/promote_test.go
Changed heuristic for classifying targets as tags vs images to detect quay-proxy hosts instead of -quay:; removed -quay from generated target names and updated tests.
Promotion fixtures
pkg/steps/release/testdata/..._promotion_quay.yaml, pkg/steps/release/testdata/..._promotion_quay_multiple_tags.yaml
Updated bash promotion scripts and tag destinations to remove -quay suffix and to use the new naming convention for tag targets.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Comment @coderabbitai help to get the list of available commands and usage tips.

@openshift-ci openshift-ci bot requested review from a team and Prucek December 5, 2025 17:00
@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 5, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 5, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deepsm007

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 5, 2025
@deepsm007
Copy link
Contributor Author

/pipeline required

@openshift-ci-robot
Copy link
Contributor

Scheduling required tests:
/test e2e

Scheduling tests matching the pipeline_run_if_changed or not excluded by pipeline_skip_if_only_changed parameters:
/test integration-optional-test

@Prucek
Copy link
Member

Prucek commented Dec 12, 2025

when we merge this only the X.Y-quay IS will stay, is that what we want? Or do we want the current X.Y IS to use QCI images https://github.com/openshift/ci-tools/blob/main/pkg/api/promotion.go#L114

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 6, 2026

@deepsm007: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/images 778e4f1 link true /test images
ci/prow/breaking-changes 778e4f1 link false /test breaking-changes

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

@deepsm007
Copy link
Contributor Author

/test images

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants