Skip to content

test(e2e): pin the sidecar test image instead of fedora:latest - #1503

Open
AdamSaleh wants to merge 1 commit into
redhat-developer:masterfrom
rh-gitops-release-qa:pin-sidecar-test-image
Open

AdamSaleh wants to merge 1 commit into
redhat-developer:masterfrom
rh-gitops-release-qa:pin-sidecar-test-image

Conversation

@AdamSaleh

Copy link
Copy Markdown
Member

What: the CMP and sidecar tests (1-070, 1-108, 1-109, 1-113, 1-114) now use fixture.SidecarImage instead of quay.io/fedora/fedora:latest. The new image is registry.access.redhat.com/ubi9/ubi-minimal, ubi-minimal 9.8, pinned by its multi-arch manifest-list digest.

Why: :latest with imagePullPolicy: Always means an outside image rebuild can change a test result.

  • fedora:latest was rebuilt as Fedora 45 on 2026-11-05.
  • That same day, 1-070 failed on a 4.21 FIPS cluster during 1.21.8 release testing.
    • The cmp sidecar, which runs argocd-cmp-server copied from the Argo CD image, went into CrashLoopBackOff.
    • The main repo-server container was healthy.
    • The test passed on the same FIPS setup on 2026-11-02.
  • We haven't proven the Fedora rebuild is the cause, because the cmp container log wasn't captured. Either way, pinning separates image churn from product changes.

Why UBI 9: it's the base the Argo CD binaries are built on, so argocd-cmp-server runs on the userland and OpenSSL it was built for. That matters on FIPS clusters, and it's closer to what customers run. The CMP plugin only needs sh, which ubi-minimal has.

Testing: go vet and gofmt pass on the fixture and parallel packages. I'll rerun 1-070 on a FIPS cluster with this change and post the result here.

Follow-up: the argocd-operator/tests/ginkgo/parallel/ copies of these tests and the nginx-unprivileged:latest users are unchanged.

🤖 Generated with Claude Code

https://claude.ai/code/session_014eLYgsb7g4QzJy477gPouC

The CMP and sidecar tests (1-070, 1-108, 1-109, 1-113, 1-114) ran
quay.io/fedora/fedora:latest with imagePullPolicy Always, so every
rebuild of that tag could change their result. fedora:latest moved to
Fedora 45 on 2026-11-05, and 1-070 started failing on a FIPS cluster
that day: the cmp sidecar, which runs argocd-cmp-server copied from
the Argo CD image, went into CrashLoopBackOff. It passed on the same
FIPS setup three days earlier.

Move the image to a fixture.SidecarImage constant: UBI 9 minimal,
pinned by digest. UBI 9 is the base the Argo CD binaries are built
on, so argocd-cmp-server runs on the userland it was built for,
FIPS included, and the image now changes only when someone bumps it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014eLYgsb7g4QzJy477gPouC
Signed-off-by: Adam Saleh <adam@asaleh.net>
@coderabbitai

coderabbitai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Tests
    • Sidecar end-to-end tests now use a fixed UBI 9 minimal image instead of the latest Fedora image. This makes the image used across the tested sidecar configurations consistent and pinned to a specific version.

The fixture package adds a digest-pinned UBI 9 minimal image constant. CMP, application-controller, and server sidecar E2E tests use the constant instead of a hard-coded Fedora image.

Changes: Sidecar test image

Layer / File(s) Summary
Define and use a shared sidecar image
test/openshift/e2e/ginkgo/fixture/fixture.go, test/openshift/e2e/ginkgo/parallel/1-070_validate_config_management_plugin_test.go, test/openshift/e2e/ginkgo/parallel/1-108_validate_appcontroller_sidecar_test.go, test/openshift/e2e/ginkgo/parallel/1-109_validate_server_sidecar_test.go, test/openshift/e2e/ginkgo/parallel/1-113_validate_appcontroller_sidecar_test.go, test/openshift/e2e/ginkgo/parallel/1-114_validate_server_sidecar_test.go
The fixture defines SidecarImage as a digest-pinned UBI 9 minimal image. The sidecar tests use it for image configuration and image assertions.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: jgwest

Merge Risk: Minimal · up to 90b60

No concrete merge-blocking defect was established in the changed sidecar tests.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title "test(e2e): pin the sidecar test image instead of fedora:latest" matches the main change. The changeset replaces the unpinned quay.io/fedora/fedora:latest image with fixture.SidecarImage, a …
Description check Passed The description states the change: tests 1-070, 1-108, 1-109, 1-113, and 1-114 now use fixture.SidecarImage instead of quay.io/fedora/fedora:latest. It gives the reason (unpinned :latest with imagePul…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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.
Full details: Title check

Explanation

The title "test(e2e): pin the sidecar test image instead of fedora:latest" matches the main change. The changeset replaces the unpinned quay.io/fedora/fedora:latest image with fixture.SidecarImage, a UBI 9 minimal image pinned by digest, in the CMP and sidecar e2e tests.

Full details: Description check

Explanation

The description states the change: tests 1-070, 1-108, 1-109, 1-113, and 1-114 now use fixture.SidecarImage instead of quay.io/fedora/fedora:latest. It gives the reason (unpinned :latest with imagePullPolicy Always), the base image choice (UBI 9 ubi-minimal 9.8, pinned by digest), and the testing status. It matches the changed files.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 6 files.

Tip

🎯 Customize your risk assessments

Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

✅ Automatic approvals, with your rules

Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 432d86b and 90b60a1.

Files selected for processing: 6

  • test/openshift/e2e/ginkgo/fixture/fixture.go
  • test/openshift/e2e/ginkgo/parallel/1-070_validate_config_management_plugin_test.go
  • test/openshift/e2e/ginkgo/parallel/1-108_validate_appcontroller_sidecar_test.go
  • test/openshift/e2e/ginkgo/parallel/1-109_validate_server_sidecar_test.go
  • test/openshift/e2e/ginkgo/parallel/1-113_validate_appcontroller_sidecar_test.go
  • test/openshift/e2e/ginkgo/parallel/1-114_validate_server_sidecar_test.go
Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

@openshift-ci

openshift-ci Bot commented Nov 5, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign varshab1210 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 commented Nov 5, 2026

Copy link
Copy Markdown

@AdamSaleh: 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/v4.22-e2e 90b60a1 link true /test v4.22-e2e
ci/prow/v4.18-kuttl-parallel 90b60a1 link false /test v4.18-kuttl-parallel
ci/prow/v4.18-kuttl-sequential 90b60a1 link false /test v4.18-kuttl-sequential
ci/prow/v4.22-kuttl-sequential 90b60a1 link true /test v4.22-kuttl-sequential

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.

// SidecarImage is the off-the-shelf image the sidecar tests run (1-070 runs argocd-cmp-server in it).
// Pinned by digest so that an image rebuild cannot change test results. It is UBI 9 to match the base
// the Argo CD binaries are built on, which also matters on FIPS clusters. ubi-minimal 9.8, 2026-11-05.
SidecarImage = "registry.access.redhat.com/ubi9/ubi-minimal@sha256:4b79c93106c14ad1c234907f83441ff0e4f8d24e78426a36e159098e9f7e6fa5"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I am concerned this will become one another forgotten pinned dependency its outdated version will bite us at some point. Can we re-use some of the other images that we have to keep healthy anyway? From some of the operands, or the manager?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants