Commit graph

1308 commits

Author SHA1 Message Date
elasticsearchmachine
ee88e04e97 Bump versions after 8.18.0 release 2025-04-16 20:43:10 +00:00
Mark Vieira
300893b2da
Convert CCR module tests to new testing framework (#125894) (#125998)
(cherry picked from commit 66ba3c2a53)

# Conflicts:
#	x-pack/plugin/ccr/qa/build.gradle
#	x-pack/plugin/ccr/qa/downgrade-to-basic-license/build.gradle
#	x-pack/plugin/ccr/qa/multi-cluster/build.gradle
#	x-pack/plugin/ccr/src/javaRestTest/java/org/elasticsearch/xpack/ccr/AutoFollowIT.java
2025-04-01 09:28:46 +11:00
Mark Vieira
3c9addeb2d
[8.18] Convert more x-pack modules to new test framework (#125874) (#125993) 2025-03-31 14:15:36 -07:00
Rene Groeschke
b4a8d02605
[CI] Fix LegacyYamlRestTestPluginFuncTest failure for not available java toolchain (#125976) (#125981)
Wire in toolchain plugins into AbstractRestResourcesFuncTest to allow
resolving jdk

fixes #125534 , #125533 ,  #125532, #125531
2025-04-01 06:40:11 +11:00
Mark Vieira
fa9f0f4bda
[8.18] Convert x-pack fleet project to new test framework (#125743) (#125979)
* Convert x-pack fleet project to new test framework (#125743)

(cherry picked from commit e75891e49a)

# Conflicts:
#	x-pack/plugin/fleet/qa/rest/build.gradle
#	x-pack/plugin/fleet/qa/rest/src/yamlRestTest/resources/roles.yml
#	x-pack/plugin/fleet/roles.yml
#	x-pack/plugin/fleet/src/yamlRestTest/java/org/elasticsearch/xpack/fleet/FleetRestIT.java
#	x-pack/plugin/fleet/src/yamlRestTest/resources/roles.yml

* [CI] Auto commit changes from spotless

---------

Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
2025-04-01 06:26:26 +11:00
Mark Vieira
dc62cd476c
Migrate x-pack core module to new testing framework (#125740) (#125799) 2025-03-28 05:24:43 +11:00
Mark Vieira
44b928b206
[8.18] Migrate legacy QA projects to new test clusters framework (#125545) (#125718) 2025-03-27 10:07:37 -07:00
Mark Vieira
980d6509a3
[9.0] Convert :test projects to new testing framework (#125724) (#125742) (#125791)
* Convert `:test` projects to new testing framework (#125724)

(cherry picked from commit e149a3e10d)

# 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 533d38d863)

# Conflicts:
#	test/external-modules/error-query/build.gradle
2025-03-28 03:50:31 +11:00
Mark Vieira
f236efc1d5
Convert remaining plugin projects to new test clusters framework (#125626) (#125726)
(cherry picked from commit 930b4ab995)

# Conflicts:
#	plugins/discovery-azure-classic/build.gradle
#	plugins/discovery-gce/qa/gce/build.gradle
2025-03-27 09:41:37 +11:00
Mark Vieira
ca2fa59bc6
Convert remaining module projects to new test clusters framework (#125613) (#125676) 2025-03-27 03:53:02 +11:00
Mark Vieira
fb3fc17777
[8.18] Re-enable VerifyVersionConstantsIT (#125605) (#125616)
* Re-enable VerifyVersionConstantsIT (#125605)

(cherry picked from commit 65751062f7)

# Conflicts:
#	qa/verify-version-constants/build.gradle

* Fix test
2025-03-26 13:43:07 +11:00
Rene Groeschke
61d97c3185
[Gradle] Wire java toolchain plugin into integration tests (#125347) (#125463)
* [Gradle] Wire java toolchain plugin into integration tests

This addresses transient issues we see in the integration tests where previously resolved jdk toolchain
is not available. See https://gradle-enterprise.elastic.co/s/66msrp7n2nsdy/tests/task/:build-tools-internal:integTest/details/org.elasticsearch.gradle.internal.test.rest.LegacyYamlRestTestPluginFuncTest/yamlRestTest%20executes%20and%20copies%20api%20and%20tests%20to%20correct%20source%20set\?top-execution\=1 for example

* Fix fix
2025-03-24 06:22:05 +11:00
Rene Groeschke
963515b155
Update Gradle Enterprise Plugin (Develocity) to 3.19.2 (#125137) (#125246)
with develocity updated to 2024.3.4 we are unblocked on updating the gradle enterprise plugin
2025-03-20 06:26:10 +11:00
Rene Groeschke
df99bf2669
[Gradle] Autoprovision jvm for gradle daemon (#124071) (#125145)
With Gradle 8.13 we can now auto provision the jdk used by the gradle daemon. Our configuration relies on jdk21.
With this autoprovisioning enabled each gradle build will use adoptium jdk 21 for gradle jvm
2025-03-19 22:15:39 +11:00
Ryan Ernst
86e1aa92ea
Update bundled JDK to Java 24 (#125159) (#125176)
Bumping bundled JDK to Java 24 since it is now GA.
2025-03-19 13:26:15 +11:00
elastic-renovate-prod[bot]
370be804ac
Update docker.elastic.co/wolfi/chainguard-base:latest Docker digest to 5ba5def (#125125)
This PR contains the following updates:

| Package | Update | Change | |---|---|---| |
docker.elastic.co/wolfi/chainguard-base | digest | `a37e513` ->
`5ba5def` |

---

### Configuration

📅 **Schedule**: Branch creation - "after 1pm on tuesday" (UTC),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once
you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMDcuMCIsInVwZGF0ZWRJblZlciI6IjM5LjEwNy4wIiwidGFyZ2V0QnJhbmNoIjoiOC4xOCIsImxhYmVscyI6WyI6RGVsaXZlcnkvUGFja2FnaW5nIiwiPm5vbi1pc3N1ZSIsIlRlYW06RGVsaXZlcnkiLCJhdXRvLW1lcmdlLXdpdGhvdXQtYXBwcm92YWwiXX0=-->
2025-03-19 04:31:53 +11:00
Rene Groeschke
52a33c7ff8
[Gradle] Fix configuration cache issues in distribution subproject (#124281) (#125098)
* [Gradle] Fix configuration cache issues in distribution subproject

- do not reference tasks from task execution time
- do not use project references at task execution time
- use layout.settingsDir for resolving root project dir

* Fix test coverage

* [CI] Auto commit changes from spotless

---------

Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
2025-03-19 02:43:57 +11:00
Rene Groeschke
b1482424df
[Build] Rework internal build plugin plugin to work with Isolated Projects (#123461) (#124991)
This fixes a general flaw in our build logic where we reach out to configurations of other projects.
This is not best practice and breaks future initiatives like IsolatedProjects that allow parallel configuration
of subprojects.
2025-03-17 19:44:05 +11:00
elastic-renovate-prod[bot]
d002c48b01
Update docker.elastic.co/wolfi/chainguard-base:latest Docker digest to a37e513 (#124600)
This PR contains the following updates:

| Package | Update | Change | |---|---|---| |
docker.elastic.co/wolfi/chainguard-base | digest | `6dcddd8` ->
`a37e513` |

---

### Configuration

📅 **Schedule**: Branch creation - "after 1pm on tuesday" (UTC),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once
you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMDcuMCIsInVwZGF0ZWRJblZlciI6IjM5LjEwNy4wIiwidGFyZ2V0QnJhbmNoIjoiOC4xOCIsImxhYmVscyI6WyI6RGVsaXZlcnkvUGFja2FnaW5nIiwiPm5vbi1pc3N1ZSIsIlRlYW06RGVsaXZlcnkiLCJhdXRvLW1lcmdlLXdpdGhvdXQtYXBwcm92YWwiXX0=-->
2025-03-12 09:02:38 +11:00
Joe Gallo
dbe0a23bec
Upgrade httpclient to 5.3.3 for build-tools-internal (#124018) (#124355) 2025-03-08 04:59:19 +11:00
Ryan Ernst
1543e04ef2
Bump bundled JDK to 24 RC (#123452) (#124138)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-03-06 11:06:47 +11:00
elastic-renovate-prod[bot]
822aff7c27
Update docker.elastic.co/wolfi/chainguard-base:latest Docker digest to 6dcddd8 (#124021)
This PR contains the following updates:

| Package | Update | Change | |---|---|---| |
docker.elastic.co/wolfi/chainguard-base | digest | `6387bd4` ->
`6dcddd8` |

---

### Configuration

📅 **Schedule**: Branch creation - "after 1pm on tuesday" (UTC),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once
you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMDcuMCIsInVwZGF0ZWRJblZlciI6IjM5LjEwNy4wIiwidGFyZ2V0QnJhbmNoIjoiOC4xOCIsImxhYmVscyI6WyI6RGVsaXZlcnkvUGFja2FnaW5nIiwiPm5vbi1pc3N1ZSIsIlRlYW06RGVsaXZlcnkiLCJhdXRvLW1lcmdlLXdpdGhvdXQtYXBwcm92YWwiXX0=-->
2025-03-06 10:16:09 +11:00
Rene Groeschke
378ae94c06
Update Gradle wrapper to 8.13 (#122421) (#123878)
* Fix Gradle Deprecation warning as declaring an is- property with a Boolean type has been deprecated.
* Make use of new layout.settingsFolder api to address some cross project references
* Fix buildParams snapshot check for multiprojet projects

(cherry picked from commit e19b2264af)

# Conflicts:
#	build-tools-internal/gradle/wrapper/gradle-wrapper.properties
#	build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/BaseInternalPluginBuildPlugin.java
#	build-tools-internal/src/main/resources/minimumGradleVersion
#	docs/build.gradle
#	gradle/wrapper/gradle-wrapper.properties
#	plugins/examples/gradle/wrapper/gradle-wrapper.properties
#	qa/lucene-index-compatibility/build.gradle
#	x-pack/qa/multi-project/core-rest-tests-with-multiple-projects/build.gradle
#	x-pack/qa/multi-project/xpack-rest-tests-with-multiple-projects/build.gradle
2025-03-05 15:57:38 +01:00
Rene Groeschke
454be382fe
Fix configuration cache compatibility issues (#124073) (#124081)
- for running :plugins:discovery-ec2:check
- checking if in idea in build scan background action
2025-03-05 22:22:17 +11:00
Rene Groeschke
1e4c801c70
[Gradle] Fix and simplify disabling assertions in test tasks (#123038) (#123968)
Fixes misleading assertion configuration for test tasks from the command
line. 

We support the following command line args:

1. `-Dtests.jvm.argline=-disableassertions`

2. `-Dtests.jvm.argline=-da`

3. `-Dtests.asserts=false`
2025-03-04 20:42:19 +11:00
Ryan Ernst
d826e82731
Skip internal logging in compat check (#123940) (#123949)
The stable API compatibility checks ensure public jars don't change
their APIs in incompatible ways. Yet the logging jar has an internal
package which can change arbitrarily. This commit adds a temporary
workaround to skip the internal logging package until the compat check
can be made to look at module-info.
2025-03-04 14:55:20 +11:00
Joe Gallo
b1af60dd9b
Bump up httpcore version (#123932) (#123945) 2025-03-04 14:05:05 +11:00
Rene Groeschke
3807fa44b7
[IDEA] Enable Gradle Configuration Cache for Gradle Test Runner (#123552) (#123620)
* [IDEA] Enable Gradle Configuration Cache for Gradle Runner

This should speedup repetitives usages of the Gradle Runner for the majority of test executions
We added a flag to disable it explicitly if it does not work for certain scenarios
2025-02-28 04:51:22 +11:00
Rene Groeschke
51190c7920
[BUILD] Rework build cache authentication on CI (#122296) (#122618)
This is required to update to newer version of gradle enterprise and the gradle enterprise plugin.

(cherry picked from commit 9c19538c06)

# Conflicts:
#	.ci/init.gradle
2025-02-28 04:38:25 +11:00
elastic-renovate-prod[bot]
6cc68f5d15
Update docker.elastic.co/wolfi/chainguard-base:latest Docker digest to 6387bd4 (#123395)
This PR contains the following updates:

| Package | Update | Change | |---|---|---| |
docker.elastic.co/wolfi/chainguard-base | digest | `d74b1fd` ->
`6387bd4` |

---

### Configuration

📅 **Schedule**: Branch creation - "after 1pm on tuesday" (UTC),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once
you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMDcuMCIsInVwZGF0ZWRJblZlciI6IjM5LjEwNy4wIiwidGFyZ2V0QnJhbmNoIjoiOC4xOCIsImxhYmVscyI6WyI6RGVsaXZlcnkvUGFja2FnaW5nIiwiPm5vbi1pc3N1ZSIsIlRlYW06RGVsaXZlcnkiLCJhdXRvLW1lcmdlLXdpdGhvdXQtYXBwcm92YWwiXX0=-->
2025-02-27 20:24:41 +11:00
Mark Vieira
3171cb1ef1
[8.18] Add forwards compatibility testing (#123436) (#123538)
* Add forwards compatibility testing (#123436)

(cherry picked from commit feb3a60e98)

# Conflicts:
#	test/test-clusters/src/main/java/org/elasticsearch/test/cluster/local/distribution/SnapshotDistributionResolver.java

* [CI] Auto commit changes from spotless

---------

Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
2025-02-27 05:56:50 +11:00
Nikolaj Volgushev
ce5510c0fd
Upgrade Netty to 4.1.118.Final (#122371) (#123480)
This PR upgrades Netty to `4.1.118.Final`.
2025-02-27 01:25:19 +11:00
Ryan Ernst
1f4f2afb46
Add JDK 24 release candidate to toolchain resolver (#123321) (#123446) 2025-02-26 17:01:28 +11:00
Ryan Ernst
7460e2ddbf
Capture core dump files from tests (#123169) (#123193)
When running Elasticsearch in tests we occassionally have JDK crashes.
It's important to capture the state of the JVM at the time of the crash.
We currently capture the hs_err_pid file for the crash, but the
resulting core file exists in a directory that is no captured. This
commit adjusts the capture patterns to also get core files.
2025-02-22 10:12:30 +11:00
Rene Groeschke
610e4ac049
[GRADLE] Fix idea setup after removing :plugins:repository-hdfs:hadoop-client-api (#123056) (#123057) 2025-02-21 06:35:11 +11:00
Lorenzo Dematté
e30437206d
[8.18] Fix hdfs-related IT tests for java24 (#122044) (#122989)
* Fix hdfs-related IT tests for java24 (#122044)

* Have ASM recompute frames on patched classes
2025-02-20 20:55:26 +11:00
David Turner
8b0d9dfba8
Remove discovery-ec2 QA module mention (#122025) (#122741)
This module was removed in #119384 so we can drop it from the
`RestrictedBuildApiService` now.
2025-02-17 16:53:31 +00:00
Ryan Ernst
e15b32a39f
Validate mrjar plugin versions (#120823) (#120942) (#122608)
* Validate mrjar plugin versions (#120823)

The mrjar plugin adds support for sourcesets named in the form mainNN,
which adds the appropriate compiler and other settings for that version
of Java, and produces a multi-release jar. Having multi-release jars
only makes sense for versions of java newer than the minimum compile
version. This commit adds validation that the version is not too old.

Note that the check is slightly relaxed; it allows mainNN where NN is
equal to the min java version. This is due to the desire to keep
code using incubating modules separate because warnings must be
disabled.

* Restore deleted files

* restore classifier fix

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-02-15 03:49:48 +11:00
elastic-renovate-prod[bot]
1a99a479a2
Update docker.elastic.co/wolfi/chainguard-base:latest Docker digest to d74b1fd (#121713)
This PR contains the following updates:

| Package | Update | Change | |---|---|---| |
docker.elastic.co/wolfi/chainguard-base | digest | `bfdeddb` ->
`d74b1fd` |

---

### Configuration

📅 **Schedule**: Branch creation - "after 1pm on tuesday" (UTC),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once
you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM5LjEwNy4wIiwidGFyZ2V0QnJhbmNoIjoiOC4xOCIsImxhYmVscyI6WyI6RGVsaXZlcnkvUGFja2FnaW5nIiwiPm5vbi1pc3N1ZSIsIlRlYW06RGVsaXZlcnkiLCJhdXRvLW1lcmdlLXdpdGhvdXQtYXBwcm92YWwiXX0=-->
2025-02-13 21:04:06 +11:00
Rene Groeschke
34506cd3cb
Develocity setup does not allow overwriting server url (#122470) (#122475)
This is a prerequisite to have
https://github.com/elastic/elasticsearch/pull/122296 passing in bwc
tests
2025-02-13 10:48:41 +01:00
Mark Vieira
ed0ca6a966
Add release tooling for adding new transport versions (#122426) (#122447) 2025-02-13 12:15:00 +11:00
Rene Groeschke
9db54b2488
[Build] Fix the manifest target and source information for jdbc projects (#121888) (#122238)
The nebula info broker plugin takes the information for the manifest from the java project settings rather then from
the compile task configuration. Instead of setting the compiler task configuration explicitly we now set the project
configuration accordingly. Also tweaked the javaTestCompile tasks to keep compiling with general minimum runtime version as we did before

(cherry picked from commit 6e6e42f5d4)
2025-02-12 09:14:15 +01:00
Mark Vieira
ddd80c58f2
Fix thirdPartyAudit task when running on Java 24 (#121712) (#121838)
We need to explicitly add the incubating vector API module to the third
party audit task on Java 24.

(cherry picked from commit 0c667ecd2a)

# Conflicts:
#	build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/ThirdPartyAuditTask.java
2025-02-06 07:04:25 -08:00
Lorenzo Dematté
2171064f5c
[8.x] [Entitlements] Add checks for native libraries restricted methods (#120775) (#121017)
* [Entitlements] Add checks for native libraries restricted methods (#120775)

* Introducing main21 (does not compile with main23 on the main lib)

* Move foreign API to Java22; fix EntitlementInitialization to work across multiple versions

* [CI] Auto commit changes from spotless

---------

Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
2025-01-29 20:58:57 +11:00
Nik Everett
f3a481a6c9
Share some ESQL test infrastructure (#120223) (#120329)
* Share some ESQL test infrastructure

This let's us use `OperatorTests` in esql itself. Good for enrich.

* Remove cargo cult

* Fix conflict
2025-01-18 02:26:18 +11:00
Mariusz Józala
d4170cd349
Revert "[TEST] Use Docker Compose v2 for TestFixturePlugin (#120214)" (#120294) (#120304)
Reverts elastic/elasticsearch#120214 Reverting this change because this
is causing failing tests on AmazonLinux 2023. The problem with wrong
version of `docker-compose` has been fixed in the VM images so builds
should no longer fail.
2025-01-17 04:45:53 +11:00
Mariusz Józala
dbbcc53fe0
[TEST] Use Docker Compose v2 for TestFixturePlugin (#120214) (#120253)
Upgrading from using V1 to be able to run on CI machines which
`docker-compose` command use some detached version which doesn't work
nicely with gradle-docker-compose-plugin.
2025-01-16 18:31:11 +11:00
Mark Vieira
1ebcedf00e
Surface failures when cloning test repo in gradle functional tests (#120005) (#120007) 2025-01-11 11:54:55 +11:00
Ryan Ernst
940ad90304
Do not try to enable SecurityManager on JDK 24 (#117999) (#119975)
* Do not try to enable SecurityManager on JDK 24 (#117999)

* cleanup

* [CI] Auto commit changes from spotless

* more

* [CI] Auto commit changes from spotless

---------

Co-authored-by: Lorenzo Dematté <lorenzo.dematte@elastic.co>
Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
2025-01-11 07:09:15 +11:00
Mark Vieira
ecc6c3fcac
Provide better error message when attempting to run incompatible tests (#119699) 2025-01-08 07:30:43 -08:00