Commit graph

10645 commits

Author SHA1 Message Date
github-actions[bot]
81b61b176d
ensure order of jvm options from file and env vars is respected (#15997) (#16001)
Co-authored-by: Andrea Selva <selva.andre@gmail.com>
(cherry picked from commit 43614ede50)

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2024-03-12 09:22:22 +00:00
github-actions[bot]
3c94369a99
Split java/ruby unit test steps on Windows (#15888) (#15993)
As a follow up to #15861 this commit splits the current unit tests step
for the Windows JDK matrix pipeline to two that run
Java and Ruby unit tests separately.

Closes https://github.com/elastic/logstash/issues/15566

(cherry picked from commit c0c213d17e)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2024-03-11 10:56:34 +02:00
github-actions[bot]
cb8f4c7626
Fix the Bootstrap check test failure on Windows. (#15975) (#15990)
(cherry picked from commit 19637143e6)

Co-authored-by: Mashhur <99575341+mashhurs@users.noreply.github.com>
2024-03-11 10:12:08 +02:00
João Duarte
7090b7a029
bump to 8.12.3 (#15966) 2024-02-22 11:27:37 +00:00
github-actions[bot]
2c89bcfc7b
Release notes for 8.12.2 (#15956)
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2024-02-20 23:20:01 +00:00
github-actions[bot]
ee9dfd3326
bump lock file for 8.12.2 (#15955) 2024-02-16 15:47:54 +00:00
github-actions[bot]
afdf511514
Follow up to #15900 -- fix remaining acceptance tests (#15907) (#15952)
PR#15900 missed a few more places where Logstash is installed but
a working minimal pipeline config is added.
This commit fixes that and stabilizes all acceptance tests, thus
minizing the need for time consuming BK retries of corresponding
steps.

Relates #15900
Relates https://github.com/elastic/logstash/issues/15784

(cherry picked from commit 54f73e5d22)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2024-02-15 12:51:36 +02:00
github-actions[bot]
95117b0833
Fix packaging service check failures (#15946) (#15949)
This commit tightens the checks for the status
output of the Logstash OS service to specifically
scan for `org.logstash.Logstash` rather than
only the jdk path.

The reason is that the startup script first runs
an options parser, and then the logstash process
itself, both referencing the JDK path.

Closes https://github.com/elastic/ingest-dev/issues/2950

(cherry picked from commit eedccea33f)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2024-02-15 10:30:48 +02:00
Dimitrios Liappis
0996c64e4d
Clean up left over scripts after CI migration (#15926) (#15936)
Following the CI migration from Jenkins to Buildkite, this commit
removes a number of left over helper scripts that aren't needed
anymore.

Closes https://github.com/elastic/ingest-dev/issues/2850
2024-02-13 14:06:22 +02:00
kaisecheng
0966f3c83c
add openssl to ubi image (#15931)
Logstash on ECK requires openssl command to build TLS keystore.
This commit adds `microdnf install -y openssl` to ensure the command exists in ubi image.
2024-02-09 20:00:05 +00:00
github-actions[bot]
2a5c4c906f
Backport PR #15925 to 8.12: Set Netty's maxOrder options to previous default (#15928)
Updates Netty's configuration of maxOrder to a previously proven value, if not already customised by the user.

Adds a step to the JvmOption parsing tool, which is used to compose the JVM options string to pass down to Logstash at startup.
The added step rework the parsed options to set the allocator max order -Dio.netty.allocator.maxOrder=11 so that the maximum pooled buffer is up to 16MB and not 4MB.
This option is added iff it's not yet specified by the user

(cherry picked from commit 52ce3ff8f6)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2024-02-09 15:01:39 +01:00
github-actions[bot]
1cca6bcb2c
introduce go.mod for env2yaml (#15921) (#15922)
Update the env2yaml to have a go.mod instead of relying on disabling go modules, otherwise building with golang 1.22 will fail in the future.
This change also directly uses the golang image to build the binary removing the need for an intermediate image.

(cherry picked from commit 5c3e64d591)

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2024-02-08 18:13:14 +00:00
Mashhur
ec21c3dddc
Version bump to 8.12.2 (#15909) 2024-02-06 09:27:34 -08:00
github-actions[bot]
bdbd811d3e
Fix service startup with acceptance tests (#15900) (#15904)
This commit fixes the startup of the Logstash service during packaging
tests by adding a minimal pipeline config. Without it, the service was
flapping from start to start and vice versa causing test flakiness.

Relates https://github.com/elastic/logstash/issues/15784

(cherry picked from commit b66dc7f460)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2024-02-06 18:06:58 +02:00
github-actions[bot]
283d02ffb5
Add retries to acceptance/docker steps in BK (#15901) (#15902)
Similarly to #15874, this commit adds retries
to another group, the acceptance/docker to reduce
build noise from transient issues.

(cherry picked from commit 2fc3f4c21f)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2024-02-06 16:10:51 +02:00
github-actions[bot]
326f33001d
Add Debian 12 to CI (#15895) (#15898)
This commit adds Debian 12 (Bookworm) to the
Linux JDK matrix pipeline and Compat Phase of the
exhaustive pipeline respectively.

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

(cherry picked from commit fedcf58c48)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2024-02-06 09:15:18 +02:00
github-actions[bot]
1b8648b365
Release notes for 8.12.1 (#15885)
* Update release notes for 8.12.1

* Revise 8.12.1 relase notes.

---------

Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
Co-authored-by: Mashhur <mashhur.sattorov@elastic.co>
2024-02-05 13:50:15 -08:00
github-actions[bot]
07216a486b
Allow running Java+Ruby tests on Windows separately (#15861) (#15886)
This commit allows separate running of Java and Ruby tests on Windows i.e. the same way as we currently do on unix (unit_tests.sh) via a cli argument.
If no argument has been supplied, both tests are run (as it does now).

The wrapper script is also rewritten from old batch style script to Powershell.

This work allows us to split the existing Windows CI job in a subsequent PR to separate steps, as we currently do on Linux.

Relates: https://github.com/elastic/logstash/issues/15566
(cherry picked from commit 8ac55184b8)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2024-02-01 10:40:12 +02:00
github-actions[bot]
c7e185a56a
bump lock file for 8.12 (#15884)
* Update patch plugin versions in gemfile lock

* Update Gemfile.jruby-3.1.lock.release

Remove undesired `universal-java-11` dependency.

* Add base64 dependency license.

---------

Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
Co-authored-by: Mashhur <99575341+mashhurs@users.noreply.github.com>
Co-authored-by: Mashhur <mashhur.sattorov@elastic.co>
2024-01-31 08:55:33 -08:00
github-actions[bot]
ff840751a9
Add retries to JDK matrix pipeline steps (#15877) (#15878)
This commit adds retries to the steps of the Linux + Windows JDK matrix
pipeline steps to avoid notification noise due to transient network
errors.

(cherry picked from commit 3b747d86b8)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2024-01-30 18:57:44 +02:00
github-actions[bot]
d19de71456
Add BK retries to exhaustive/compat steps (#15874) (#15875)
As a follow up to #15787 we also add Buildkite retries for the
exhaustive pipeline / compatibility group steps to prevent
failures due to flakiness.

(cherry picked from commit 88a32cca81)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2024-01-30 15:01:37 +02:00
github-actions[bot]
8bac7c8169
Remove Ubuntu 18.04 from CI jobs (#15855) (#15859)
Relates https://github.com/elastic/ingest-dev/issues/2849

(cherry picked from commit 3f5b44a1ad)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2024-01-26 17:41:48 +02:00
github-actions[bot]
ff63e289b0
Doc: Update extending integrations docs to point to plugin (#15747) (#15853)
(cherry picked from commit cefd553a7d)

Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2024-01-25 11:28:19 -05:00
github-actions[bot]
890089acb7
Retries for serverless-integration-testing pipeline (#15851) (#15852)
This commit adds (up to 3) retries for all steps of the `serverless-integration-testing`
pipeline as a stop-gap measure to prevent network related transient failures.

(cherry picked from commit 0d808ed708)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2024-01-25 17:46:59 +02:00
github-actions[bot]
9277e1bf7f
Updates bundled JDK (#15840) (#15846)
* Updates bundled JDK

Co-authored-by: kaisecheng <69120390+kaisecheng@users.noreply.github.com>
(cherry picked from commit 1395d953b2)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2024-01-24 11:18:29 +01:00
github-actions[bot]
60b604f1b0
Mute DLQ test on Windows (#15843) (#15845)
This commit mutes the DLQ test:
`testDLQWriterFlusherRemovesExpiredSegmentWhenCurrentHeadSegmentIsEmpty`
when running on Windows.

Closes https://github.com/elastic/logstash/issues/15768

(cherry picked from commit c33afd4cd0)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2024-01-24 10:28:14 +02:00
github-actions[bot]
19c39f80af
Fix IT tests after version bumps (#15827) (#15838)
This commit fixes IT failures that frequently occur after
version bumps due to missing unified release snapshot builds for
the new version.

This commit uses project specific DRA snapshot URLs for ES and Filebeat
in all cases apart from release builds.

Closes #2825

(cherry picked from commit d74fea4b55)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2024-01-23 15:45:58 +02:00
github-actions[bot]
b91c775e67
Fix acceptance/packaging upgrade test near a release (#15826) (#15829)
The current mechanism of discovering the latest released version per
branch (via ARTIFACTS_API) isn't foolproof near the time of a new
release, as it may be pick a version that hasn't been released
yet. This leads to failures[^1] of the packaging upgrade tests, as we
attempt to download a package file that doesn't exist yet.

This commit switches to an API that that is more up to date regarding
the release version truth.

[^1]: https://buildkite.com/elastic/logstash-exhaustive-tests-pipeline/builds/125#018d319b-9a33-4306-b7f2-5b41937a8881/1033-1125

(cherry picked from commit 15e19a96c2)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2024-01-22 21:15:42 +02:00
github-actions[bot]
1577537ad3
Annotate successful DRA builds with summary URL (#15820) (#15825)
This commit makes the generated DRA URL easily accessible via
a Buildkite annotation.

Closes https://github.com/elastic/ingest-dev/issues/2608

(cherry picked from commit c5cb1fe2ed)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2024-01-22 17:04:33 +02:00
github-actions[bot]
94d3839f4a
Fix flaky logstash-plugin IT test (#15803) (#15817)
This commit fixes the flaky IT test:
`install non bundle plugin successfully installs the plugin with debug enabled`
by being a bit more lenient with the output which can get garbled by Bundler.

Closes #15801

(cherry picked from commit fc09ad4112)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2024-01-18 15:34:16 +02:00
github-actions[bot]
9834f588b6
Enable packaging tests in exhaustive pipeline (#15781) (#15805)
This commit adds the packaging tests (that were refactored in #15696
to not rely on Vagrant) in a new "acceptance" group.

Relates: https://github.com/elastic/ingest-dev/issues/1722
(cherry picked from commit 16c4d8827e)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2024-01-17 18:21:20 +02:00
github-actions[bot]
2ae452ee25
Refactor qa/acceptance tests to get away from vagrant (#15696) (#15751)
This commit modernizes the qa/acceptance (packaging) test framework by
moving away from Vagrant and having the tests operate locally.

As we are migrating to Buildkite, the expectation is that those tests
will run on dedicated vms thus removing the necessity of vagrant.

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

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2024-01-17 18:20:16 +02:00
João Duarte
6d0b60e339
bumped version to 8.12.1 (#15814) 2024-01-17 13:06:29 +00:00
github-actions[bot]
d5d363208b
Release notes for 8.12.0 (#15804)
---------

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>
2024-01-16 18:03:39 -05:00
github-actions[bot]
6194120e90
Add Docker acceptance to exhaustive BK pipeline (#15748) (#15799)
This commit adds the Docker acceptance tests in the acceptance phase
of the exhaustive tests pipeline.

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

(cherry picked from commit fca1fccb66)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2024-01-12 09:49:55 +02:00
github-actions[bot]
f43ea43aec
Doc: Add monitoring for serverless (#15636) (#15796)
(cherry picked from commit 968fb24450)

Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2024-01-11 16:40:58 -05:00
github-actions[bot]
c5acb696bd
Add retries to PR pipeline steps (#15787) (#15793)
There is occasional flakiness mainly with IT tests requiring us to
manually retry such failures when we raise PR (or the first
group of the exhaustive suite, which runs the same steps).

This commit adds up to 3 retries for all the steps of the PR
pipeline.

(cherry picked from commit 739e8a3ef0)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2024-01-11 17:17:47 +02:00
github-actions[bot]
677ffdcbd3
Release notes for 8.11.4 (#15753) (#15778)
* Update release notes for 8.11.4

(cherry picked from commit 93e786fd0f)
2024-01-10 13:00:33 +01:00
github-actions[bot]
0eb03ad098
Bump Puma lower version constraint to >= 6.4.2 (#15773) (#15776)
(cherry picked from commit 50a589493c)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2024-01-10 10:22:36 +00:00
github-actions[bot]
05a10cbceb
bump lock file for 8.12 (#15775)
Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2024-01-10 10:20:54 +00:00
github-actions[bot]
7206730419
Run BK exhaustive pipeline when code is pushed (#15738) (#15770)
This commit enables running the exhaustive tests Buildkite pipeline
(i.e. the equivalent to the `main` Jenkins tests) ; the trigger is
code events, i.e. direct pushes, merge commits and creation of new branches.

CI is skipped if changes are only related to files under `docs/`.

(cherry picked from commit c8726b79f3)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2024-01-10 11:34:41 +02:00
github-actions[bot]
dccb2cec80
Separate scheduling of segments flushes from time (#15680) (#15697)
Introduces a new interface named SchedulerService to abstract from the ScheduledExecutorService to execute the DLQ flushes of segments. Abstracting from time provides a benefit in testing, where the test doesn't have to wait for things to happen, but those things could happen synchronously.

(cherry picked from commit 6b22cc8dd1)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2024-01-09 10:03:07 +00:00
github-actions[bot]
21ccd8cb5d
Add system properties to configure Jackson's stream read constraints (#15720) (#15763)
This commit added a few jvm.options properties to configure the Jackson read constraints defaults (Maximum Number value length, Maximum String value length, and Maximum Nesting depth).

(cherry picked from commit a21ced0946)

Co-authored-by: Edmo Vamerlatti Costa <11836452+edmocosta@users.noreply.github.com>
2024-01-08 17:03:18 +00:00
github-actions[bot]
f207e2ea73
Pin childprocess gem to major version 4 (#15758) (#15760)
This commit pins the `childprocess` gem to version `4` since version `5.0.0` of
https://github.com/enkessler/childprocess/pull/175 seems to have broken JRuby support for spawning.

Closes https://github.com/elastic/logstash/issues/15757

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
(cherry picked from commit 9f1d55c6a2)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2024-01-08 18:57:57 +02:00
github-actions[bot]
cd0cdca811
JUnit result annotation for Buildkite PR jobs (#15741) (#15744)
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:48:51 +02:00
github-actions[bot]
25a381b253
Fix logstash-keystore multiple keys operations with command flags (#15737) (#15739)
This commit fixes how the keystore tool handle the command's options, including validation for unknown options, and adding the --stdin flag to the add command.

(cherry picked from commit 41ec183f09)

Co-authored-by: Edmo Vamerlatti Costa <11836452+edmocosta@users.noreply.github.com>
2024-01-03 18:36:05 +00:00
github-actions[bot]
e9213e952e
Skip input step when triggering JDK matrix jobs (#15733) (#15734)
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:29 +02:00
github-actions[bot]
beb60bf7f6
Don't block triggered JDK matrix Buildkite jobs (#15729) (#15730)
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 12:20:22 +02:00
github-actions[bot]
3dbeb0fcb9
[ci] Add testing phase to exhaustive tests suite (#15711) (#15716)
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:15 +02:00
github-actions[bot]
7b05c93020
[ci] Reusable unit + IT test steps for Buildkite (#15708) (#15712)
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-21 09:44:17 +02:00