Delete Old Integration tests and fix sonar workflow#26204
Conversation
| @@ -13,10 +13,6 @@ | |||
|
|
|||
There was a problem hiding this comment.
💡 Quality: Sonar test report paths removed—coverage reporting may degrade
The PR removes sonar.junit.reportPaths, sonar.coverage.jacoco.xmlReportPaths, and sonar.tests properties from openmetadata-service/pom.xml. While these aren't needed for the current -DskipTests workflow, if any other CI job or local workflow runs tests and pushes results to SonarCloud for this module, the test report and coverage data won't be picked up because these paths are no longer configured.
If the intent is that test coverage is now exclusively tracked via the openmetadata-integration-tests module, this is fine. But if SonarCloud is expected to report unit test coverage for openmetadata-service in the future (e.g., for remaining unit tests like RuleEvaluatorTest, CloudWatchEventMonitorTest, etc.), these properties should be re-added or configured at the parent POM level.
Was this helpful? React with 👍 / 👎 | Reply gitar fix to apply this suggestion
| </dependency> | ||
| <dependency> | ||
| <groupId>org.junit.jupiter</groupId> | ||
| <artifactId>junit-jupiter-params</artifactId> |
There was a problem hiding this comment.
💡 Quality: Hardcoded JUnit version instead of using parent property
The newly added junit-jupiter-params dependency hardcodes version 5.9.3 instead of using the ${org.junit.jupiter.version} property defined in the parent POM. While the values currently match, this creates a maintenance risk: if the parent property is updated in the future, this dependency will be left behind, potentially causing version conflicts between JUnit modules (e.g., junit-jupiter-engine at a newer version vs junit-jupiter-params at 5.9.3).
Suggested fix:
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<version>${org.junit.jupiter.version}</version>
<scope>test</scope>
</dependency>
Was this helpful? React with 👍 / 👎 | Reply gitar fix to apply this suggestion
Code Review 👍 Approved with suggestions 0 resolved / 2 findingsDeletes obsolete integration tests and updates the Sonar workflow configuration. Consider using the parent POM property for the JUnit version instead of hardcoding it, and verify that removing Sonar test report paths won't degrade coverage reporting. 💡 Quality: Sonar test report paths removed—coverage reporting may degrade📄 openmetadata-service/pom.xml:13 The PR removes If the intent is that test coverage is now exclusively tracked via the 💡 Quality: Hardcoded JUnit version instead of using parent property📄 openmetadata-service/pom.xml:573 The newly added Suggested fix🤖 Prompt for agentsOptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
|
PR #26204 removed MCP tests from the openmetadata-mcp module. This re-creates them under openmetadata-integration-tests so they run as part of the standard integration test suite. Changes: - Add McpIntegrationIT: tests MCP initialization, tools/list, prompts/list, and tool calls via HTTP against the /mcp endpoint - Add McpToolsValidationIT: ordered tests validating each MCP tool (search, get entity, create glossary/term, patch, lineage, test definitions, test cases, root cause analysis, deleted field handling) - Add McpTestUtils: shared JSON-RPC request builders for MCP tests - Register MCP server in TestSuiteBootstrap after seed data loads using reflection to reset ApplicationContext and invoke registerMCPServer() - Add openmetadata-mcp and assertj-core dependencies to pom.xml - Delete .github/workflows/mcp-tests.yml (no longer needed) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Re-enable MCP tests under openmetadata-integration-tests PR #26204 removed MCP tests from the openmetadata-mcp module. This re-creates them under openmetadata-integration-tests so they run as part of the standard integration test suite. Changes: - Add McpIntegrationIT: tests MCP initialization, tools/list, prompts/list, and tool calls via HTTP against the /mcp endpoint - Add McpToolsValidationIT: ordered tests validating each MCP tool (search, get entity, create glossary/term, patch, lineage, test definitions, test cases, root cause analysis, deleted field handling) - Add McpTestUtils: shared JSON-RPC request builders for MCP tests - Register MCP server in TestSuiteBootstrap after seed data loads using reflection to reset ApplicationContext and invoke registerMCPServer() - Add openmetadata-mcp and assertj-core dependencies to pom.xml - Delete .github/workflows/mcp-tests.yml (no longer needed) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Fix no-op assertion and remove blanket catch blocks in McpToolsValidationIT - Assert search result contains expected query instead of discarding the boolean return value of contains() - Remove try-catch blocks in testPatchEntityTool and testGetEntityLineageTool that silently swallowed all exceptions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Fix search assertion to use substring match on entity names Search returns entity names like "mcp_val_table" for query "mcp_val", so the assertion must check if any returned name contains the query string rather than requiring an exact set membership match. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Refactor: extract McpTestBase, add ApplicationContext.reinitialize() - Add ApplicationContext.reinitialize() to replace reflection-based singleton reset in TestSuiteBootstrap - Extract shared MCP test infrastructure (HTTP client, auth, entity creation, SSE parsing, MCP request execution) into McpTestBase - McpIntegrationIT and McpToolsValidationIT now extend McpTestBase, removing ~230 lines of duplicated boilerplate - Fix SSE parser to concatenate all data: lines per the SSE spec Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Merge and resolve conflicts for dc-dq-execute-summary branch. - Split data contract validation into two paths: tests with existing results compile data, tests without results execute via DQ pipeline - Add dataContract field to testCase schema for bidirectional references - Add migration to backfill dataContract references on existing test cases - Update ContractQualityCard to use qualityValidation from contract results instead of fetching test suite summary separately - Fix broken JP elasticsearch mapping JSON - Drop deleted integration test files (removed in #26204) Conflict resolutions: - Migration: kept flyway migration refactor from main + added new migrateTestCaseDataContractReferences call - TestCaseMapper: merged withTopDimensions from main + dataContract conditional from PR - ContractDetail: kept security section from main + updated quality section to use qualityExpectations condition and latestContractResults Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>



Describe your changes:
Fixes
I worked on ... because ...
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>Summary by Gitar
maven-sonar-build.yml: Maven goal frompackagetoverifyfor proper static-code-analysis profile executionThis will update automatically on new commits.