Commit graph

275 commits

Author SHA1 Message Date
Andrea Selva
2ae5a665b6
Update CI versions after release 7.17.0 (#13697) 2022-02-01 16:55:24 +01:00
Rob Bavey
8fc4ea5585
Bump releases json after 6.8.23, 7.16.3 and 8.0.0-rc1 (#13618) 2022-01-13 17:20:22 -05:00
Karol Bucek
94d04f8044
CI: update releases and test against 7.17 SNAPSHOT (#13607) 2022-01-12 12:00:38 +01:00
Karol Bucek
0c2645c9c6
CI: update releases after 7.16.0 & 7.16.1 (#13482) 2021-12-15 13:24:39 +01:00
Rob Bavey
0cba1e5671
Use $BUILD_JAVA_HOME to control JVMs used with acceptance tests (#13471)
* Use $BUILD_JAVA_HOME to control JVM builds on acceptance tests and docker acceptance tests
2021-12-06 11:24:43 -05:00
Rob Bavey
3aa5741e68
Update logstash-releases.json (#13418)
This update incorporates:
  * Latest logstash release on `7.15` branch
  * Release of 8.0.0-beta1
  * Update of 8.x snapshot to 8.1.0-SNAPSHOT

This follows the precedence of #10627 to update snapshot release of 8.x to 8.1 following pre-GA releases
of major branch.
2021-11-23 09:00:32 -05:00
Karol Bucek
258b8b555c
Chore: update tested (ci) releases for 7.x / 6.x (#13335) 2021-10-19 09:36:19 +02:00
kaisecheng
a876f6479e
update ci releases to 7.15.0 (#13245) 2021-09-27 11:26:54 +02:00
Andrea Selva
5e9207f6bb
Update Logstash releases with latest 6.8.19 (#13241) 2021-09-21 16:16:15 +02:00
Andrea Selva
643fee7c8a
Update Logstash releases with latest 7.14.2 (#13240) 2021-09-21 14:52:00 +02:00
Andrea Selva
c0c2473f15
Update logstash_releases.json with 7.14.1 (#13193) 2021-09-02 09:56:52 +02:00
Andrea Selva
7d8a716cf0
Update releases list (#13149)
Update releases list, aligning with 7.14.0 and 6.8.18. With ES 7.14.0 and security on by default, this PR alsoswithed off security on ES in integration tests
2021-08-20 08:24:58 +02:00
Rob Bavey
4707cbd94c
Bundler: freeze lockfile on run, and "normalize" platform on plugin changes (#13015)
This PR enables the upgrade of bundler to the latest version.

Prior to this PR, the ability to do so was blocked by bundler.setup in versions of bundler > `2.23` making runtime changes to `Gemfile.lock` (unless the lock file was `frozen`) based on the specific platform the application was being run on, overriding any platforms (including generic `java` platform) set during build time. This was in conflict with changes made in #12782, which prevented the logstash user writing to files in `/usr/share/logstash`.

This PR will freeze the lockfile when logstash is run, and unfreeze it when manipulating plugins (install, update, remove, install from offline pack) to allow new plugins to be added. While unfrozen, changes are also made to ensure that the platform list remains as the generic `java` platform, and not changed to the specific platform for the runtime JVM.

This PR also introduces a new runtime flag, `--enable-local-plugin-development`. This flag is intended for use by Logstash developers only, and enables a mode of operation where a Gemfile can be manipulated, eg

```
gem "logstash-integration-kafka", :path => '/users/developer/code/plugins/logstash-integration-kafka'
```

to facilitate quick and simple plugin testing.

This PR also sets the `silence_root_warning` flag to avoid bundler printing out alarming looking warning messages when `sudo` is used. This warning message was concerning for users - it would be printed out during normal operation of `bin/logstash-plugin install/update/remove` when run under `sudo`, which is the expected mode of operation when logstash is installed to run as a service via rpm/deb packages. 

This PR also updates the vagrant based integration tests to ensure that Logstash still runs after plugin update/install/remove operations, fixes up some regular expressions that would cause test failures, and removes some dead code from tests.

## Release notes

* Updated Bundler to latest version
* Ensured that `Gemfile.lock` are appropriately frozen
* Added new developer-only flag to facilitate local plugin development to allow unfrozen lockfile in a development environment
2021-08-17 09:35:30 -04:00
Andrea Selva
87697fd113
Update releases list with 7.13.4 (#13088) 2021-07-21 09:43:05 +02:00
João Duarte
5aec68b08a
Update releases list with 6.8.17 and 7.13.3 (#13041) 2021-07-07 20:04:31 +01:00
Karol Bucek
18314d1ccb
CI: Update logstash_release.json after 7.3.12 (#12986) 2021-06-15 13:14:46 +02:00
Andrea Selva
5e1ab721ae
Update logstash_release.json after 6.8.16 and 7.13.0 (#12929) 2021-05-25 15:25:16 +02:00
João Duarte
3c6a476bb6
Update logstash_releases.json 2021-05-06 11:26:00 +01:00
Rob Bavey
ea92b9d529
Update logstash_releases.json (#12745) 2021-03-11 10:31:31 -05:00
João Duarte
a51ba426b7
List 7.11.1 in the logstash_releases.json file (#12679) 2021-02-17 19:16:12 +00:00
João Duarte
0c762fe888
Update Logstash versions in logstash_releases.json (#12654) 2021-02-10 15:26:59 +00:00
João Duarte
2f890abab1
Update versions file with new 7.10.2 release (#12575) 2021-01-15 12:27:36 +00:00
andsel
f9061ff6d5 Updated releses to 7.10.1 for 7.x 2020-12-09 03:29:03 -08:00
Rob Bavey
eed7a1538c
Update releases file (#12445)
Update latest release `7.x` version to `7.10.0`
Update latest snapshot `7.x` version to `7.11.0-SNAPSHOT`
2020-11-17 09:03:20 -05:00
andsel
0449722635 Update logstash_releases.json for 7.10.1 cycle 2020-11-11 07:33:20 -08:00
andsel
b5a3754f30 Updates releases file after 7.9.3 and 6.8.13 2020-10-26 02:33:15 -07:00
Rob Bavey
0aac7eb6d1
Update releases json after 7.9.2 release (#12281) 2020-09-29 10:39:56 -04:00
João Duarte
82739597d9
Update releases file since 7.9.1 is out (#12222) 2020-09-03 16:21:21 +01:00
Rob Bavey
ec2514d814 Minor fixes to acceptance and docker test scripts 2020-08-20 07:35:49 -07:00
Rob Bavey
1c675aa74b Add UBI8 docker image to artifacts
This commit adds the rake docker_ubi8 rake task, and associated
changes to the docker template and makefiles.

This commit also refactors the acceptance tests to extract xpack tests
into a helper class to allow the same tests to be used in both 'full'
and 'ubi8' docker image tests
2020-08-20 07:35:49 -07:00
João Duarte
363101bc8c
Updated new releases: 6.8.12 and 7.9.1 (#12187) 2020-08-18 15:41:37 +01:00
Ry Biesemeyer
cc1f0242ed
Update releases metadata to point to current snapshots/releases (#12159)
Prevents build errors in plugins that rely on Elasticsearch snapshot packages
for integration tests.
2020-08-03 17:17:18 -07:00
Rob Bavey
2d1e6d968f
Introduce integration tests for docker images (#12135)
* Introduce integration tests for docker

This commit adds integration tests for the Logstash docker images. Previous
integration tests were removed in https://github.com/elastic/logstash/pull/10693,
due to the tests being non functional.

The commit adds image and container tests. The image tests check the contents and the
metadata of the image; the container tests check the logstash process, and includes tests
ensuring that logstash runs, and is configurable.

This test also adds a ci script to allow the tests to be run on jenkins, and to split the
running of these tests up based on the image type and includes updates to the rake tasks to
support this.
2020-07-31 14:34:40 -04:00
Joao Duarte
1d80d3aa5a add ci script setup dependencies
This script can be useful for preparing the environment for
services like code scanners.
2020-07-16 02:09:54 -07:00
Andrea Selva
48eaec7622
Pass FEATURE_FLAG as Docker environment variable (#11922)
Some QA tests reads the FEATURE_FLAG environment variable, for example to test PQ functionality.
This PR passthrough the environement variable inside the Docker instance.
2020-06-04 15:55:02 +02:00
Rob Bavey
4ac8ae799f
Update logstash-releases.json (#11903)
6.8.9 and 7.7.0 have been released, update the list of releases
2020-05-16 08:38:00 +01:00
Andrea Selva
6a727ca168
Fix: chaining of GRADLE_OPTS (#11878)
Added test to avoid inserting and empty space in GRADLE_OPTS, and moved echo command outside of if to make it effective
2020-05-07 16:36:02 +02:00
Andrea Selva
fb8108e63b
Fix: missed 'set' to assign environment variable and log it (#11869)
In batch shell to assign a variable we need set, else the shell interpreter log an error and continue

Close #11869
2020-05-07 09:12:27 +02:00
Andrea Selva
fa2fb6cfa9
Fix: condition to check environment variable was inverted (#11865)
To run unit tests with specific JDKs under Windows OS we have to check for the existence of BUILD_JAVA_HOME. The test logic was inverted

Close: #11865
2020-05-05 17:47:49 +02:00
Andrea Selva
1971e9e8ee
Defined the versions of JDK to use in test build separated by OS (#11768) 2020-04-09 18:58:24 +02:00
Rob Bavey
58314a7f0e
Update gradle version to 6.3 (#11742)
* Update gradle version to 6.3

Gradle versions prior to 6.3 cannot run under JDK14.
This commit upgrades the version of Gradle to 6.3, and removes all deprecation warnings that can currently be removed.

Changes include:
* Increase gradle memory to 2g
* Increase gradle memory in the license check job to 2g
* Replace use of `testCompile`
* Replace `runtime` with `runtimeOnly`
* Remove`compile` depedencies from gradle files
* Replace deprecated archive methods
* Fix dependencies report build
* Make jruby dependencies 'api', fix archiveVersion
* Set `duplicatesStrategy` for all tasks of type Copy
* Use `configureEach` for global 'withType' calls
** Use the recommended Tasks API calls
(https://blog.gradle.org/preview-avoiding-task-configuration-time)
* Run `./gradlew wrapper` earlier to improve caching
* Use copy with chown for resources that need to be run during `./gradlew wrapper`
2020-04-07 12:49:36 -04:00
andsel
b2d1b880a6 Introduced JDK environment variable to explicitly pass the JAVA_HOME to use, expanded Xmx usable by Gradle
Fixes #11708
2020-03-30 10:53:18 +00:00
Rob Bavey
786d5851c2
Update Logstash release for 6.8 branch to 6.8.7 (#11659)
Released version of logstash for 6.8 branch was inadvertently changed
 to the next version on the 6.8 branch, rather than the latest released
 version.
2020-03-05 12:44:34 -05:00
João Duarte
8698ec068f
Update logstash_releases.json with 6.8.8 and 7.6.1 (#11658) 2020-03-05 13:58:18 +00:00
Rob Bavey
704e247e32
Updated releases.json after 7.6.0 release (#11595) 2020-02-12 08:56:25 -05:00
Joao Duarte
a36fdb9050 fail license report job on missing licenses
Fixes #11554
2020-01-31 12:36:41 +00:00
Ry Biesemeyer
715295cdbe Update logstash_releases.json to include 6.8.6 and 7.5.1 releases (#11454) 2020-01-03 09:49:25 +00:00
João Duarte
f078458ab5
Update logstash_releases.json (#11364)
Updates:

* 7.x to 7.5.0
* 7.x snapshot to 7.6.0-SNAPSHOT
* 6.8 to 6.8.5
2019-12-02 17:04:45 +00:00
Rob Bavey
a6afa59123
Update Logstash releases (#11300)
Updating, as this is missing out on the latest 6.8 and 7.4 releases
2019-11-12 12:08:26 -05:00
João Duarte
7f4b0210b9
Update releases manifest (#11187) 2019-10-03 15:27:58 +01:00