Skip to content

OTA-1870: enable built-in MCP sidecar for cluster-updates tests#3004

Open
fao89 wants to merge 1 commit into
openshift:mainfrom
fao89:OTA-1870
Open

OTA-1870: enable built-in MCP sidecar for cluster-updates tests#3004
fao89 wants to merge 1 commit into
openshift:mainfrom
fao89:OTA-1870

Conversation

@fao89

@fao89 fao89 commented Jul 14, 2026

Copy link
Copy Markdown
Member

Use operator introspection instead of explicit mcpServers config so the operator deploys the built-in MCP sidecar. Add RBAC for the sidecar to access cluster resources, and strip the RAG reference_content that the CI image lacks.

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com
Signed-off-by: Fabricio Aguiar fabricio.aguiar@gmail.com

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED

Ref: openshift/release#81342 (comment)

Summary by CodeRabbit

  • New Features

    • Enabled introspection for cluster update testing.
    • Added the required permissions setup for cluster update evaluations.
  • Bug Fixes

    • Prevented invalid automatically generated reference content from being used in cluster update tests.
    • Removed obsolete MCP server and feature gate configuration from the test setup.

Use operator introspection instead of explicit mcpServers config so the
operator deploys the built-in MCP sidecar. Add RBAC for the sidecar to
access cluster resources, and strip the RAG reference_content that the
CI image lacks.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Fabricio Aguiar <fabricio.aguiar@gmail.com>

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: 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 Jul 14, 2026
@openshift-ci-robot

openshift-ci-robot commented Jul 14, 2026

Copy link
Copy Markdown

@fao89: This pull request references OTA-1870 which is a valid jira issue.

Details

In response to this:

Use operator introspection instead of explicit mcpServers config so the operator deploys the built-in MCP sidecar. Add RBAC for the sidecar to access cluster resources, and strip the RAG reference_content that the CI image lacks.

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com
Signed-off-by: Fabricio Aguiar fabricio.aguiar@gmail.com

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED

Ref: openshift/release#81342 (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.

@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

Cluster-updates test configuration now enables introspection, removes MCP and reference-content settings, and applies the RBAC required by the evaluation suite.

Changes

Cluster-updates test flow

Layer / File(s) Summary
Cluster-updates configuration and permissions
tests/config/operator_install/olsconfig.crd.openai_cluster_updates.yaml, tests/e2e/utils/ols_installer.py, tests/scripts/test-cluster-updates.sh
Enables introspection, removes MCP feature configuration, omits generated reference content for cluster-updates tests, and applies the required openshift-lightspeed RBAC before evaluation.

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

Suggested reviewers: joaofula

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: enabling the built-in MCP sidecar for cluster-updates tests.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@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)
tests/e2e/utils/ols_installer.py (1)

144-146: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Move the new rationale out of inline comments.

The behavior is correct, but these added comments conflict with the guidance to avoid comments in code. Move the rationale into the existing Google-style docstring or use a descriptively named helper so the code remains self-documenting.

As per coding guidelines: avoid comments in code unless explicitly requested; prefer self-documenting Python.

🤖 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 `@tests/e2e/utils/ols_installer.py` around lines 144 - 146, Remove the new
inline rationale comments near the cluster_updates setup and move that
explanation into the existing Google-style docstring, or encode it through a
descriptively named helper. Preserve the behavior that strips the auto-generated
reference_content for cluster_updates tests.

Source: Coding guidelines

🤖 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 `@tests/e2e/utils/ols_installer.py`:
- Around line 144-146: Remove the new inline rationale comments near the
cluster_updates setup and move that explanation into the existing Google-style
docstring, or encode it through a descriptively named helper. Preserve the
behavior that strips the auto-generated reference_content for cluster_updates
tests.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 3b968e3e-9a69-48ac-ba8a-68fca53a048f

📥 Commits

Reviewing files that changed from the base of the PR and between 6578cfb and 0b72746.

📒 Files selected for processing (3)
  • tests/config/operator_install/olsconfig.crd.openai_cluster_updates.yaml
  • tests/e2e/utils/ols_installer.py
  • tests/scripts/test-cluster-updates.sh

@openshift-ci
openshift-ci Bot requested review from bparees and tisnik July 14, 2026 15:05
@openshift-ci

openshift-ci Bot commented Jul 14, 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 onmete 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

@fao89

fao89 commented Jul 14, 2026

Copy link
Copy Markdown
Member Author

/cc @JoaoFula

@openshift-ci
openshift-ci Bot requested a review from JoaoFula July 14, 2026 15:06
@openshift-ci

openshift-ci Bot commented Jul 14, 2026

Copy link
Copy Markdown

@fao89: 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/prow/e2e-ols-cluster 0b72746 link true /test e2e-ols-cluster

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.

@JoaoFula

Copy link
Copy Markdown
Contributor

/lgtm

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

xrajesh commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

/override "Red Hat Konflux / lightspeed-service-on-pull-request"
/override "Red Hat Konflux / ols-enterprise-contract / lightspeed-service"

@openshift-ci

openshift-ci Bot commented Jul 20, 2026

Copy link
Copy Markdown

@xrajesh: Overrode contexts on behalf of xrajesh: Red Hat Konflux / lightspeed-service-on-pull-request, Red Hat Konflux / ols-enterprise-contract / lightspeed-service

Details

In response to this:

/override "Red Hat Konflux / lightspeed-service-on-pull-request"
/override "Red Hat Konflux / ols-enterprise-contract / lightspeed-service"

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.

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

Labels

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants