Skip to content

Exclude search tests from common CCS test suite#139238

Merged
davidkyle merged 1 commit intoelastic:mainfrom
davidkyle:actual-fix
Dec 12, 2025
Merged

Exclude search tests from common CCS test suite#139238
davidkyle merged 1 commit intoelastic:mainfrom
davidkyle:actual-fix

Conversation

@davidkyle
Copy link
Copy Markdown
Member

Follow on from #139107 which did not actually include the logic to stop the search tests being run in the common test suite.

I tried adding a unit test for this logic but Gradle complained. As noted in #139107 this should been seen as a long term solution.

@davidkyle davidkyle added >test Issues or PRs that are addressing/adding tests v9.3.0 :Search Relevance/Search Catch all for Search Relevance labels Dec 9, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Dec 9, 2025
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

// Search tests are not executed in the common suite.
case CcsCommonYamlTestSuiteIT cssCommon -> isSearchApi(apiName) == false;
case RcsCcsCommonYamlTestSuiteIT rssCommon -> isSearchApi(apiName) == false;
default -> throw new IllegalArgumentException("unexpected test suite [" + testSuite.getClass().getSimpleName() + "]");
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.

I have a feeling that throwing will be a bad idea. There are way more test suites than those two...I think defaulting to true should be ok right? Why not?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Throwing would be caught early in CI and fixed. Defaulting to true means that we are unaware of bugs or other issues, this fix being a case in point. Remember this code only applies to the ccs-common-rest module

@davidkyle davidkyle enabled auto-merge (squash) December 9, 2025 16:23
@davidkyle davidkyle merged commit 800b4d6 into elastic:main Dec 12, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Search Relevance/Search Catch all for Search Relevance Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch >test Issues or PRs that are addressing/adding tests v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants