Skip to content

Temporary 1.36 image fixes (revert in rebase PR)#31263

Open
jacobsee wants to merge 1 commit into
openshift:mainfrom
jacobsee:temp-fix-1.36-dnsutils-image
Open

Temporary 1.36 image fixes (revert in rebase PR)#31263
jacobsee wants to merge 1 commit into
openshift:mainfrom
jacobsee:temp-fix-1.36-dnsutils-image

Conversation

@jacobsee

@jacobsee jacobsee commented Jun 5, 2026

Copy link
Copy Markdown
Member

Temporarily map the glibc-dns-testing image to jessie-dnsutils while we're payload testing 1.36 before the openshift/origin PR has merged. Should be reverted when that happens.

Summary by CodeRabbit

  • New Features
    • The images command now appends extra image mirror mappings to its output. The added mappings target test images and adapt their output format depending on whether upstream or mirrored mode is selected, ensuring correct source/target representation for mirror workflows.

@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 5, 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: 21ce4e08-c0d8-4801-aaff-063aa06455db

📥 Commits

Reviewing files that changed from the base of the PR and between ae82451 and 64e79b7.

⛔ 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

The PR appends a hardcoded glibc-dns-testing image mirror mapping to the images command output by calling a new helper that returns sorted, conditionally-formatted mapping lines, which are printed after the main mirror list.

Changes

Image Mirror Injection

Layer / File(s) Summary
Image mirror injection integration and helper
pkg/cmd/openshift-tests/images/images_command.go
The command now calls injectNewImages(ref, !o.Upstream) to append hardcoded glibc-dns-testing image mirror mappings. The new unexported helper constructs a fixed source→mirrorTag map, formats lines differently when mirrored is true (using the configured test image mirror as the "from" image) versus false (using the upstream image as "from" and mirror tag as "to"), sorts the lines, and returns them for printing.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 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 change: adding temporary image fixes for version 1.36 that will be reverted later, which matches the PR's purpose of temporarily mapping the glibc-dns-testing image.
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 modifies only CLI command code (images_command.go) with no Ginkgo tests present, so the stable test names check is not applicable.
Test Structure And Quality ✅ Passed PR modifies only pkg/cmd/openshift-tests/images/images_command.go, a CLI command file without Ginkgo test patterns. The custom check applies to Ginkgo test code only.
Microshift Test Compatibility ✅ Passed No new Ginkgo e2e tests (It, Describe, Context, When) were added. PR only modifies images_command.go with infrastructure changes to image mirror mapping, not test definitions.
Single Node Openshift (Sno) Test Compatibility ✅ Passed No Ginkgo e2e tests added. PR modifies only a CLI image mirroring utility (images_command.go), not test code.
Topology-Aware Scheduling Compatibility ✅ Passed PR modifies a test utility command (images_command.go) that generates image mirror mappings. No deployment manifests, operator code, or scheduling constraints are introduced.
Ote Binary Stdout Contract ✅ Passed PR modifies images command's RunE handler (Cobra subcommand), which is not process-level code. Check only applies to main(), init(), TestMain(), BeforeSuite(), etc. - none modified here.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed No new Ginkgo e2e tests (It, Describe, Context, When, etc.) are added. This PR modifies a command utility module to inject image mirror mappings; the check is not applicable.
No-Weak-Crypto ✅ Passed No weak crypto (MD5, SHA1, DES, RC4, 3DES, Blowfish, ECB), custom implementations, or non-constant-time secret comparisons found. Code only manages image mirror mappings.
Container-Privileges ✅ Passed PR modifies only Go utility code for image mirroring; no K8s manifests with container privilege settings found.
No-Sensitive-Data-In-Logs ✅ Passed No sensitive data exposed in logs. The injectNewImages() function outputs only public Kubernetes container registry URLs and generated mirror tags—no passwords, tokens, API keys, PII, or credentials.

✏️ 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.

@openshift-ci openshift-ci Bot requested review from bertinatto and sjenning June 5, 2026 23:26
@openshift-ci openshift-ci Bot added the e2e-images-update Related to images used by e2e tests label Jun 5, 2026
@openshift-ci

openshift-ci Bot commented Jun 5, 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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
pkg/cmd/openshift-tests/images/images_command.go (1)

104-108: ⚡ Quick win

Consider maintaining global sort order for the complete output.

The main mirror list is sorted at line 276, but the injected lines are sorted separately and appended afterward. This results in two sorted chunks rather than a globally sorted output. While the current grep-based consumers (e.g., hack/update-generated.sh) should handle this, tools expecting fully sorted mirror mappings may be affected.

♻️ Merge and sort all lines together
-		for _, line := range lines {
-			fmt.Fprintln(os.Stdout, line)
-		}
-
 		// TODO(k8s-1.36): remove this when k8s 1.36 lands
 		injectedLines := injectNewImages(ref, !o.Upstream)
-		for _, line := range injectedLines {
-			fmt.Fprintln(os.Stdout, line)
-		}
+		lines = append(lines, injectedLines...)
+		sort.Strings(lines)
+
+		for _, line := range lines {
+			fmt.Fprintln(os.Stdout, line)
+		}
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/cmd/openshift-tests/images/images_command.go` around lines 104 - 108, The
injected lines are generated by injectNewImages into injectedLines and printed
immediately (fmt.Fprintln(os.Stdout,...)), which causes two separately-sorted
chunks; instead, append injectedLines into the main list of mirror lines before
the global sort step and perform a single sort so the entire output is globally
ordered; modify the code path that currently prints injectedLines to return or
append those strings to the existing slice used for the main mirror list sorting
and then call the same sort and final output writer (instead of printing early)
so the combined slice is sorted and emitted together.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@pkg/cmd/openshift-tests/images/images_command.go`:
- Around line 104-108: The injected lines are generated by injectNewImages into
injectedLines and printed immediately (fmt.Fprintln(os.Stdout,...)), which
causes two separately-sorted chunks; instead, append injectedLines into the main
list of mirror lines before the global sort step and perform a single sort so
the entire output is globally ordered; modify the code path that currently
prints injectedLines to return or append those strings to the existing slice
used for the main mirror list sorting and then call the same sort and final
output writer (instead of printing early) so the combined slice is sorted and
emitted together.

ℹ️ Review info
⚙️ Run configuration

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

Review profile: CHILL

Plan: Enterprise

Run ID: 2a715230-9b0f-4594-8386-3806b27b1c90

📥 Commits

Reviewing files that changed from the base of the PR and between b1497b7 and ae82451.

⛔ 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

@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 5, 2026
@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

@openshift-trt

openshift-trt Bot commented Jun 6, 2026

Copy link
Copy Markdown

Job Failure Risk Analysis for sha: ae82451

Job Name Failure Risk
pull-ci-openshift-origin-main-e2e-metal-ipi-ovn-ipv6 IncompleteTests
Tests for this run (74) are below the historical average (3269): IncompleteTests (not enough tests ran to make a reasonable risk analysis; this could be due to infra, installation, or upgrade problems)

…ng 1.36 before the openshift/origin PR has merged.
@jacobsee jacobsee force-pushed the temp-fix-1.36-dnsutils-image branch from ae82451 to 64e79b7 Compare June 8, 2026 21:31
@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

jacobsee commented Jun 9, 2026

Copy link
Copy Markdown
Member Author

/test e2e-gcp-ovn

@jacobsee

jacobsee commented Jun 9, 2026

Copy link
Copy Markdown
Member Author

/test e2e-vsphere-ovn

@openshift-ci

openshift-ci Bot commented Jun 9, 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.

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