suxiaogang223 opened a new pull request, #71214: URL: https://github.com/apache/doris/pull/71214
### Background Connector plugins declare an API version in the connector POM. The SPI tests record the public interface surface, and the plugin loader rejects incompatible major versions. ### What problem does this PR solve? Issue Number: None Related PR: None PR Type: Test Problem Summary: Remove the unit test that duplicates the current connector API version as a Java string literal. Parallel SPI changes repeatedly edit the same assertion and its version-history comment, creating avoidable merge conflicts. The interface baseline tests and runtime compatibility gate remain in place. ### Details - **Failure:** Concurrent SPI changes conflict on the version assertion in `ConnectorPluginSurfaceTest`, even when their interface additions can otherwise merge. - **Cause:** The assertion repeats the POM value in test code. It checks only the current state and cannot establish whether the major was advanced relative to the target branch. - **Stability evidence:** The cache-disabled SPI suite passes all 174 tests. A deliberate incorrect baseline signature still makes the retained surface test fail; restoring the baseline makes it pass. Existing loader compatibility tests pass all 16 cases. - **Removed tests:** Delete only `connectorApiMajorTracksTheRecordedSurfaceChange` and its unused import, totaling 13 lines. Keep interface and metadata inventories, the POM version source, and production loading checks. Authors still need to increment the POM major when changing the public contract. ### Testing - Full connector SPI suite: 174 passed, zero failures/errors/skips. - `ApiVersionGateTest`: 16 passed, zero failures/errors/skips. - Retained surface test: one expected failure with an incorrect baseline signature, then a successful complete suite after restoration. ### Release note None ### Check List (For Author) - Behavior changed: No - Does this need documentation: No - Pre-submission status: Ready ### AI Disclosure - Tool: Codex (GPT-6) - Generated: test deletion and description - Human review: not stated -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
