Skip to content

Conversation

@nik9000
Copy link
Member

@nik9000 nik9000 commented Jun 3, 2025

Adds an extension point so other plugins can add checks that verifier tasks that aren't part of the ESQL plugin.

@nik9000 nik9000 marked this pull request as ready for review June 4, 2025 16:55
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Jun 4, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

Copy link
Contributor

@mark-vieira mark-vieira left a comment

Choose a reason for hiding this comment

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

I left some minor comments that I think are just superfluous boilerplate that was likley copy/pasted from some other plugin. This "example" checker plugin will probably eventually get removed anyway when we introduce the "real" things so it's not critical. Otherwise LGTM.

/**
* Marker plugin to enable {@link Verifier.ExtraCheckers}.
*/
public class ExtraCheckersPlugin extends Plugin {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this just because ES requires our plugin to include something that extends Plugin even if we're just providing stuff loaded by SPI?

@@ -0,0 +1,29 @@
apply plugin: 'elasticsearch.internal-es-plugin'
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should actually use elasticsearch.base-internal-es-plugin here, since this is a "test" plugin and not intended to be published or included in Elasticsearch.

}

tasks.named('javaRestTest') {
usesDefaultDistribution("to be triaged")
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's make a best effort to not use the default distribution here. We should avoid adding more tests that use this.

tasks.named('javaRestTest') {
usesDefaultDistribution("to be triaged")
maxParallelForks = 1
jvmArgs('--add-opens=java.base/java.nio=ALL-UNNAMED')
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this required?

dependencies {
compileOnly project(':x-pack:plugin:esql')
compileOnly project(':x-pack:plugin:esql-core')
clusterPlugins project(':x-pack:plugin:esql:qa:server:extra-checkers')
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be unnecessary. The internal-es-plugin plugin should automatically add this.

.distribution(DistributionType.DEFAULT)
.setting("xpack.security.enabled", "false")
.setting("xpack.license.self_generated.type", "trial")
.shared(true)
Copy link
Contributor

Choose a reason for hiding this comment

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

This is unnecessary. There's only one test in this project.

@mark-vieira mark-vieira added the :Core/Infra/Core Core issues without another label label Jun 12, 2025
@mark-vieira mark-vieira self-assigned this Jun 12, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Core/Infra Meta label for core/infra team label Jun 12, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@mark-vieira mark-vieira merged commit e48139f into elastic:main Jun 16, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL :Core/Infra/Core Core issues without another label >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) Team:Core/Infra Meta label for core/infra team v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants