Skip to content

Conversation

@mark-vieira
Copy link
Contributor

Converts the last remaining projects under test to use the new testing framework.

@mark-vieira mark-vieira added >test Issues or PRs that are addressing/adding tests :Delivery/Build Build or test infrastructure >refactoring auto-backport Automatically create backport pull requests when merged v8.18.1 v8.19.0 v9.0.1 labels Mar 26, 2025
@mark-vieira mark-vieira requested a review from a team as a code owner March 26, 2025 21:23
@elasticsearchmachine elasticsearchmachine added the Team:Delivery Meta label for Delivery team label Mar 26, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)

}

tasks.named('yamlRestTest') {
def isSnapshot = buildParams.snapshotBuild
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@breskeby I had to do this in a number of places, otherwise the configuration cache would throw an error

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah. Onlyif is evaluated at tasks execution phase and buildparsms here is an extension. Those can not be accessed during execution phase

map.put(LegacyRestTestBasePlugin.class, ":x-pack:qa:smoke-test-plugins-ssl");
map.put(LegacyRestTestBasePlugin.class, ":x-pack:qa:smoke-test-security-with-mustache");
map.put(LegacyRestTestBasePlugin.class, ":x-pack:qa:xpack-prefix-rest-compat");
map.put(LegacyRestTestBasePlugin.class, ":modules:ingest-geoip:qa:file-based-update");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I simply forgot to remove these in earlier PRs

.distribution(DistributionType.DEFAULT)
.module("test-error-query")
.module("x-pack-esql")
.module("x-pack-ilm")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

esql requires ml which implicitly requires ilm. Perhaps that dependency should be explicit? 🤷

@mark-vieira mark-vieira merged commit e149a3e into elastic:main Mar 26, 2025
17 checks passed
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
8.18 Commit could not be cherrypicked due to conflicts
8.x Commit could not be cherrypicked due to conflicts
9.0 Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 125724

mark-vieira added a commit to mark-vieira/elasticsearch that referenced this pull request Mar 27, 2025
(cherry picked from commit e149a3e)

# Conflicts:
#	build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/RestrictedBuildApiService.java
#	test/external-modules/error-query/build.gradle
#	test/external-modules/error-query/src/javaRestTest/java/org/elasticsearch/test/esql/EsqlPartialResultsIT.java
@mark-vieira
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
9.0

Questions ?

Please refer to the Backport tool documentation

elasticsearchmachine pushed a commit that referenced this pull request Mar 27, 2025
…25742)

* Convert `:test` projects to new testing framework (#125724)

(cherry picked from commit e149a3e)

# Conflicts:
#	build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/RestrictedBuildApiService.java
#	test/external-modules/error-query/build.gradle
#	test/external-modules/error-query/src/javaRestTest/java/org/elasticsearch/test/esql/EsqlPartialResultsIT.java

* Bump timeout
mark-vieira added a commit to mark-vieira/elasticsearch that referenced this pull request Mar 27, 2025
…) (elastic#125742)

* Convert `:test` projects to new testing framework (elastic#125724)

(cherry picked from commit e149a3e)

# Conflicts:
#	build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/RestrictedBuildApiService.java
#	test/external-modules/error-query/build.gradle
#	test/external-modules/error-query/src/javaRestTest/java/org/elasticsearch/test/esql/EsqlPartialResultsIT.java

* Bump timeout

(cherry picked from commit 533d38d)

# Conflicts:
#	test/external-modules/error-query/build.gradle
mark-vieira added a commit to mark-vieira/elasticsearch that referenced this pull request Mar 27, 2025
…) (elastic#125742)

* Convert `:test` projects to new testing framework (elastic#125724)

(cherry picked from commit e149a3e)

# Conflicts:
#	build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/RestrictedBuildApiService.java
#	test/external-modules/error-query/build.gradle
#	test/external-modules/error-query/src/javaRestTest/java/org/elasticsearch/test/esql/EsqlPartialResultsIT.java

* Bump timeout

(cherry picked from commit 533d38d)

# Conflicts:
#	test/external-modules/error-query/build.gradle
elasticsearchmachine pushed a commit that referenced this pull request Mar 27, 2025
…25742) (#125791)

* Convert `:test` projects to new testing framework (#125724)

(cherry picked from commit e149a3e)

# Conflicts:
#	build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/RestrictedBuildApiService.java
#	test/external-modules/error-query/build.gradle
#	test/external-modules/error-query/src/javaRestTest/java/org/elasticsearch/test/esql/EsqlPartialResultsIT.java

* Bump timeout

(cherry picked from commit 533d38d)

# Conflicts:
#	test/external-modules/error-query/build.gradle
elasticsearchmachine pushed a commit that referenced this pull request Mar 27, 2025
… (#125742) (#125790)

* [9.0] Convert `:test` projects to new testing framework (#125724) (#125742)

* Convert `:test` projects to new testing framework (#125724)

(cherry picked from commit e149a3e)

# Conflicts:
#	build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/RestrictedBuildApiService.java
#	test/external-modules/error-query/build.gradle
#	test/external-modules/error-query/src/javaRestTest/java/org/elasticsearch/test/esql/EsqlPartialResultsIT.java

* Bump timeout

(cherry picked from commit 533d38d)

# Conflicts:
#	test/external-modules/error-query/build.gradle

* Don't use default distribution
omricohenn pushed a commit to omricohenn/elasticsearch that referenced this pull request Mar 28, 2025
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 :Delivery/Build Build or test infrastructure >refactoring Team:Delivery Meta label for Delivery team >test Issues or PRs that are addressing/adding tests v8.18.1 v8.19.0 v9.0.1 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants