Skip to content

CM-1223: [cert-manager-operator] run TLS profile e2e tests in tls-scanner job - #83634

Merged
openshift-merge-bot[bot] merged 1 commit into
openshift:mainfrom
chiragkyal:cm-tls-profile
Aug 20, 2026
Merged

CM-1223: [cert-manager-operator] run TLS profile e2e tests in tls-scanner job#83634
openshift-merge-bot[bot] merged 1 commit into
openshift:mainfrom
chiragkyal:cm-tls-profile

Conversation

@chiragkyal

@chiragkyal chiragkyal commented Aug 19, 2026

Copy link
Copy Markdown
Member

Summary

Add a test-tls-profile step to the tls-scanner job that runs the Feature:TLSProfile e2e suite on the standalone AWS cluster. The tls-13 step already enables the TLSAdherence feature gate and stabilizes the cluster before this step runs, and AfterAll restores the original apiserver state so tls-scanner-run is unaffected.

Exclude Feature:TLSProfile from the e2e-operator-tech-preview job to prevent the suite from being scheduled on HyperShift, where apiserver/cluster is immutable and the tests would always skip.

Context

The techpreview jobs are running in a HyperShift Cluster, where the apiserver.config.openshift.io/cluster object is immutable from inside the guest cluster.

apiserver tlsAdherence field not available on this cluster: apiservers.config.openshift.io "cluster" is forbidden: ValidatingAdmissionPolicy 'config' with binding 'config-binding' denied request: This resource cannot be created, updated, or deleted. Please ask your administrator to modify the resource in the HostedCluster object

So to run these tests need would need a standalone OCP cluster with TechPreviewNoUpgrade FeatureSet enabled.

See: openshift/cert-manager-operator#449 (comment)

Summary by CodeRabbit

  • Updates OpenShift CI for cert-manager-operator.
  • Adds a test-tls-profile step to the tls-scanner job for Feature:TLSProfile tests on standalone AWS clusters.
  • Excludes Feature:TLSProfile from e2e-operator-tech-preview because HyperShift clusters cannot modify apiserver/cluster.
  • Limits TLS profile tests to clusters with TechPreviewNoUpgrade enabled.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Aug 19, 2026
@openshift-ci-robot

openshift-ci-robot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

@chiragkyal: This pull request references CM-1223 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 "5.1.0" version, but no target version was set.

Details

In response to this:

Summary

Add a test-tls-profile step to the tls-scanner job that runs the Feature:TLSProfile e2e suite on the standalone AWS cluster. The tls-13 step already enables the TLSAdherence feature gate and stabilizes the cluster before this step runs, and AfterAll restores the original apiserver state so tls-scanner-run is unaffected.

Exclude Feature:TLSProfile from the e2e-operator-tech-preview job to prevent the suite from being scheduled on HyperShift, where apiserver/cluster is immutable and the tests would always skip.

Context

The techpreview jobs are running in a HyperShift Cluster, where the apiserver.config.openshift.io/cluster object is immutable from inside the guest cluster.

apiserver tlsAdherence field not available on this cluster: apiservers.config.openshift.io "cluster" is forbidden: ValidatingAdmissionPolicy 'config' with binding 'config-binding' denied request: This resource cannot be created, updated, or deleted. Please ask your administrator to modify the resource in the HostedCluster object

So to run these tests need would need a standalone OCP cluster with TechPreviewNoUpgrade FeatureSet enabled.

See: openshift/cert-manager-operator#449 (comment)

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.

@openshift-ci
openshift-ci Bot requested review from bharath-b-rh and swghosh August 19, 2026 07:33
@coderabbitai

coderabbitai Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

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: afc01e93-aa19-48d2-a1ef-3ba69e0e2a6e

📥 Commits

Reviewing files that changed from the base of the PR and between 16a94ea and 19eb289.

📒 Files selected for processing (1)
  • ci-operator/config/openshift/cert-manager-operator/openshift-cert-manager-operator-master.yaml
🚧 Files skipped from review as they are similar to previous changes (1)
  • ci-operator/config/openshift/cert-manager-operator/openshift-cert-manager-operator-master.yaml

Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review.


Walkthrough

The CI configuration excludes Feature:TLSProfile tests from the general tech-preview step and adds a dedicated TLS scanner step for these tests with CPU and memory requests.

Changes

TLSProfile testing

Layer / File(s) Summary
Route TLSProfile tests to the TLS scanner step
ci-operator/config/openshift/cert-manager-operator/openshift-cert-manager-operator-master.yaml
The general tech-preview filter excludes Feature:TLSProfile. The TLS scanner workflow runs the TLSProfile tests in a dedicated test-tls-profile step with resource requests.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Merge Risk: ⚪ Minimal · up to 19eb2

This localized CI configuration change adds TLS profile coverage to the intended standalone-cluster job and excludes an incompatible environment; no actionable merge-blocking risk remains after normal checks and review.

Suggested reviewers: swghosh

