Commit graph

10174 commits

Author SHA1 Message Date
github-actions[bot]
23071f575f
JUnit result annotation for Buildkite PR jobs (#15741) (#15746)
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:32 +02:00
github-actions[bot]
82b2b9609b
Skip input step when triggering JDK matrix jobs (#15733) (#15736)
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:36:03 +02:00
github-actions[bot]
a25ba1c858
Don't block triggered JDK matrix Buildkite jobs (#15729) (#15732)
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:29 +02:00
github-actions[bot]
8cf1ce2762
[ci] Add testing phase to exhaustive tests suite (#15711) (#15718)
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 10:13:30 +02:00
github-actions[bot]
edd6c5acef
[ci] Reusable unit + IT test steps for Buildkite (#15708) (#15713)
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:37 +02:00
João Duarte
4b29dac252
bump to 7.17.17 (#15683) 2023-12-12 10:08:50 +00:00
github-actions[bot]
089bfe9e53
Release notes for 7.17.16 (#15659)
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2023-12-07 09:13:45 -05:00
github-actions[bot]
a461023f5a
Shutdown DLQ segments flusher only if it has been started (#15649) (#15657)
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:59:04 +01:00
github-actions[bot]
32ca361cd4
Update patch plugin versions in gemfile lock (#15652)
Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
2023-12-04 15:50:44 +00:00
github-actions[bot]
06acff465a
[ci] Compatibility tests for Exhaustive suite (#15641) (#15646)
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:53:50 +02:00
Dimitrios Liappis
6b88748221
[ci] Switch to Adoptium JDK 11 for Jenkins CI (#15635)
This commit is a manual backport of #15628 on the 7.17 branch.
Since 7.17 uses Java 11, we switch to the adoptium variant, which is
still receiving updates (latest available is `11.0.21+9` as of now.)
2023-11-29 12:49:11 +02:00
github-actions[bot]
fff1b277b2
[ci] Switch to Adoptium distro for JDK 11 (#15629) (#15634)
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:19 +02:00
github-actions[bot]
807530b99a
[ci] Fix scheduled JDK matrix CI jobs (#15623) (#15626)
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:32:52 +02:00
github-actions[bot]
1e61146288
[ci] Initial Exhaustive tests Buildkite pipeline (#15607) (#15616)
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:59 +02:00
github-actions[bot]
ad34b887f7
[ci] Use GCP prod image for Linux JDK matrix job (#15600) (#15603)
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:10:12 +02:00
Dimitrios Liappis
b2aad94c89
[ci] Add yaml language server to pipelines (#15590) (#15592)
Add missing yaml-language-server definition to Buildkite pipeline files
(static and dynamic generated) for consistency and to ease spotting
errors with editors.
2023-11-20 17:23:47 +02:00
github-actions[bot]
04c6ae40ae
[ci] Support amazonlinux for JDK matrix pipeline (#15595) (#15597)
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:10:19 +02:00
github-actions[bot]
440cfb464e
[ci] Fix image name for Rocky Linux 8 (#15584) (#15588)
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:44 +02:00
github-actions[bot]
56812c359e
[ci] JDK matrix Buildkite pipelines (pt 2/Windows) (#15563) (#15569)
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:51:16 +02:00
github-actions[bot]
7302a0067c
Release notes for 7.17.15 (#15573)
Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2023-11-13 14:28:38 +00:00
João Duarte
176a2ca23f
bump version to 7.17.16 (#15575) 2023-11-13 13:55:17 +00:00
github-actions[bot]
44b6ec5016
[ci] JDK matrix Buildkite pipelines (part 1) (#15539) (#15556)
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-09 11:18:27 +02:00
github-actions[bot]
45aa3584ad
[ci] Split JDK matrix pipelines per OS (#15534) (#15538)
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:47:56 +02:00
github-actions[bot]
bc96364877
[ci] Initial JDK matrix Buildkite pipeline (#15520) (#15523)
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:23:12 +02:00
github-actions[bot]
c998e4f091
[ci] aarch64 Buildkite pipeline part 2 (#15473) (#15506)
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:39:17 +03:00
github-actions[bot]
ffd026a806
[ci] re-enable Java unit tests on aarch64 pipeline (#15492) (#15495)
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 12:00:46 +03:00
github-actions[bot]
3d3b60ad51
[ci] aarch64 Buildkite pipeline part 1 (#15466) (#15482)
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:57 +03:00
github-actions[bot]
9d56c7aa36
[ci] Initial aarch64 Buildkite pipeline (#15460) (#15469)
This commit adds a skeleton Buildkite pipeline for aarch64
exhaustive tests.

- https://github.com/elastic/logstash/pull/15459
- https://github.com/elastic/ingest-dev/issues/1724

(cherry picked from commit 0083738cde)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2023-10-18 14:48:01 +03:00
github-actions[bot]
e3f4d9cb8a
[docs] Small typo fixes in README (#15429) (#15457)
Fix a few typos in the Logstash README.md

(cherry picked from commit 784ca0243e)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2023-10-16 18:33:53 +03:00
github-actions[bot]
f959972cda
Migrate remaining PR jobs to Buildkite #15444 (#15449)
This commit adds the remaining steps for the Buildkite pull request pipeline i.e.

- `IT Persistent Queues / part 1`
- `IT Persistent Queues / part 2`
- `x-pack unit tests`
- `x-pack integration`

Once merged we will be able to retire the corresponding Logstash pull request multijob.

Relates:

- https://github.com/elastic/logstash/pull/15438
- https://github.com/elastic/logstash/pull/15437
- https://github.com/elastic/ingest-dev/issues/1721
- https://github.com/elastic/logstash/pull/15279

(cherry picked from commit 555a8ff8e3)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2023-10-16 10:25:45 +03:00
github-actions[bot]
763a2d0048
[ci] Add PR it-tests (part 1+2) to Buildkite (#15438) (#15447)
This commit adds integration tests to the
Buildkite PR pipeline.

Relates:

- https://github.com/elastic/logstash/pull/15437
- https://github.com/elastic/ingest-dev/issues/1721
- https://github.com/elastic/logstash/pull/15279

(cherry picked from commit 816d7e6b2b)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2023-10-13 21:45:33 +03:00
github-actions[bot]
0529308ceb
[ci] Commit PR based Java unit tests for Buildkite (#15437) (#15443)
This commit adds Java unit tests (including sonar scans) to the
Buildkite pull request pipeline.

Relates: https://github.com/elastic/ingest-dev/issues/1721
(cherry picked from commit e285425d54)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2023-10-13 12:57:39 +03:00
Dimitrios Liappis
8ca4d205e3
[ci] Backport Buildkite PR pipeline to 7.17 (#15432)
This is a backport of the initial Pull Request pipeline for Buildkite.

While currently we haven't migrated all PR jobs from Jenkins, this is needed so PRs against non `main` branches don't fail this step (also giving us the possibility to test functionality against non `main` branches).

Relates:

- #15402
- #15413
- #15415
- #15421
- https://github.com/elastic/ingest-dev/issues/1721

## Release notes
[rn:skip]
2023-10-12 17:06:56 +03:00
Mashhur
3fd2a9c121
Bump core to 7.17.15 (#15423) 2023-10-10 10:16:03 -07:00
github-actions[bot]
34824fc464
Release notes for 7.17.14 (#15389)
Co-authored-by: Mashhur <mashhur.sattorov@elastic.co>
2023-10-09 17:57:15 -04:00
Dimitrios Liappis
f6f88d691b
[ci] Build 7.17 DRA using Ubuntu 20.04 (#15398)
We discovered[^1] that JRuby 9.2 and 9.3 have an issue when using
FileUtils with Glibc >2.34 (e.g. on Ubuntu 22.04).

This commit switches to Ubuntu 20.04 VM images for building DRA
artifacts with branch 7.17.

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

[^1]: https://github.com/jruby/jruby/pull/7611#issuecomment-1750387837
2023-10-06 20:54:50 +03:00
Dimitrios Liappis
c85ec893aa
[ci] Backport Buildkite DRA pipeline+scripts to 7.17 (#15393)
This is a backport of the DRA pipeline and related scripts from:

- #15366
- #15365
- #15356
- #15352
- #15344
- #15343
- #15337
- #15312

Note that it's a manual backport because some PRs (e.g. #15312) contain files (`catalog-info.yaml`) that should only
live on the `main` branch.
2023-10-06 09:42:16 +03:00
github-actions[bot]
bec46248d0
Update patch plugin versions in gemfile lock (#15388)
Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
2023-10-04 12:31:42 -07:00
Andrea Selva
694ef69c45
Updates installDefaultGems task to replace Xerces (#15357)
Replaces the Xerces version shipped with Nokogiri
2023-09-28 16:49:41 +02:00
github-actions[bot]
b5d03c5e8e
fix NPE when getting native thread id (#15301) (#15322)
This commit adds null guard to get the native thread when constructing pipeline report

Fix: #15300
(cherry picked from commit cd78558121)

Co-authored-by: kaisecheng <69120390+kaisecheng@users.noreply.github.com>
2023-09-14 21:03:04 +01:00
João Duarte
449b771e05
Update .ruby-version to jruby-9.2.20.1 (#15309) 2023-09-07 14:30:08 +01:00
Andrea Selva
5c93249735
Bump 7.17.14 (#15292) 2023-09-05 13:18:34 +01:00
github-actions[bot]
e2047573fa
Release notes for 7.17.13 (#15289)
* Update release notes for 7.17.13
---------

Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
Co-authored-by: andsel <selva.andre@gmail.com>
Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2023-09-04 21:52:58 +01:00
github-actions[bot]
5da87b98ca
Update patch plugin versions in gemfile lock (#15285)
Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
2023-08-29 14:22:03 +02:00
Andrea Selva
73a43a9b78
Update Puma on 7.17 (#15274) 2023-08-23 08:35:36 +02:00
Rob Bavey
81e5ddb04a
Version Bump to 7.17.13 (#15218) 2023-07-25 09:12:04 -04:00
João Duarte
8ba25a9d9e
Update JDK to 11.0.20+8 (#15216) 2023-07-25 10:13:32 +01:00
github-actions[bot]
fce9da92dd
Release notes for 7.17.12 (#15199)
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
Co-authored-by: Edmo Vamerlatti Costa <11836452+edmocosta@users.noreply.github.com>
2023-07-24 19:20:00 -04:00
github-actions[bot]
3a4bd272c8
Fix typo that caused subtitle not to show (#15202) (#15203)
(cherry picked from commit b082e519c0)

Co-authored-by: Andres Rodriguez <andres.lazo@elastic.co>
2023-07-20 13:09:30 -04:00
Mashhur
fb45b171b8
Upgrade dependencies, remove deprecated dependencies. (#15134)
* upgrades logstash-mixin-aws to 5.1.0
* removes unused aws-sdk-v1 dependency.
* upgrades json version to 2.6.3
* upgrades fpm to 1.14.1 where 13.x versions.
2023-07-18 11:16:55 +01:00