Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

char_filter pattern_replace error requires at least java 21 #116507

Open
wants to merge 3 commits into
base: 8.x
Choose a base branch
from

Conversation

benwtrent
Copy link
Member

This test requires at least java 21, skip it otherwise.

closes: #116405
closes: #116134

@benwtrent benwtrent added >test Issues or PRs that are addressing/adding tests auto-backport Automatically create backport pull requests when merged :SearchOrg/Relevance Label for the Search (solution/org) Relevance team :Search Relevance/Search Catch all for Search Relevance v8.16.1 v8.17.0 v8.15.5 labels Nov 8, 2024
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/search-eng (Team:SearchOrg)

@elasticsearchmachine
Copy link
Collaborator

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

@@ -30,6 +28,12 @@ dependencies {
clusterModules project(':modules:mapper-extras')
}

tasks.named("yamlRestTest").configure { task->
if (BuildParams.getRuntimeJavaVersion().majorVersion.toInteger() < 21) {
task.skipTest("analysis-common/50_char_filters/pattern_replace error handling (too complex pattern)", "Requires Java 21 or later")
Copy link
Contributor

Choose a reason for hiding this comment

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

skipTest doesn't exist on this task. That method is only on compat task transform tasks so this will fail. You'll want to use the blacklist system property instead. Example:

if (BuildParams.isSnapshotBuild() == false) {

Copy link
Contributor

Choose a reason for hiding this comment

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

Also looking at the CI failure you'll need to an import for BuildParams in that build scripts.

import org.elasticsearch.gradle.internal.info.BuildParams

Copy link
Contributor

@afoucret afoucret left a comment

Choose a reason for hiding this comment

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

Looks great to me. Thank your for handling it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged :Search Relevance/Search Catch all for Search Relevance :SearchOrg/Relevance Label for the Search (solution/org) Relevance team >test Issues or PRs that are addressing/adding tests v8.15.5 v8.16.1 v8.17.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants