Skip to content

Deduplicate and use the jessie image#31281

Open
jacobsee wants to merge 1 commit into
openshift:mainfrom
jacobsee:fix-jessie-updated
Open

Deduplicate and use the jessie image#31281
jacobsee wants to merge 1 commit into
openshift:mainfrom
jacobsee:fix-jessie-updated

Conversation

@jacobsee

@jacobsee jacobsee commented Jun 10, 2026

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Bug Fixes
    • Prevented duplicate image mirror entries by deduplicating injected mappings against existing generated mappings.
    • Injection now skips adding mappings when equivalent destination references are already present.
    • Mirrored-mode output formatting for source/destination mappings was adjusted for consistency.
    • Updated the default test image reference used in generated mappings to a newer compatible image.

@openshift-merge-bot

Copy link
Copy Markdown
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: automatic mode

@coderabbitai

coderabbitai Bot commented Jun 10, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: 16a196c7-f1e5-41a3-99dc-15000ad019c2

📥 Commits

Reviewing files that changed from the base of the PR and between 38b9897 and 585be7c.

⛔ Files ignored due to path filters (1)
  • test/extended/util/image/zz_generated.txt is excluded by !**/zz_generated*
📒 Files selected for processing (1)
  • pkg/cmd/openshift-tests/images/images_command.go
🚧 Files skipped from review as they are similar to previous changes (1)
  • pkg/cmd/openshift-tests/images/images_command.go

Walkthrough

RunE now passes generated mapping lines into injectNewImages; injectNewImages builds a set of existing destination image targets from those lines, skips injecting mappings whose derived destination already exists, and changes the injected mapping to registry.k8s.io/e2e-test-images/jessie-dnsutils:1.7 with mirrored-mode “from” formatted as DefaultTestImageMirrorLocation:.

Changes

Image injection deduplication

Layer / File(s) Summary
Image injection deduplication logic and call site
pkg/cmd/openshift-tests/images/images_command.go
RunE forwards generated lines into injectNewImages; injectNewImages now accepts existingLines []string, derives existing destination image references to skip duplicates, switches the injected mapping to registry.k8s.io/e2e-test-images/jessie-dnsutils:1.7, and formats mirrored-mode “from” as DefaultTestImageMirrorLocation:<mirrorTag> before checking and emitting outputs.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • openshift/origin#31263: Both PRs modify pkg/cmd/openshift-tests/images/images_command.go around the injectNewImages helper and its hardcoded image→mirror mapping.

Suggested labels

e2e-images-update

Suggested reviewers

  • sjenning
