Commit graph

1412 commits

Author SHA1 Message Date
elasticsearchmachine
69bdf465b0 Bump to version 9.1.0 2025-01-30 16:55:46 +00:00
Mark Vieira
6c405093d7
Update BWC versions to support multiple staged releases 2025-01-30 08:22:54 -08:00
Chris Hegarty
4baffe4de1
Upgrade to Lucene 10.1.0 (#119308)
This commit upgrades to Lucene 10.1.0.
2025-01-30 13:41:02 +00:00
Oleksandr Kolomiiets
231a616b23
Enable preview features for entitlements projects in IDEA (#121235) 2025-01-29 15:16:35 -08:00
Mark Vieira
61dc93107f
Add lucene version compatibility tests (#121104)
This commit adds compatibility tests that target ES revisions that align with specific Lucene versions. In this case, we are intending to upgrade from Lucene 10.0 to 10.1. Since no on-prem Elasticsearch release exists with 10.0, we need another method to ensure compatibility with Lucene 10.0 indicies.

The work here is a bit hacky since all our compatibility testing infrastructure is centered around versions and we're now effectively doing compatibility tests between two different revisions of Elasticsearch that both report the same version. Ideally this specific testing would be replaced by unit tests, rather that reusing our full cluster restart tests for this purpose.

We'll also want to bump the commit referenced in the CI pipelines here to align with the last commit using Lucene 10.0.
2025-01-29 13:20:25 -08:00
elastic-renovate-prod[bot]
ceb0dc7668
Update docker.elastic.co/wolfi/chainguard-base:latest Docker digest to bd40170 (#121030)
Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
2025-01-29 17:12:29 +01:00
Martijn van Groningen
952bf229fb
Conditionally enable logsdb by default (#121049)
Enable logsdb by default if logsdb.prior_logs_usage has not been set to true.

Meaning that if no data streams were created matching with the logs-- pattern in 8.x, then logsdb will be enabled by default for data streams matching with logs-*-* pattern.

Also removes LogsPatternUsageService as with version 9.0 and beyond, this component is no longer necessary.

Followup from #120708
Closes #106489
2025-01-29 15:03:28 +01:00
Rene Groeschke
2b16515166
Update Gradle wrapper to 8.12.1 (#120960) 2025-01-28 15:41:44 +01:00
Ryan Ernst
095621f801
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.
2025-01-24 18:59:34 +00:00
Nik Everett
29b5e87fdc
Share some ESQL test infrastructure (#120223)
* Share some ESQL test infrastructure

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

* Remove cargo cult

* Fix conflict
2025-01-16 21:52:17 +00:00
Mariusz Józala
b1fb31e657
Revert "[TEST] Use Docker Compose v2 for TestFixturePlugin (#120214)" (#120294)
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 03:40:22 +11:00
Mariusz Józala
1ee0be8ba8
[TEST] Use Docker Compose v2 for TestFixturePlugin (#120214)
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 01:27:06 -05:00
elastic-renovate-prod[bot]
bb09c6432a
Update docker.elastic.co/wolfi/chainguard-base:latest Docker digest to dd66bee (#120110)
This PR contains the following updates:

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

---

### 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://togithub.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyI6RGVsaXZlcnkvUGFja2FnaW5nIiwiPm5vbi1pc3N1ZSIsIlRlYW06RGVsaXZlcnkiLCJhdXRvLW1lcmdlLXdpdGhvdXQtYXBwcm92YWwiXX0=-->
2025-01-15 23:00:30 +11:00
Mark Vieira
c8fe6545af
Surface failures when cloning test repo in gradle functional tests (#120005) 2025-01-10 15:52:01 -08:00
Rene Groeschke
a5ee345bb7
Fix serverless idea import (#119729)
relying on extra properties turns out problematic in general. This
introduces a typed task that has a util method enablePreview which is used
in the elasticsearch and elasticsearch serverless idea setup
2025-01-08 19:15:42 +01:00
Rene Groeschke
34ab4a4892
[Gradle] Make DistroTestPlugin configuration cache compatible (#119497) 2025-01-04 02:54:29 +11:00
Rene Groeschke
1d5706edfd
[Gradle] Make CopyCheckStyleConfTask usage cc compatible in serverless (#119249)
This ensures we can use gradle configuration cache with elasticsearch serverless build
2025-01-02 08:36:27 +01:00
elastic-renovate-prod[bot]
ee4a041d18
Update docker.elastic.co/wolfi/chainguard-base:latest Docker digest to eef54b3 (#119409)
This PR contains the following updates:

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

---

### 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://togithub.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyI6RGVsaXZlcnkvUGFja2FnaW5nIiwiPm5vbi1pc3N1ZSIsIlRlYW06RGVsaXZlcnkiLCJhdXRvLW1lcmdlLXdpdGhvdXQtYXBwcm92YWwiXX0=-->
2025-01-01 03:44:11 +11:00
Rene Groeschke
f028340958
[Gradle] Support runtime.java 24 and 25 (#119387)
We add explicit support for running build with -Druntime.java=24 and
-Druntime.java=24) By default it takes the build that was available at
implementation time (b29 for 24 and b3 for 25)

You can pass the build number also dynamically by running your build
e.g. with

```
-Druntime.java=24 -Druntime.java.build=29
```

which will resolve java ea24 build 29

fixes #118329
2025-01-01 01:06:02 +11:00
Rene Groeschke
ba61f8c7f7
Update Gradle wrapper to 8.12 (#118683)
This updates the gradle wrapper to 8.12

We addressed deprecation warnings due to the update that includes:

- Fix change in TestOutputEvent api
- Fix deprecation in groovy syntax
- Use latest ospackage plugin containing our fix
- Remove project usages at execution time
- Fix deprecated project references in repository-old-versions
2024-12-30 15:34:24 +01:00
Rene Groeschke
5278159987
Reapply "[Build] Do not invalidate configuration cache when branch is switched (#118894)" (#119300) (#119325)
* Reapply "[Build] Do not invalidate configuration cache when branch is switched (#118894)" (#119300)

The original PR (#118894) has broken serverless.

* Fix gitinfo plugin for serverless usage

* Update buildscan git revision reference
2024-12-30 08:54:42 +01:00
David Turner
1d58988772
Harmonize reactive-streams version (#119316)
We depend on the `reactive-streams` library in a couple of places. This
commit extracts the version to the top-level `version.properties` file
to make sure we keep these versions in sync.
2024-12-27 18:58:14 +00:00
Mark Vieira
bd27933eb4
Revert "Fix buildscan setup after buildParam rework (#119274)"
This reverts commit 3c84517e75.
2024-12-27 10:37:01 -08:00
Mark Vieira
9d0f08bedf
Revert "[Build] Do not invalidate configuration cache when branch is switched (#118894)" (#119300)
This reverts commit f9c6a6c0b2.
2024-12-27 10:05:53 +11:00
Armin Braun
e94f145350
Fix a bunch of non-final static fields (#119185)
Fixing almost all missing `final` spots, who knows maybe we get a small speedup from
some constant folding here and there.
2024-12-26 19:14:36 +01:00
Rene Groeschke
3c84517e75
Fix buildscan setup after buildParam rework (#119274) 2024-12-26 08:02:34 -08:00
Ryan Ernst
3dc85bec50
Patch Shell class in hdfs to not execute (#119189)
Shell utility in hdfs tries to execute a local script statically to
determine whether setsid is available. With the security manager this
doesn't work, but hdfs catches the SecurityException and assumes false.
With entitlements this doesn't work since hdfs does not know about our
NotEntitledException.

This commit reworks the patching of hdfs-client-api to use asm. It then
adds patching of hdfs' Shell class to replace the method that tries to
execute.
2024-12-23 20:59:31 +00:00
Mark Vieira
41ebfd5a74
Mute BuildParameterExtensionSpec failing test 2024-12-23 09:23:15 -08:00
Rene Groeschke
f9c6a6c0b2
[Build] Do not invalidate configuration cache when branch is switched (#118894)
* [Build] Do not invalidate configuration cache when branch is switched
* Update build tools tests
* Update GitInfoValueSource.java
2024-12-23 14:51:33 +00:00
Rene Groeschke
2f25f67b38
[Gradle] Fix Idea setup when configuration cache enabled (#119123) 2024-12-19 20:56:26 +01:00
Mark Vieira
1f4fef13f4
Improve efficiency of incremental builds when building bwc distributions (#118713) 2024-12-18 21:12:17 +00:00
Ryan Ernst
6e2c614af3
Use minimum java version for javadoc tool (#118908)
When compiling we use a compiler for the minimum java version. However,
javadoc is left to whatever Java gradle uses. This commit adjusts
javadoc to also use a javadoc tool for the minimum java version.
2024-12-18 13:01:55 -08:00
Rene Groeschke
d118cbf529
[Build] Make ThirdPartyAudit task uptodate more effective (#118723)
We should basically be able to skip the third party dependency audit
tasks if no third party dependency has changed.

Filtering out the project dependencies allows way better uptodate and
caching behaviour. We are only interested in thirdparty libs anyhow in
this context.

A positive side effect of the reduced class path is a quicker execution
of the task
2024-12-18 19:22:08 +11:00
Mark Tozzi
5d9c3a2663
Remove date histogram boolean support (#118484)
This removes support for running date aggregations over boolean fields. This has never been useful, was deprecated in 7.x, and is finally being disabled for 9.0.
2024-12-17 15:56:51 -05:00
Benjamin Trent
a5c57ba966
Adjust random_score default field to _seq_no field (#118671)
In an effort to improve performance and continue to provide unique
seeded scores for documents in the same index, we are switching from _id
to _seq_no.

Requiring a field that is "unique" for a field and to help with random
scores is burdensome for the user. So, we should default to a unique
field (per index) when the user provides a seed. 

Using `_seq_no` should be better as:

 - We don't have to grab stored fields values
 - Bytes used are generally smaller

Additionally this removes the deprecation warning.

Marking as "breaking" as it does change the scores & behavior, but the
API provide is the same.
2024-12-18 05:30:48 +11:00
elastic-renovate-prod[bot]
70087e3ded
Update docker.elastic.co/wolfi/chainguard-base:latest Docker digest to bfdeddb (#118868)
Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
2024-12-17 17:58:19 +00:00
Simon Cooper
f5712e4875
Infrastructure for assuming cluster features in the next major version (#118143)
Allow features to be marked as 'assumed', allowing them to be removed in the next major version.
2024-12-17 13:18:42 +00:00
Rene Groeschke
ba52a225dd
[Build] Make checkPart4 configuration cache compatible (#117250)
This makes checkPart4 tasks in general configuration cache compliant. 

We do not enable it by default in our pipelines yet. That will
eventually be done in separate PRs. To track any regressions we cover
the checkPart4 task in the weekly gradle cache validation build job
2024-12-15 20:49:25 +11:00
elastic-renovate-prod[bot]
21b7afd669
Update docker.elastic.co/wolfi/chainguard-base:latest Docker digest to 1b51ff6 (#117902)
Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2024-12-13 13:13:52 +00:00
Rene Groeschke
1b4f5eb36d
[Build] Fix Concurrency issue in buildparams access (#117552)
Also provide caching support for buildparams provider
* Extract BuildParameterExtension public api into interface
* Make tests better readable
* Fix test flakyness
2024-12-13 08:55:43 +01:00
Tanguy Leroux
e0ad97e8d5
Add QA test module for Lucene N-2 version (#118363)
This change introduces a new QA project to test Lucene 
support for reading indices created in version N-2.

The test suite is inspired from the various full-cluster 
restart suites we already have. It creates a cluster in 
version N-2 (today 7.17.25), then upgrades the cluster 
to N-1 (today 8.18.0) and finally upgrades the cluster 
to the current version (today 9.0), allowing to execute 
test methods after every upgrade.

The test suite has two variants: one for searchable 
snapshots and one for snapshot restore. The suites 
demonstrates that Elasticsearch does not allow 
reading indices written in version N-2 but we hope 
to make this feasible. Also, the tests can be used for 
investigation and debug with the command 
`./gradlew ":qa:lucene-index-compatibility:check" --debug-jvm-server`

Relates ES-10274
2024-12-11 17:03:52 +01:00
Lorenzo Dematté
ba9e0cef4d
Do not try to enable SecurityManager on JDK 24 (#117999) 2024-12-10 18:00:58 +01:00
Mariusz Józala
0fb52e752a
Upgrade default base Docker image to UBI9 (#118068)
Default base Docker image UBI has been upgraded from version 8 to 9.
2024-12-10 13:59:32 +01:00
Luca Cavanna
9472489441
Upgrade randomized runner to 2.8.2 (#118242)
A recent bug we found has been fixed, so the upgrade pulls in the fix and this
commit also removes the workaround we put in place.
2024-12-09 22:36:16 +01:00
David Turner
64e0902f58
Pull AWS SDK versions to top level (#118247)
Today each relevant module defines the version of the AWS SDK that it
uses, which means there's a risk that we use different versions in
different modules. This commit pulls the version declarations to the top
level to make sure we keep everything in sync.
2024-12-09 23:11:55 +11:00
Mark Vieira
7070e95fa7
Update BWC version logic to support multiple bugfix versions (#117943) 2024-12-05 09:43:18 -08:00
Ryan Ernst
c1a9d44ed4
Guard against missing file in CI upload (#117889)
Somehow files can be lost before the build ends up uploading them,
presumable from temporarily file deletion after tests complete. This
commit guards against this case so that the build will not completely
fail, but instead log a warning.
2024-12-03 08:42:49 -08:00
Brian Seeders
a46547c8dc
[CI] Pull in the latest mutes from base branch for PRs at runtime (#117587) 2024-11-27 15:26:23 -05:00
elastic-renovate-prod[bot]
ef8ffc5ada
Update docker.elastic.co/wolfi/chainguard-base:latest Docker digest to 32f06b1 (#117564)
Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
2024-11-27 08:13:43 +01:00
Mark Vieira
82be243b64
Refactor preview feature task to better support composite builds (#117594) 2024-11-26 14:54:31 -08:00