Commit graph

291 commits

Author SHA1 Message Date
Rene Groeschke
5661f5fbd0
[7.17] Update gradle wrapper to 8.5 (#102154) (#102816)
* Update gradle wrapper to 8.5 (#102154)

Update BuildLayout references

* Remove non existent project
2023-11-30 15:03:30 -05:00
Lorenzo Dematte
1a67f09021 Bump versions after 7.17.15 release 2023-11-14 08:29:05 +01:00
Brian Seeders
0b8ecfb437
[ci] Fix build scan annotations on Windows (#101990) (#102028)
(cherry picked from commit f20ae0e363)
2023-11-10 12:07:48 -05:00
Mark Vieira
8bb7093d0f
Use separate buildkite annotation context for failed build scans (#101740) (#101749) 2023-11-03 10:11:12 -07:00
Brian Seeders
eaf05916b5
[ci] Don't generate CI artifact for nested builds, tweak build scan data (#101690) (#101732)
(cherry picked from commit 367e850da9)
2023-11-02 15:47:58 -04:00
Brian Seeders
2939c26b57
[7.17] [buildkite] Upload build artifact and add to build scan (#100842) (#100861) 2023-10-30 13:13:01 -04:00
Mark Vieira
51d907b636
[7.17] Include branch information in build scans for buildkite jobs (#101284) (#101290)
* Include branch information in build scans for buildkite jobs (#101284)

# Conflicts:
#	build-tools-internal/src/main/groovy/elasticsearch.build-scan.gradle

* Align with other branches
2023-10-24 18:36:28 -04:00
Rene Groeschke
ac783bb685
Update bundled JDK to 21.0.1 (#101133) (#101228)
* Update docs/changelog/101133.yaml

(cherry picked from commit f0ef872c2c)
2023-10-24 16:05:08 +02:00
Rene Groeschke
468bef1b9e
[7.17] Update gradle wrapper to 8.4 (#99856) (#100926)
* Remove deprecated forConfigurationTime usage
2023-10-17 13:44:48 +02:00
Rene Groeschke
a080bb2bbe
[7.17] Update gradle wrapper to 8.3 (#97838) (#100715)
* Update gradle wrapper to 8.3 (#97838)

Gradle now fully supports compiling, testing and running on Java 20.
Among other general performance improvements this release introduces --test-dry-run command line option that allows checking if tests are filtered or not by gradle.
Required updating nebula ospackage plugin as setuid was broken in gradle 8.3.

(cherry picked from commit b23e000c30)

# Conflicts:
#	build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/test/rest/LegacyYamlRestCompatTestPluginFuncTest.groovy
#	build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/ElasticsearchJavaModulePathPlugin.java
#	build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/compat/compat/AbstractYamlRestCompatTestPlugin.java
#	build-tools-internal/src/main/resources/minimumGradleVersion
#	gradle/verification-metadata.xml
#	gradle/wrapper/gradle-wrapper.jar
#	gradlew
#	x-pack/plugin/watcher/qa/with-monitoring/src/javaRestTest/java/org/elasticsearch/smoketest/MonitoringWithWatcherRestIT.java

* [7.17] Use patched nebula os package gradle plugin

* Update testingconvention precommit integ test
2023-10-16 06:18:08 -04:00
Mark Vieira
ac4022c729
Capture JVM crash dump logs in uploaded artifact bundle (#100627) (#100632) 2023-10-10 15:24:26 -04:00
Jason Bryan
d92ea26308
Bump versions after 7.17.14 release 2023-10-10 12:52:02 -04:00
Mark Vieira
774e3bfa4d
Ensure all docker compose tasks are disabled when appropriate (#100355)
We mistakenly weren't skipping `DockerBuild` tasks when docker is
unavailable on the host machine.
2023-10-05 15:28:57 -04:00
Mark Vieira
1e8696f2b2
Never support Docker build features on Windows (#100218) (#100225) 2023-10-03 15:40:00 -04:00
Mark Vieira
f1f2e8d289
Revert back to using docker compose v1 CLI for test fixtures (#100206) (#100216)
# Conflicts:
#	build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/testfixtures/TestFixturesPlugin.java
2023-10-03 14:20:49 -04:00
Brian Seeders
adb59f59d3
[7.17] [buildkite] Migrate pull-request pipelines from Jenkins (#99449) (#100091) 2023-09-29 15:27:18 -04:00
Rene Groeschke
5afd06ae57
[7.17] Update Gradle Wrapper to 8.2 (#96686) (#97484)
* Update Gradle Wrapper to 8.2 (#96686)

- Convention usage has been deprecated and was fixed in our build files
- Fix test dependencies and deprecation
2023-09-27 08:46:44 +02:00
Ryan Ernst
054e8219ca
Upgrade bundled JDK to Java 21 (#99724) (#99756)
Java 21 is now GA making Java 20 EOL.
2023-09-21 10:32:51 -04:00
Craig Taverner
c6a86e8269 Bump versions after 7.17.13 release 2023-09-07 17:18:38 +02:00
Rene Groeschke
b8b6316081
Build bwc without es runtime 7x (#99180)
* Fix 6.x bwc build incompatibility with current es java runtime
2023-09-05 07:15:44 +02:00
Brian Seeders
a95036757b
[7.17] [buildkite] Add Windows packaging and platform support tests to periodic pipeline (#98072) (#98329)
* [buildkite] Add Windows packaging and platform support tests to periodic pipeline (#98072)

(cherry picked from commit dfadca83f6)
2023-08-28 13:26:12 -04:00
Brian Seeders
1b6be92751
Add java-matrix and java-fips-matrix Buildkite pipelines (#97253) (#98040) 2023-07-28 17:50:19 -04:00
Ryan Ernst
fe8d4a23ae
Bump versions after 7.17.12 release 2023-07-25 11:24:15 -07:00
Mark Vieira
ca0aa27289
Upgrade bundle JDK to Java 20.0.2 (#97758) (#97762)
# Conflicts:
#	gradle/verification-metadata.xml

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2023-07-18 20:22:23 -04:00
Mark Vieira
6a55b8789e
Bump versions after 7.17.11 release 2023-06-29 13:30:37 -07:00
Iraklis Psaroudakis
2a3d71b1e8
Upgrade Netty to 4.1.94.Final (#97114)
Backport of https://github.com/elastic/elasticsearch/pull/97112
2023-06-26 12:05:24 -04:00
Mark Vieira
59c1b19370
Use correct target compatibility for third party audit tasks (#94648) (#94652)
# Conflicts:
#	build-tools-internal/src/main/groovy/elasticsearch.runtime-jdk-provision.gradle

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2023-05-17 17:18:56 -04:00
Mark Vieira
90903324eb
Bump versions after 7.17.10 release 2023-05-02 09:45:33 -07:00
Armin Braun
38b70f65fb
Upgrade Netty to 4.1.89 (#95559)
Upgrading 7.17.x to the version we've been using in 8.x for a while to
resolve audit issues.
2023-04-28 10:26:15 +02:00
Tim Vernum
fecd68e315
[7.17] Bump bundled JDK to Java 20.0.1 (#95371) 2023-04-19 08:11:51 -07:00
Mark Vieira
fbb73d8788
Upgrade bundled JDK to Java 20 (#94600) (#94606)
# Conflicts:
#	gradle/verification-metadata.xml
2023-03-21 14:38:32 -04:00
Mark Vieira
4ac5471c99 Use bundled JDK by default when testing in CI
(cherry picked from commit 7c2135c6bc)
2023-03-02 15:02:03 -08:00
Mark Vieira
ae436f7f08
Fix Gradle project evaluation when runtime java home is unset (#93740)
Fix a mistaken reference to the current project instead of the _root_
project when resolving the runtime JDK to be used for test execution.
2023-02-13 09:10:17 -05:00
Mark Vieira
d4e31946fc
Capture logs and config from junit test clusters in CI (#93661) (#93669)
# Conflicts:
#	build-tools-internal/src/main/groovy/elasticsearch.build-complete.gradle
2023-02-09 13:49:55 -05:00
Mark Vieira
cdb0c6b892
Avoid copying test cluster distributions when possible (#93486) (#93601) 2023-02-08 14:29:06 -05:00
Mark Vieira
d85abb13b4
Avoid running full BWC test matrix when running "check" task (#93563) (#93569)
We should only test snapshot version when running "check". Due to a
misswired task dependency, we were incorrectly running tests for the
full matrix of supported backward compatible versions.
2023-02-07 13:00:24 -05:00
Mark Vieira
18a5be3c30
[7.17] Convert full cluster restart tests to new rest testing framework (#93422) (#93432)
* Convert full cluster restart tests to new rest testing framework (#93422)

# Conflicts:
#	qa/full-cluster-restart/build.gradle
#	qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/upgrades/FullClusterRestartIT.java
#	qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/upgrades/FullClusterRestartSettingsUpgradeIT.java
#	qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/upgrades/QueryBuilderBWCIT.java
#	x-pack/plugin/shutdown/qa/full-cluster-restart/build.gradle
#	x-pack/plugin/shutdown/qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/xpack/restart/FullClusterRestartIT.java
#	x-pack/qa/full-cluster-restart/build.gradle
#	x-pack/qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/xpack/restart/FullClusterRestartIT.java
#	x-pack/qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/xpack/restart/FullClusterRestartSettingsUpgradeIT.java
#	x-pack/qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/xpack/restart/MLModelDeploymentFullClusterRestartIT.java
#	x-pack/qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/xpack/restart/MlConfigIndexMappingsFullClusterRestartIT.java
#	x-pack/qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/xpack/restart/MlHiddenIndicesFullClusterRestartIT.java
#	x-pack/qa/full-cluster-restart/src/javaRestTest/resources/system_key

* Fixes

* Fix warning failures

* Fix heap dump path

* More fixes

* Fix test cluster security setup on Windows

* Use relative path for script execution

* More, more fixes

* Fix warning error

* More fixes

* Fix security warning
2023-02-02 17:58:30 -05:00
Artem Prigoda
5a9b352e94 Bump versions after 7.17.9 release 2023-02-02 17:36:02 +01:00
Mark Vieira
8bc231299d
Bump bundled JDK to Java 19.0.2 (#93354) (#93360)
Closes https://github.com/elastic/elasticsearch/issues/93025
# Conflicts:
#	gradle/verification-metadata.xml
2023-01-30 19:22:48 -05:00
Przemyslaw Gomulka
4df1c37b09
[7.17] Upgrade jackson to 2.14.2 (#93345)
relates #93342
2023-01-30 16:58:32 +01:00
Mark Vieira
e9af78c799
Add FIPS support to new junit-rule test clusters framework (#93021) (#93111) 2023-01-24 15:55:20 -08:00
Mark Vieira
d86c0788a6
Avoid using autogenerated project name with docker compose plugin (#93015) (#93018)
The docker-compose plugin uses randomized auto-generated project names
for test fixtures. This can cause issues on some platforms where it will
generate an invalid identifier. This commit simply configures the plugin
to use the gradle project name for docker compose.
2023-01-17 19:05:32 -05:00
Mark Vieira
7120c147aa
Avoid eager creation of rest test tasks (#92855) (#92859)
The standard Gradle `withType()` method that takes an action is the
"legacy" API which realizes tasks eagerly. To avoid this, we need to
explicitly use `configureEach()` to pass our configuration action.
2023-01-11 21:04:58 -05:00
Mark Vieira
b8076c5d1b
Add explicit usage attribute to rest resources plugin configurations (#92720) (#92724)
Currently, the rest resources plugin relies on explicit project
configurations to wire up dependencies. This works for project
dependencies, but not for module dependencies, which are used when
bringing in these artifacts in a composite build. Add a unique usage
attribute to the api specs, tests, and xpack tests configurations so
they can be resolved in a composite or external build.
2023-01-05 19:10:26 -05:00
Mark Vieira
f3cb4d8047
Make rest resources plugin extension dsl methods public (#92718) (#92722)
These DSL methods were package private, which happens to work from
Groovy build scripts, but doesn't for static compiled Kotlin build
scripts.
2023-01-05 18:23:49 -05:00
Mark Vieira
9e1ec97dcf
[7.17] Migrate core rest tests with security to new testing framework (#92575) (#92686)
* Migrate core rest tests with security to new testing framework (#92575)

# Conflicts:
#	x-pack/qa/core-rest-tests-with-security/build.gradle

* Fixes

* More fixes

* More fixes

* More more fixes
2023-01-04 19:17:57 -05:00
Mark Vieira
223786c051
[7.17] Fixes for module projects in new tests clusters and auto security config (#92533) (#92582)
* Fixes for module projects in new tests clusters and auto security config (#92533)

Fix an issue where the build cannot resolve a module dependency for the
current module project. Also add partial support for security auto-
configuration in test clusters.
# Conflicts:
#	build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/RestTestBasePlugin.java
#	modules/aggregations/build.gradle
#	modules/aggs-matrix-stats/src/yamlRestTest/java/org/elasticsearch/search/aggregations/matrix/MatrixStatsClientYamlTestSuiteIT.java
#	test/test-clusters/src/main/java/org/elasticsearch/test/cluster/local/LocalClusterHandle.java

* Post-merge fixes

* Spotless
2022-12-27 20:57:29 -05:00
Mark Vieira
47c6fd34da
[7.17] Add JUnit rule based integration test cluster orchestration framework… (#92517)
This commit adds a new test framework for configuring and orchestrating
test clusters for both Java and YAML REST testing. This will eventually
replace the existing "test-clusters" Gradle plugin and the build-time
cluster orchestration.
2022-12-22 17:48:07 -08:00
Rene Groeschke
1aa7237781
[7.x] Resolve artifacts from dra (#92478)
* WIP - Dra plugin

* Fix pattern for non classifier dependencies in dra artifacts

* Cleanup ml build script

* Fix spotless
2022-12-20 12:43:48 -05:00
Rene Groeschke
1744a57312
Revert "[7.17] Update to Gradle 7.6 (#89796) (#92235)"
This reverts commit fc43f0105c.
2022-12-20 12:30:21 +01:00