🚥 Pre-merge checks | ✅ 14 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (14 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main changes: deduplicating image mappings and switching to the jessie-dnsutils image variant.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed PR #31281 changes only images_command.go and zz_generated.txt; neither contains any Ginkgo test titles (It/Describe/Context/When), so no dynamic test-name strings were introduced.
Test Structure And Quality ✅ Passed PR #31281 only changes pkg/cmd/openshift-tests/images/images_command.go (no Describe/It/Eventually/Consistently); there’s no Ginkgo test code to evaluate, so the quality check is not applicable.
Microshift Test Compatibility ✅ Passed PR #31281 changes only images_command.go and test/extended/util/image/zz_generated.txt; no new Ginkgo e2e tests added or forbidden MicroShift API usage introduced.
Single Node Openshift (Sno) Test Compatibility ✅ Passed PR changes pkg/cmd/openshift-tests/images/images_command.go (mirror-image injection); no Ginkgo It/Describe/Context/When tests are present/updated, so SNO test-compat check is not applicable.
Topology-Aware Scheduling Compatibility ✅ Passed PR change is in pkg/cmd/openshift-tests/images/images_command.go; code only deduplicates mirror image mappings and contains no scheduling constraints/affinity/topologySpread/node-role logic.
Ote Binary Stdout Contract ✅ Passed In pkg/cmd/openshift-tests/images/images_command.go, the only stdout writes are fmt.Fprintln(os.Stdout, ...) inside NewImagesCommand’s RunE closure; no main/init/TestMain/BeforeSuite/RunSpecs setup...
Ipv6 And Disconnected Network Test Compatibility ✅ Passed PR change is in pkg/cmd/openshift-tests/images/images_command.go; it contains no Ginkgo e2e constructs (no It/Describe/Context/When), so no IPv4/external-connectivity test assumptions to flag.
No-Weak-Crypto ✅ Passed PR only adjusts image-mirror mapping logic in images_command.go; searches of the changed file/diff found no MD5/SHA1/DES/RC4/3DES/Blowfish/ECB, crypto usage, or constant-time comparisons.
Container-Privileges ✅ Passed PR changes are limited to pkg/cmd/openshift-tests/images/images_command.go (no YAML/JSON references to jessie tags); that file contains no hostPID/hostNetwork/hostIPC/SYS_ADMIN/allowPrivilegeEscala...
No-Sensitive-Data-In-Logs ✅ Passed In pkg/cmd/openshift-tests/images/images_command.go, there are no klog/log/fmt logging calls, and no sensitive keywords appear in any log context (only comments/strings).

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@jacobsee jacobsee force-pushed the fix-jessie-updated branch from cb9e906 to bfde97d Compare June 10, 2026 20:23
@openshift-ci openshift-ci Bot requested review from deads2k and sjenning June 10, 2026 20:24
@openshift-ci openshift-ci Bot added the ready-for-human-review Indicates a PR has been reviewed by automated tools and is ready for human review label Jun 10, 2026
@jacobsee jacobsee force-pushed the fix-jessie-updated branch 2 times, most recently from a5d5a70 to 38b9897 Compare June 10, 2026 20:57
@openshift-ci

openshift-ci Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: jacobsee
Once this PR has been reviewed and has the lgtm label, please assign bertinatto for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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 e2e-images-update Related to images used by e2e tests label Jun 10, 2026
@jacobsee

Copy link
Copy Markdown
Member Author

/test go-verify-deps

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Scheduling required tests:
/test e2e-aws-csi
/test e2e-aws-ovn-fips
/test e2e-aws-ovn-microshift
/test e2e-aws-ovn-microshift-serial
/test e2e-aws-ovn-serial-1of2
/test e2e-aws-ovn-serial-2of2
/test e2e-gcp-csi
/test e2e-gcp-ovn
/test e2e-gcp-ovn-upgrade
/test e2e-metal-ipi-ovn-ipv6
/test e2e-vsphere-ovn
/test e2e-vsphere-ovn-upi

@jubittajohn

Copy link
Copy Markdown
Contributor

/retest

4 similar comments
@jacobsee

Copy link
Copy Markdown
Member Author

/retest

@jacobsee

Copy link
Copy Markdown
Member Author

/retest

@jacobsee

Copy link
Copy Markdown
Member Author

/retest

@jacobsee

Copy link
Copy Markdown
Member Author

/retest

@openshift-trt

openshift-trt Bot commented Jun 11, 2026

Copy link
Copy Markdown

Job Failure Risk Analysis for sha: 38b9897

Job Name Failure Risk
pull-ci-openshift-origin-main-e2e-aws-ovn-microshift High
install should succeed: other
This test has passed 99.40% of 3851 runs on release 5.0 [Overall] in the last week.

@jubittajohn

Copy link
Copy Markdown
Contributor

/retest

1 similar comment
@jubittajohn

Copy link
Copy Markdown
Contributor

/retest

@jubittajohn

Copy link
Copy Markdown
Contributor

/payload-job-with-prs periodic-ci-openshift-release-main-nightly-5.0-e2e-metal-ipi-upgrade-ovn-ipv6 openshift/kubernetes#2653
/payload-job-with-prs periodic-ci-openshift-release-main-nightly-5.0-e2e-metal-ipi-ovn-dualstack-techpreview openshift/kubernetes#2653

@openshift-ci

openshift-ci Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

@jubittajohn: given command is invalid: at least one of the commands given is only supported on a one-command-per-comment basis, please separate out commands as multiple comments

@jubittajohn

Copy link
Copy Markdown
Contributor

/payload-job-with-prs periodic-ci-openshift-release-main-nightly-5.0-e2e-metal-ipi-upgrade-ovn-ipv6 openshift/kubernetes#2653

@openshift-ci

openshift-ci Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

@jubittajohn: it appears that you have attempted to use some version of the payload command, but your comment was incorrectly formatted and cannot be acted upon. See the docs for usage info.

@jubittajohn

Copy link
Copy Markdown
Contributor

/payload-job-with-prs periodic-ci-openshift-release-main-nightly-5.0-e2e-metal-ipi-upgrade-ovn-ipv6 openshift/kubernetes#2653

@openshift-ci

openshift-ci Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

@jubittajohn: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-main-nightly-5.0-e2e-metal-ipi-upgrade-ovn-ipv6

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/a8be8100-658c-11f1-90e1-908e8b79b792-0

@jubittajohn

Copy link
Copy Markdown
Contributor

/payload-job-with-prs periodic-ci-openshift-release-main-nightly-5.0-e2e-metal-ipi-ovn-dualstack-techpreview openshift/kubernetes#2653

@openshift-ci

openshift-ci Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

@jubittajohn: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-main-nightly-5.0-e2e-metal-ipi-ovn-dualstack-techpreview

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/c0a3c0a0-658c-11f1-9a97-5ff445dfa789-0

@jacobsee jacobsee force-pushed the fix-jessie-updated branch from 38b9897 to 585be7c Compare June 11, 2026 18:20
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Scheduling required tests:
/test e2e-aws-csi
/test e2e-aws-ovn-fips
/test e2e-aws-ovn-microshift
/test e2e-aws-ovn-microshift-serial
/test e2e-aws-ovn-serial-1of2
/test e2e-aws-ovn-serial-2of2
/test e2e-gcp-csi
/test e2e-gcp-ovn
/test e2e-gcp-ovn-upgrade
/test e2e-metal-ipi-ovn-ipv6
/test e2e-vsphere-ovn
/test e2e-vsphere-ovn-upi

@jacobsee

Copy link
Copy Markdown
Member Author

/retest

2 similar comments
@jacobsee

Copy link
Copy Markdown
Member Author

/retest

@jacobsee

Copy link
Copy Markdown
Member Author

/retest

@openshift-ci

openshift-ci Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

@jacobsee: all tests passed!

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.

@openshift-trt

openshift-trt Bot commented Jun 12, 2026

Copy link
Copy Markdown

Job Failure Risk Analysis for sha: 585be7c

Job Name Failure Risk
pull-ci-openshift-origin-main-e2e-metal-ipi-ovn-ipv6 Low
[Feature:NetworkSegmentation][ovn-kubernetes-ote][sig-network] Network Segmentation: services on a user defined primary network should be reachable through their cluster IP, node port and load balancer L2 primary UDN with custom network, cluster-networked pods, NodePort service [Suite:openshift/conformance/parallel]
This test has passed 0.00% of 1 runs on release 5.0 [Architecture:amd64 FeatureSet:default Installer:ipi JobTier:standard Network:ovn NetworkStack:ipv6 OS:rhcos9 Owner:eng Platform:metal Procedure:none SecurityMode:default Topology:ha Upgrade:micro] in the last week.

@jubittajohn

Copy link
Copy Markdown
Contributor

/payload-job-with-prs periodic-ci-openshift-release-main-nightly-5.0-e2e-metal-ipi-upgrade-ovn-ipv6 openshift/kubernetes#2653
/payload-job-with-prs periodic-ci-openshift-release-main-nightly-5.0-e2e-metal-ipi-ovn-dualstack-techpreview openshift/kubernetes#2653

@openshift-ci

openshift-ci Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

@jubittajohn: given command is invalid: at least one of the commands given is only supported on a one-command-per-comment basis, please separate out commands as multiple comments

@openshift-ci

openshift-ci Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

@jubittajohn: An error was encountered. No known errors were detected, please see the full error message for details.

Full error message. unable to get additional pr info from string: periodic-ci-openshift-release-main-nightly-5.0-e2e-metal-ipi-upgrade-ovn-ipv6: string: periodic-ci-openshift-release-main-nightly-5.0-e2e-metal-ipi-upgrade-ovn-ipv6 doesn't match expected format: org/repo#number

Please contact an administrator to resolve this issue.

@jubittajohn

Copy link
Copy Markdown
Contributor

/payload-job-with-prs periodic-ci-openshift-release-main-nightly-5.0-e2e-metal-ipi-upgrade-ovn-ipv6 openshift/kubernetes#2653
/payload-job-with-prs periodic-ci-openshift-release-main-nightly-5.0-e2e-metal-ipi-ovn-dualstack-techpreview openshift/kubernetes#2653

@openshift-ci

openshift-ci Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

@jubittajohn: An error was encountered. No known errors were detected, please see the full error message for details.

Full error message. unable to get additional pr info from string: /payload-job-with-prs: string: /payload-job-with-prs doesn't match expected format: org/repo#number

Please contact an administrator to resolve this issue.

@jubittajohn

Copy link
Copy Markdown
Contributor

/payload-job-with-prs periodic-ci-openshift-release-main-nightly-5.0-e2e-metal-ipi-ovn-dualstack-techpreview openshift/kubernetes#2653
/payload-job-with-prs periodic-ci-openshift-release-main-nightly-5.0-e2e-metal-ipi-upgrade-ovn-ipv6 openshift/kubernetes#2653

@openshift-ci

openshift-ci Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

@jubittajohn: given command is invalid: at least one of the commands given is only supported on a one-command-per-comment basis, please separate out commands as multiple comments

@jubittajohn

Copy link
Copy Markdown
Contributor

/payload-job-with-prs periodic-ci-openshift-release-main-nightly-5.0-e2e-metal-ipi-ovn-dualstack-techpreview openshift/kubernetes#2653

@openshift-ci

openshift-ci Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

@jubittajohn: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-main-nightly-5.0-e2e-metal-ipi-ovn-dualstack-techpreview

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/08c491c0-6646-11f1-81d7-25c65b7ec43f-0

@jubittajohn

Copy link
Copy Markdown
Contributor

/payload-job-with-prs periodic-ci-openshift-release-main-nightly-5.0-e2e-metal-ipi-upgrade-ovn-ipv6 openshift/kubernetes#2653

@openshift-ci

openshift-ci Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

@jubittajohn: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command

  • periodic-ci-openshift-release-main-nightly-5.0-e2e-metal-ipi-upgrade-ovn-ipv6

See details on https://pr-payload-tests.ci.openshift.org/runs/ci/0fec8a20-6646-11f1-80d7-36b35e401869-0

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

Labels

e2e-images-update Related to images used by e2e tests ready-for-human-review Indicates a PR has been reviewed by automated tools and is ready for human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants