Skip to content

test(mcp): fix McpServiceResourceIT compile on 2.0 (drop supportsEntityStatus) - #36772

Merged
ShaileshParmar11 merged 1 commit into
2.0from
fix/2.0-mcp-service-it-compile
Nov 1, 2026
Merged

ShaileshParmar11 merged 1 commit into
2.0from
fix/2.0-mcp-service-it-compile

Conversation

@ShaileshParmar11

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes the openmetadata-integration-tests compile failure on 2.0. It breaks the Collate 2.0 build (run 41254824766):

McpServiceResourceIT.java:[38,5] cannot find symbol
  symbol:   variable supportsEntityStatus

The backport of #36679 (#36745) copied McpServiceResourceIT from main as-is. The main version sets supportsEntityStatus = false;. That BaseEntityIT flag, and the entityStatus_supportMatchesServer test that reads it, came to main with #34541 (shared lifecycle stage). #34541 is not on 2.0. This PR removes the line. On 2.0 the flag has nothing to switch off, so test behaviour does not change. I did not backport #34541: it is a feature with 2.1.0 migrations.

Type of change:

  • Bug fix

High-level design:

N/A — one-line test fix.

Tests:

Use cases covered

  • openmetadata-integration-tests compiles on 2.0 again.

Unit tests

Not applicable. The change is a test-only deletion.

Backend integration tests

  • mvn -o -pl openmetadata-sdk,openmetadata-integration-tests test-compile -DskipTests at e612748d12e exit 0, McpServiceResourceIT.class produced.
  • I did not run McpServiceResourceIT itself. The class body is unchanged apart from the removed flag.

Ingestion integration tests

Not applicable (no ingestion changes).

Playwright (UI) tests

Not applicable (no UI changes).

Manual testing performed

  1. Confirmed supportsEntityStatus is not declared anywhere in openmetadata-integration-tests on origin/2.0.
  2. Confirmed Fixes #34540: Support a shared lifecycle stage on entities and let active workflows own it #34541 (144b882a7da) is not an ancestor of origin/2.0.
  3. Compiled the module as above.

UI screen recording / screenshots:

Not applicable.

Checklist:

  • I have read the CONTRIBUTING document.
  • Self-reviewed against REVIEW.md at e612748d12e: no findings. This is a one-line deletion of an assignment to a field that does not exist on 2.0.
  • My PR title is Fixes <issue-number>: <short explanation> (test fix, no issue: skip-pr-checks)
  • For JSON Schema changes: not applicable.
  • For UI changes: not applicable.

🤖 Generated with Claude Code

The backport of #36679 (#36745) copied the main version of the IT, which
sets a BaseEntityIT flag added on main by #34541. That flag does not exist
on 2.0, so openmetadata-integration-tests failed to compile.
@ShaileshParmar11 ShaileshParmar11 added the skip-pr-checks Bypass PR metadata validation check label Nov 1, 2026
@github-actions github-actions Bot added safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Nov 1, 2026
@gitar-bot

gitar-bot Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

🟢 Low risk · Removing the test-only assignment to an unavailable flag fixes compilation without changing test behavior or runtime code.

Removes the supportsEntityStatus = false; assignment from McpServiceResourceIT so openmetadata-integration-tests compiles on 2.0 again, since the flag only exists on main via #34541. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

This branch was previously deployed

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

Labels

safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants