Commit graph

10566 commits

Author SHA1 Message Date
github-actions[bot]
8113f77d2a
bump lock file for 8.11 (#15750)
* Update patch plugin versions in gemfile lock

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2024-01-05 15:31:54 +01:00
github-actions[bot]
8727fe8e17
JUnit result annotation for Buildkite PR jobs (#15741) (#15745)
This commit adds annotations for Java unit tests (in the pull request pipeline) helping
identify failing unit tests quickly.

(cherry picked from commit 286088915f)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2024-01-04 17:49:13 +02:00
github-actions[bot]
c557a9b7eb
Skip input step when triggering JDK matrix jobs (#15733) (#15735)
PR#15729 missed the input step. As a result when the job is triggered
the steps are executed, but the pause icon still shows in the job
requiring manual unblock[^1]

This commit also skips the input step when the job is triggered from
the scheduler pipeline.

[^1] https://buildkite.com/elastic/logstash-linux-jdk-matrix-pipeline/builds/86

(cherry picked from commit a8b64a32e9)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2024-01-02 14:35:48 +02:00
github-actions[bot]
5871b600ec
Don't block triggered JDK matrix Buildkite jobs (#15729) (#15731)
The recent PRs #15668 and #15705 refactored jobs with a custom schedule
to leverage a centralized trigger pipeline.

An unexpected sideffect of this is that the conditional for the wait
step doesn't work anymore.

This commit skips the wait step when the JDK matrix pipelines get triggered
from another pipeline.

(cherry picked from commit 82ac474b13)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2024-01-02 11:59:03 +02:00
github-actions[bot]
84b4fec2da
[ci] Add testing phase to exhaustive tests suite (#15711) (#15717)
This is the second part of the migration of the exhaustive/main
Jenkins Job to Buildkite. So far we've migrated the "compatibility
phase" and this commit adds the "testing phase"[^1], which is essentially
the same amount of tests that we ran on PR jobs.

Relates https://github.com/elastic/ingest-dev/issues/1722
Depends https://github.com/elastic/logstash/pull/15708

[^1]: For more details, refer to the sequence diagram in https://github.com/elastic/ingest-dev/issues/1722#issuecomment-1824378635

(cherry picked from commit 9538338abb)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2023-12-21 12:42:47 +02:00
github-actions[bot]
86ea320679
[ci] Reusable unit + IT test steps for Buildkite (#15708) (#15714)
This commit is a pre-requisite for adding unit + IT tests in a
dedicated phase of the Exhaustive tests pipeline.

It refactors the tests currently used by PR jobs, so that they become
reusable.

(cherry picked from commit 03d7b59f2a)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2023-12-20 18:50:17 +02:00
Rob Bavey
7c0fc32f83
Remove temporary dependencies in logstash-core.gemspec (#15694)
When the initial 8.11.0 release was created, a late downgrade in jruby from `9.4.3.0`
to `9.4.2.0` was required to avoid a silent crash during `Concurrent::TimerTask`. However, as part
of the downgrade,  we also added some cherry-picked dependencies to logstash-core to still
include some of the stlib fixes from `9.4.3.0` in the Logstash release.

We recently upgraded the version of jruby from `9.4.2.0` to `9.4.5.0`, but did not remove these
cherry-picked dependencies, some of which are now outdated, leading to issues such as #15687.

This commit removes those cherry-picked dependencies and updates the lockfile
2023-12-19 10:37:33 +00:00
github-actions[bot]
a45349ea47
Release notes for 8.11.3 (#15681)
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2023-12-12 09:17:46 -05:00
João Duarte
53d154c54f
bump version to 8.11.4 (#15682) 2023-12-12 10:09:08 +00:00
github-actions[bot]
7e9f9e079d
Doc: Add docs for extending integrations with filter-elastic_integrations (#15518) (#15675)
(cherry picked from commit 6c2e123a24)

Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2023-12-07 15:00:07 -05:00
João Duarte
45f6dce3e8
Update JRuby to 9.4.5.0 (#15531) (#15670)
* update lockfile template's BUNDLED WITH to match jruby's bundler
* upgrade jruby-core in rubyUtils.gradle
2023-12-07 18:41:20 +00:00
João Duarte
3d22fb395a
bump to 8.11.3 (#15669) 2023-12-07 15:29:51 +00:00
github-actions[bot]
4e3e09c5d6
Release notes for 8.11.2 (#15660)
Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2023-12-07 11:45:11 +00:00
github-actions[bot]
44788ccfc1
Doc: Update Logstash intro and security overview for serverless (#15313) (#15664)
(cherry picked from commit 0954a687f0)

Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2023-12-06 17:23:19 -05:00
github-actions[bot]
4292ef9179
Shutdown DLQ segments flusher only if it has been started (#15649) (#15656)
In DLQ unit testing sometime the DLQ writer is started explicitly without starting the segments flushers. In such cases the test 's logs contains exceptions which could lead to think that the test fails silently.

Avoid to invoke scheduledFlusher's shutdown when it's not started (such behaviour is present only in tests).

(cherry picked from commit eddd91454f)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2023-12-05 12:58:48 +01:00
github-actions[bot]
dae1585325
[ci] Compatibility tests for Exhaustive suite (#15641) (#15647)
This commit adds the compatibility tier for the Exhaustive tests suite.
Specifically, we introduce two new groups (running in parallel) for Linux and Windows compat tests.
Linux picks one OS per family from [^] and likewise Windows one of the three available choices from the same file.

We also support manual override, if user chooses to, by setting `LINUX_OS` or `WINDOWS_OS` as env vars in the Buildkite build prompt (in this case there is no randomization, and only one OS can be defined for Linux and Windows respectively).

For example:
```
LINUX_OS=rhel-9
WINDOWS_OS=windows=216
```

Relates:

- https://github.com/elastic/ingest-dev/issues/1722

[^1]: 4d6bd955e6/.buildkite/scripts/common/vm-images.json

(cherry picked from commit d42b938f81)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2023-11-30 20:58:51 +02:00
github-actions[bot]
6d55f26409
Added missing method of logger wrapper for puma (#15640) (#15642)
This commit fixes no method error when node stats API got
invalid API path, which triggers puma to print error using stderr

Fix: #15639
(cherry picked from commit 05392ad16e)

Co-authored-by: kaisecheng <69120390+kaisecheng@users.noreply.github.com>
2023-11-30 14:25:48 +00:00
github-actions[bot]
be32ecd557
[ci] Switch to Adoptium distro for JDK 11 (#15629) (#15633)
AdoptOpenJDK is nowadays Adoptium, so we replace it in favor of
the latter which is actively maintained.

Relates https://github.com/elastic/logstash/pull/15628

(cherry picked from commit 6446bba962)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2023-11-29 12:21:03 +02:00
github-actions[bot]
02b67592d6
[ci] Switch to Adoptium JDK 17 for Jenkins CI (#15628) (#15632)
The last remaining Jenkins job prior to BK migration is for
exhaustive tests. The compatibility phase seems to be failing
since 57dc14c92
with Java 17.0.2

This commit switches from OpenJDK 17 (whose last release was 17.0.2)
to AdoptiumJDK 17 which actively receives updates and is bundled
in the custom images used by Jenkins.

(cherry picked from commit 66d37412e8)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2023-11-29 12:14:33 +02:00
github-actions[bot]
34056f378d
[ci] Fix scheduled JDK matrix CI jobs (#15623) (#15625)
This commit fixes failed scheduled JDK matrix CI jobs, that
can't access the default values for the OS and JDK from the input
steps, as observed in [^1] and [^2].

[^1] https://buildkite.com/elastic/logstash-linux-jdk-matrix-pipeline/builds/53#018c1371-b760-4c28-9203-340c0a1df150
[^2]: https://buildkite.com/elastic/logstash-windows-jdk-matrix-pipeline/builds/35#018c1371-b72e-48b4-b707-ce103eb6039c

(cherry picked from commit f0019bf33c)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2023-11-28 16:33:34 +02:00
Karen Metts
6f4a7d499b
Doc: Improvements to monitoring with agent (#15619) to 8.11 (#15621) 2023-11-27 16:04:17 -05:00
github-actions[bot]
3e2a250cbd
[ci] Initial Exhaustive tests Buildkite pipeline (#15607) (#15615)
This commit adds a skeleton Buildkite pipeline for the Exhaustive tests
suite.

(cherry picked from commit db50983ab5)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2023-11-27 12:25:44 +02:00
github-actions[bot]
b15f59074a
bump lock file for 8.11 (#15613)
* Update patch plugin versions in gemfile lock

* Update Gemfile.jruby-3.1.lock.release

---------

Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2023-11-24 16:05:11 +00:00
João Duarte
93d8a9da32
swap dataformat-yaml with snakeyaml (#15599)
This removes the dependency on jackson's dataformat-yaml. Since there's only a single place where this library is used in core: to load the plugin alias definition, the code can be replaced by the underlying snakeyaml.

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2023-11-22 10:19:45 +00:00
github-actions[bot]
0835b50f81
[ci] Use GCP prod image for Linux JDK matrix job (#15600) (#15602)
So far we've been using images from the -qa GCP image project throughput
the development of the Logstash Linux JDK matrix pipeline for quicker
iteration.

As we have scheduled weekly builds of those images that promote to
prod[^1] we can now switch to the prod version of the GCP images.

[^1]: https://buildkite.com/elastic/ci-vm-images/builds/2888

Relates https://github.com/elastic/ingest-dev/issues/1725

(cherry picked from commit e259e04e53)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2023-11-20 19:09:54 +02:00
github-actions[bot]
8a563519e6
[ci] Support amazonlinux for JDK matrix pipeline (#15595) (#15598)
The last part of the Logstash JDK matrix CI migration from Jenkins to
Buildkite is AmazonLinux 2023.

While we have a working image[^1], this is the only step that requires
a agent that runs on AWS.

This commit refactors the builder to support GCP or AWS agents depending
on the OS.

[^1]: https://github.com/elastic/ci-agent-images/pull/441

(cherry picked from commit 8fa3bd0d7f)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2023-11-20 12:28:34 +02:00
Rob Bavey
cf00b29862
Update base image on ironbank to 8.8 (#15582) 2023-11-15 12:01:36 -05:00
Dimitrios Liappis
06d00405ca
[ci] Add yaml language server to pipelines (#15590) (#15591)
Add missing yaml-language-server definition to Buildkite pipeline files (static and dynamic generated) for consistency and to ease spotting errors with editors.

(cherry picked from commit cd01abb1c7)

Backport of #15590
2023-11-15 18:45:35 +02:00
github-actions[bot]
91e0d8a557
Doc: Add Elastic Agent collection (#15528) (#15589)
Co-authored-by: Rob Bavey <rob.bavey@elastic.co>
(cherry picked from commit c060c00d7c)

Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2023-11-15 09:29:12 -05:00
github-actions[bot]
4df57ee316
[ci] Fix image name for Rocky Linux 8 (#15584) (#15587)
Fix typo for image name of Rocky Linux 8 for JDK matrix jobs.

(cherry picked from commit ce63ea4a51)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2023-11-15 10:17:31 +02:00
github-actions[bot]
ad8e537059
bump lock file in preparation for 8.11.2 (#15586)
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2023-11-14 17:14:22 +00:00
github-actions[bot]
34c88e7f79
[ci] JDK matrix Buildkite pipelines (pt 2/Windows) (#15563) (#15567)
This commit adds JDK matrix Buildkite pipelines for
Windows 2022, 2019 and 2016.

It also makes the groups easier to read (on both Linux and Windows
pipelines) by removing the os-jdk prefix from the job labels.

`testDLQWriterFlusherRemovesExpiredSegmentWhenCurrentHeadSegmentIsEmpty`
fails on Windows Buildkite agents and it's a test issue tracked in
https://github.com/elastic/logstash/issues/15562.

Relates:

- https://github.com/elastic/logstash/pull/15539
- https://github.com/elastic/ingest-dev/issues/1725

(cherry picked from commit 0ede19a0e1)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2023-11-13 18:50:29 +02:00
github-actions[bot]
3d4e7e121d
Release notes for 8.11.1 (#15572) 2023-11-13 14:02:47 +00:00
João Duarte
9876ce105e
bump version to 8.11.2 (#15574) 2023-11-13 13:55:13 +00:00
github-actions[bot]
a233e9273b
[ci] JDK matrix Buildkite pipelines (part 1) (#15539) (#15555)
This commit is the first part of the migration of JDK matrix tests
from Jenkins to Buildkite. There will be two separate pipelines, for
Linux and Windows.

Linux is currently limited to Ubuntu 22.04 and 20.04, but
additional operating systems will be added outside of the Logstash
repository seamlessly through additional VM images.

Steps are created dynamically and the underlying script is meant to be
common for Linux and Windows. Windows is currently a stub and
will be added in a follow up PR.

Relates:

- https://github.com/elastic/ingest-dev/issues/1725
- https://github.com/elastic/ci-agent-images/pull/424

(cherry picked from commit 956bf483f2)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2023-11-10 15:36:11 +02:00
github-actions[bot]
c911c7565a
Fixed functional test in case the LS_JAVA_HOME is configured (#15535) (#15558)
Adds filtering on Logstash output message in an integration tests when setting LS_JAVA_HOME environment variable.

(cherry picked from commit 5af14f4e1c)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2023-11-10 13:45:12 +01:00
João Duarte
ed3b2724d1
downgrade jackson until #15405 is fixed (#15549) 2023-11-08 11:04:14 +00:00
Mashhur
3b3c2a81ad
Bump version to 8.11.1 (#15542) 2023-11-07 08:05:39 -08:00
github-actions[bot]
05125cc000
[ci] Split JDK matrix pipelines per OS (#15534) (#15536)
This commit splits the generic Buildkite pipelines introduced
in #15520 for JDK tests to separate pipelines for Linux and Windows.

(cherry picked from commit 07147b3e40)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2023-11-07 15:49:03 +02:00
github-actions[bot]
d4715a36c0
Release notes for 8.11.0 (#15465)
* Update release notes for 8.11.0

* Refine 8.11 Release Notes.

* 8.1 release note: alignment of SSL standardization sections of the plugin changes.

* [docs] 8.11 release note: move known issues to top.

* Apply suggestions from code review

Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>

* Add recently backported changes.

* Standardize the consistency of the tenses.

---------

Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
Co-authored-by: Mashhur <mashhur.sattorov@elastic.co>
Co-authored-by: Mashhur <99575341+mashhurs@users.noreply.github.com>
Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2023-11-06 16:19:24 -08:00
github-actions[bot]
83f4f0bbc3
[ci] Initial JDK matrix Buildkite pipeline (#15520) (#15521)
This commit adds a skeleton Buildkite pipeline for the JDK matrix tests.

Relates:

- https://github.com/elastic/logstash/pull/15519
- https://github.com/elastic/ingest-dev/issues/1725

(cherry picked from commit ccc41d76ff)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2023-11-02 18:57:29 +02:00
github-actions[bot]
47e09557a4
Download of JDK from the Elastic catalog instead of Adoptium (#15514) (#15515)
* Adapted the JDK's download URL creation to intereact with Elastic catalog to get metadata, and return the catalog download link instead of directly pointing to Adoptium API

* Silenced the Download task of JDK to print the full url

(cherry picked from commit 73daec05ed)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2023-10-30 17:03:10 +01:00
João Duarte
6e0bd7290c
Update JDK to 17.0.9+9 and jackson to 2.15.3 (#15510) 2023-10-27 11:26:03 +01:00
github-actions[bot]
f3c319d2d9
[ci] aarch64 Buildkite pipeline part 2 (#15473) (#15504)
This commit is the follow up PR after #15466, which migrates away
the remaining aarch64 acceptance test Jenkins jobs to Buildkite.

Relates:

- #15466
- https://github.com/elastic/ingest-dev/issues/1724

(cherry picked from commit c384190718)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2023-10-26 09:38:14 +03:00
github-actions[bot]
12a689112d
bump lock file for 8.11 (#15503)
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2023-10-25 15:51:59 +01:00
github-actions[bot]
856b87ff7f
Updates callsites synthax for i18n.t method to avoid deprecated and prohibited format (#15500) (#15501)
Updates invocations of i18n.t method which are leftovers and missed in the original Ruby 3.1 update PR #14861

Without this, some error reporting logs are hidden by the mismatch of arguments error in translate the error message.

(cherry picked from commit 90964fb559)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2023-10-25 12:28:07 +02:00
github-actions[bot]
c4ae135b0c
[ci] re-enable Java unit tests on aarch64 pipeline (#15492) (#15493)
PR#15466 skipped the Java unit tests as on the `main` and `8.11`
branches they attempted to run sonar scans (which are only meant to
run for PRs).

This commit re-enables the Java unit tests, taking advantage of #15486,
disabling the sonar scan part of the test suite.

(cherry picked from commit 16da966290)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2023-10-25 11:40:29 +03:00
github-actions[bot]
00afce36c8
Option to disable SonarQube with Java Tests (#15486) (#15491)
This commit introduces a way to optionally disable SonarQube scanning
and coverage reports when running Java unit tests. The integration
was introduced in #15279, however, there are cases (e.g. running Java
unit tests outside of PRs) where we don't want this integration.

Disabling can be achieved by setting the env var `ENABLE_SONARQUBE`
to `false`.

(cherry picked from commit b1ab2fad3e)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2023-10-24 11:16:09 +03:00
github-actions[bot]
124e90111c
[ci] aarch64 Buildkite pipeline part 1 (#15466) (#15481)
This commit is the first part of migrating away the aarch64 Jenkins
jobs to Buildkite. It adds a group of exhaustive test steps in the
aarch64 pipeline.

The java unit tests are temporarily disabled as they run SonarQube
scans which need to be associated with pull requests.

Relates:

https://github.com/elastic/ingest-dev/issues/1724
(cherry picked from commit 36656de4f0)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2023-10-24 09:24:02 +03:00
github-actions[bot]
9dea4e3d75
bump lock file for 8.11 (#15472)
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2023-10-18 16:47:04 +01:00