Skip to content

OCPMCP-290: add anthropic/gemini vertex jobs - #81118

Merged
openshift-merge-bot[bot] merged 3 commits into
openshift:mainfrom
grokspawn:vertex-jobs
Jul 30, 2026
Merged

OCPMCP-290: add anthropic/gemini vertex jobs#81118
openshift-merge-bot[bot] merged 3 commits into
openshift:mainfrom
grokspawn:vertex-jobs

Conversation

@grokspawn

@grokspawn grokspawn commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Builds off #78018, but switches to a multi-step test against OCP clusters as a general framework for executing MCP evals against arbitrary models with flexible evaluation criteria. For this initial work, the evaluation success gate is not set since not all evals are currently configured to be able to be successfully executed in a downstream environment, but this is a separate issue than "can we automate it".

Summary by CodeRabbit

This PR updates OpenShift CI configuration for the MCP server to add two optional Vertex-based evaluation steps (Google Gemini and Anthropic Claude). In practical terms, it switches to a multi-step inline mcpchecker workflow so the job can access mounted credentials during the test run.

What changed

  • Updated ci-operator/config/openshift/openshift-mcp-server/openshift-openshift-mcp-server-main.yaml to add two new optional MCP checker evaluation steps:
    • mcpchecker-eval-google
    • mcpchecker-eval-anthropic
  • Each step:
    • Mounts the ocp-mcp credential (from test-credentials) at /var/run/ocp-mcp
    • Runs an inline shell script with strict mode (set -euo pipefail)
    • Sets Vertex-related environment flags:
      • Google Gemini: GOOGLE_CLOUD_LOCATION=us-east1 and GEMINI_USE_VERTEX=1
      • Anthropic Claude: GOOGLE_CLOUD_LOCATION=us-east1 and ANTHROPIC_USE_VERTEX=1
    • Points credentials to /var/run/ocp-mcp/service-account.json
    • Derives GOOGLE_CLOUD_PROJECT by parsing the mounted service account JSON via an inline python3 -c command
    • Builds and prepares the server/tooling:
      • GOFLAGS='-mod=readonly' make build
      • GOFLAGS='' make mcpchecker
      • Starts the MCP server in the background (make run-server TOOLSETS=core,config)
      • Registers a best-effort shutdown handler (trap 'make stop-server || true' EXIT)
    • Executes _output/tools/bin/mcpchecker check in JSON mode (--output json) with --label-selector suite=core
    • Uses the provided eval YAML specific to the provider (below)
    • Sets grace_period: 1m0s and resources (cpu: 500m, memory: 200Mi)

Eval suites used

  • mcpchecker-eval-google: evals/core-eval-testing/builtin-google/eval-core.yaml
  • mcpchecker-eval-anthropic: evals/core-eval-testing/builtin-anthropic/eval-core.yaml

CI impact

  • Both steps are marked optional: true, so they can be exercised without necessarily blocking the overall MCP server CI run if they fail.

@openshift-ci openshift-ci Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 25, 2026
@openshift-ci

openshift-ci Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@coderabbitai

coderabbitai Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Walkthrough

The CI config adds two optional MCP checker evaluation steps that mount ocp-mcp credentials, build and run the MCP server, and execute separate Google and Anthropic eval suites.

Changes

OpenShift MCP eval CI steps

Layer / File(s) Summary
Google eval step
ci-operator/config/openshift/openshift-mcp-server/openshift-openshift-mcp-server-main.yaml
Adds mcpchecker-eval-google, which mounts ocp-mcp, derives GOOGLE_CLOUD_PROJECT, builds and runs the MCP server, installs mcpchecker, and runs the Google eval YAML with JSON output.
Anthropic eval step
ci-operator/config/openshift/openshift-mcp-server/openshift-openshift-mcp-server-main.yaml
Adds mcpchecker-eval-anthropic, which mounts ocp-mcp, sets Anthropic Vertex usage, builds and runs the MCP server, installs mcpchecker, and runs the Anthropic eval YAML with JSON output.

Estimated code review effort: 3 (Moderate) | ~20 minutes

🚥 Pre-merge checks | ✅ 14 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Ipv6 And Disconnected Network Test Compatibility ⚠️ Warning The new mcpchecker jobs call Vertex/GCP and Anthropic-backed evals, so they need external connectivity and won’t work in disconnected IPv6 CI. IPv6 and disconnected network compatibility notice: verify these jobs in the IPv6 disconnected payload job, or gate/skip them when external API access is unavailable.
✅ Passed checks (14 passed)
Check name Status Explanation
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 No changed Ginkgo specs contain It/Describe/Context/When titles; the only new job names in YAML are static strings.
Test Structure And Quality ✅ Passed Only CI YAML changed; no Ginkgo test code was added or modified, so the test-structure check is not applicable.
Microshift Test Compatibility ✅ Passed PR only adds CI config for mcpchecker eval jobs; no new in-repo Ginkgo tests or MicroShift-unsafe APIs/assumptions were added.
Single Node Openshift (Sno) Test Compatibility ✅ Passed PASS: The PR only adds CI job YAML for mcpchecker evals; no new Ginkgo/Describe/It tests or SNO-sensitive node assumptions were added.
Topology-Aware Scheduling Compatibility ✅ Passed Only adds ci-operator test steps; no manifests, controllers, node selectors, affinities, replicas, or topology constraints.
Ote Binary Stdout Contract ✅ Passed Only a CI config YAML changed; no process-level binary code or stdout writes were added.
No-Weak-Crypto ✅ Passed The PR only adds CI YAML/shell steps; no MD5/SHA1/DES/RC4/3DES/Blowfish/ECB, custom crypto, or secret/token timing-prone comparisons were found.
Container-Privileges ✅ Passed The new ci-operator YAML only adds inline test steps with a creds mount; no privileged, hostPID/Network/IPC, SYS_ADMIN, or allowPrivilegeEscalation fields are present.
No-Sensitive-Data-In-Logs ✅ Passed PASS: The new CI steps don’t echo or print secrets; the only print is a subshell extracting project_id into a variable, not a log.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: adding Anthropic and Gemini Vertex jobs.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 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.

Inline comments:
In
`@ci-operator/config/openshift/openshift-mcp-server/openshift-openshift-mcp-server-main.yaml`:
- Around line 67-74: The eval job is masking real failures by forcing mcpchecker
to succeed with “|| true”, so update the job to preserve the actual exit status
while keeping cleanup separate. In the affected check steps for mcpchecker,
replace the inline success override with a trap-based cleanup that always runs
make stop-server, and let mcpchecker return its real status so the optional jobs
still report failures correctly.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

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

Review profile: CHILL

Plan: Enterprise

Run ID: 811f0b2c-ad67-458f-9213-c8216f02c0e5

📥 Commits

Reviewing files that changed from the base of the PR and between 6811336 and 0881c93.

⛔ Files ignored due to path filters (1)
  • ci-operator/jobs/openshift/openshift-mcp-server/openshift-openshift-mcp-server-main-presubmits.yaml is excluded by !ci-operator/jobs/**
📒 Files selected for processing (1)
  • ci-operator/config/openshift/openshift-mcp-server/openshift-openshift-mcp-server-main.yaml

@dlom

dlom commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

@grokspawn

Copy link
Copy Markdown
Contributor Author

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

@grokspawn

Copy link
Copy Markdown
Contributor Author

/hold
#81118 (comment) must be resolved before this merges.

@openshift-ci openshift-ci Bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 26, 2026
@grokspawn
grokspawn force-pushed the vertex-jobs branch 2 times, most recently from 968d084 to f08c1ea Compare June 26, 2026 19:45
@grokspawn

Copy link
Copy Markdown
Contributor Author

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

@coderabbitai

coderabbitai Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Caution

Review failed

An error occurred during the review process. Please try again later.

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

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@grokspawn

Copy link
Copy Markdown
Contributor Author

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

@grokspawn

Copy link
Copy Markdown
Contributor Author

/hold cancel
now bubbles up the exit status from mcpchecker

@openshift-ci openshift-ci Bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 1, 2026
@grokspawn

Copy link
Copy Markdown
Contributor Author

containers/kubernetes-mcp-server#1241 merged, but needs to be downstreamed before this can be re-evaluated

@grokspawn

Copy link
Copy Markdown
Contributor Author

This appears sound, but cannot merge w/o the extra rehearsal jobs, so I'll switch this from draft but with a hold until those pass.

@grokspawn
grokspawn marked this pull request as ready for review July 1, 2026 18:47
@openshift-ci openshift-ci Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 1, 2026
@grokspawn

Copy link
Copy Markdown
Contributor Author

/hold
until the new jobs rehearse cleanly

@openshift-ci openshift-ci Bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 1, 2026
@openshift-ci
openshift-ci Bot requested review from Cali0707 and matzew July 1, 2026 18:47
@grokspawn

grokspawn commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

openshift/openshift-mcp-server#369 merged (this was actually the wrong PR series to unblock this PR).

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

@wking wking left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There's a new OWNERS file for all the new steps, and it doesn't have me in it, so I'm happy to delegate to the new owners to be responsible for the new step, without having to form my own opinions about what's inside the new steps. Adding a hold in case you want to address this:

/hold in case you want OWNERS symlinks

But feel free to lift the hold without making changes if you like, no worries from me.

@openshift-ci openshift-ci Bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 29, 2026
@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 29, 2026
@openshift-ci openshift-ci Bot removed the lgtm Indicates that a PR is ready to be merged. label Jul 29, 2026
@openshift-merge-bot openshift-merge-bot Bot removed the rehearsals-ack Signifies that rehearsal jobs have been acknowledged label Jul 29, 2026
@grokspawn

Copy link
Copy Markdown
Contributor Author

/pj-rehearse auto-ack

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

Signed-off-by: grokspawn <jordan@nimblewidget.com>
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@grokspawn: 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-openshift-mcp-server-main-mcpchecker-eval-anthropic openshift/openshift-mcp-server presubmit Presubmit changed
pull-ci-openshift-openshift-mcp-server-main-mcpchecker-eval-google openshift/openshift-mcp-server presubmit Presubmit 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.

@grokspawn

Copy link
Copy Markdown
Contributor Author

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

@Cali0707 Cali0707 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 the lgtm Indicates that a PR is ready to be merged. label Jul 29, 2026
@openshift-ci

openshift-ci Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Cali0707, grokspawn, wking

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

@grokspawn

Copy link
Copy Markdown
Contributor Author

/hold cancel
updated the OWNERS files to symlink since maintainers are the same crew and it's just the repo that requires per-level ownership details.

@openshift-ci openshift-ci Bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 29, 2026
@openshift-ci

openshift-ci Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

@grokspawn: 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.

@grokspawn

Copy link
Copy Markdown
Contributor Author

/pj-rehearse ack

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@grokspawn: 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 Jul 30, 2026
@openshift-merge-bot
openshift-merge-bot Bot merged commit 2c8dffb into openshift:main Jul 30, 2026
20 checks passed
@grokspawn
grokspawn deleted the vertex-jobs branch July 30, 2026 14:56
amogh-redhat pushed a commit to amogh-redhat/release that referenced this pull request Aug 5, 2026
* add anthropic/gemini vertex jobs

* experimenting with semi-hermetic build env

Signed-off-by: grokspawn <jordan@nimblewidget.com>

* switch to step registry and parameterized workflows

Signed-off-by: grokspawn <jordan@nimblewidget.com>

---------

Signed-off-by: grokspawn <jordan@nimblewidget.com>
TimurMP pushed a commit to TimurMP/release that referenced this pull request Aug 9, 2026
* add anthropic/gemini vertex jobs

* experimenting with semi-hermetic build env

Signed-off-by: grokspawn <jordan@nimblewidget.com>

* switch to step registry and parameterized workflows

Signed-off-by: grokspawn <jordan@nimblewidget.com>

---------

Signed-off-by: grokspawn <jordan@nimblewidget.com>
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.

6 participants