🚥 Pre-merge checks | ✅ 15
✅ Passed checks (15 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the cert-manager operator change to run TLS profile end-to-end tests in the tls-scanner job.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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 The diff adds only static CI configuration: test-tls-profile and Feature:TLSProfile filters. It adds no Ginkgo title or dynamic test-name expression.
Test Structure And Quality ✅ Passed The PR changes only CI YAML: it adds a filtered e2e step and excludes a label; no Ginkgo It blocks, assertions, resource setup, or waits were introduced.
Microshift Test Compatibility ✅ Passed The commit changes only CI YAML and adds no Ginkgo It, Describe, Context, or When declarations; the MicroShift test-compatibility check is therefore inapplicable.
Single Node Openshift (Sno) Test Compatibility ✅ Passed The commit changes only one CI YAML file; it adds no Ginkgo test declarations or topology-dependent test code, so the SNO compatibility check is not applicable.
Topology-Aware Scheduling Compatibility ✅ Passed The diff changes only CI label filters and adds a test step with CPU/memory requests; it adds no affinity, selectors, spread constraints, replicas, tolerations, or PDBs.
Ote Binary Stdout Contract ✅ Passed The commit changes only one YAML CI configuration: label filters and a test step. It adds no OTE binary or process-level stdout write.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed The diff changes only CI YAML filters and an existing make test-e2e invocation; it adds no Ginkgo tests, IPv4 literals, or external connectivity code.
No-Weak-Crypto ✅ Passed The complete PR diff changes only CI label filtering and adds a TLSProfile e2e command; it introduces no MD5, SHA1, DES, RC4, 3DES, Blowfish, ECB, custom crypto, or secret comparisons.
Container-Privileges ✅ Passed The patch changes only label filters and a test step with CPU/memory requests; no privileged, host namespace, SYS_ADMIN, root, or allowPrivilegeEscalation settings were added.
No-Sensitive-Data-In-Logs ✅ Passed The diff only adds a TLSProfile test command, label exclusion, and resource requests; it introduces no logging statements or sensitive values such as passwords, tokens, keys, PII, or hostnames.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@chiragkyal

Copy link
Copy Markdown
Member Author

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@chiragkyal: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-ci

openshift-ci Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

@chiragkyal: The following test 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/rehearse/openshift/cert-manager-operator/master/tls-scanner ed6aa4c link unknown /pj-rehearse pull-ci-openshift-cert-manager-operator-master-tls-scanner

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.

@chiragkyal

Copy link
Copy Markdown
Member Author

pj-rehearse result: The new step fired correctly — 1 of 175 specs matched the label filter. The test skipped due to a discriminated union bug in the current main branch test code (patching {type: Modern} without the required modern: {} sub-object). This is expected since pj-rehearse runs against main, not the feature branch. The overall step run had passed (0 failures).

So I think as far as these PR changes are concerned, we are good.

@bharath-b-rh bharath-b-rh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci Bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 20, 2026
Add a test-tls-profile step to the tls-scanner job that runs the
Feature:TLSProfile e2e suite on the standalone AWS cluster. The tls-13
step already enables the TLSAdherence feature gate and stabilizes the
cluster before this step runs, and AfterAll restores the original
apiserver state so tls-scanner-run is unaffected.

Exclude Feature:TLSProfile from the e2e-operator-tech-preview job to
prevent the suite from being scheduled on HyperShift, where
apiserver/cluster is immutable and the tests would always skip.

Signed-off-by: chiragkyal <ckyal@redhat.com>
@openshift-ci openshift-ci Bot removed the lgtm Indicates that a PR is ready to be merged. label Aug 20, 2026
@coderabbitai

coderabbitai Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@chiragkyal

Copy link
Copy Markdown
Member Author

/pj-rehearse ack

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@chiragkyal: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-merge-bot openshift-merge-bot Bot added the rehearsals-ack Signifies that rehearsal jobs have been acknowledged label Aug 20, 2026
@bharath-b-rh

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Aug 20, 2026
@openshift-ci

openshift-ci Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bharath-b-rh, chiragkyal

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-merge-bot openshift-merge-bot Bot removed the rehearsals-ack Signifies that rehearsal jobs have been acknowledged label Aug 20, 2026
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@chiragkyal: the pj-rehearse plugin accommodates running rehearsal tests for the changes in this PR. Expand 'Interacting with pj-rehearse' for usage details. The following rehearsable tests have been affected by this change:

Test name Repo Type Reason
pull-ci-openshift-cert-manager-operator-master-e2e-operator-tech-preview openshift/cert-manager-operator presubmit Ci-operator config changed
pull-ci-openshift-cert-manager-operator-master-tls-scanner openshift/cert-manager-operator presubmit Ci-operator config changed
Interacting with pj-rehearse

Comment: /pj-rehearse to run up to 5 rehearsals
Comment: /pj-rehearse skip to opt-out of rehearsals
Comment: /pj-rehearse {test-name}, with each test separated by a space, to run one or more specific rehearsals
Comment: /pj-rehearse more to run up to 10 rehearsals
Comment: /pj-rehearse max to run up to 25 rehearsals
Comment: /pj-rehearse auto-ack to run up to 5 rehearsals, and add the rehearsals-ack label on success
Comment: /pj-rehearse list to get an up-to-date list of affected jobs
Comment: /pj-rehearse abort to abort all active rehearsals
Comment: /pj-rehearse network-access-allowed to allow rehearsals of tests that have the restrict_network_access field set to false. This must be executed by an openshift org member who is not the PR author

Once you are satisfied with the results of the rehearsals, comment: /pj-rehearse ack to unblock merge. When the rehearsals-ack label is present on your PR, merge will no longer be blocked by rehearsals.
If you would like the rehearsals-ack label removed, comment: /pj-rehearse reject to re-block merging.

@chiragkyal

Copy link
Copy Markdown
Member Author

/pj-rehearse ack

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@chiragkyal: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-merge-bot openshift-merge-bot Bot added the rehearsals-ack Signifies that rehearsal jobs have been acknowledged label Aug 20, 2026
@openshift-merge-bot
openshift-merge-bot Bot merged commit c316b79 into openshift:main Aug 20, 2026
14 checks passed
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. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. rehearsals-ack Signifies that rehearsal jobs have been acknowledged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants