Commit graph

202 commits

Author SHA1 Message Date
kaisecheng
1a5ef6ad13
pin snakeyaml to 1.33 (#14960)
Co-authored-by: Mashhur Sattorov <mashhur.sattorov@elastic.co>
2023-03-14 13:06:08 +00:00
github-actions[bot]
ee24f3ce38
update flores dependency to at least 0.0.8 (#14437) (#14449)
(cherry picked from commit 4cb900ce7e)

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2022-08-17 09:58:15 +01:00
github-actions[bot]
7df02cc828
Update Jackson databind in ingest-converter tool (#13900) (#13917)
Backport PR #13900 to 7.17 branch

(cherry picked from commit 32675c1a88)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2022-03-18 13:10:05 +00:00
Andrea Selva
0407e9383b
Adds license definitions for faraday-multipart and faraday-retry (#13592) (#13594)
Clean backport of #13592 to 7.17
(cherry picked from commit bc760c5c07)
2022-01-10 15:19:47 +01:00
kaisecheng
2be6cb326b
avoid duplication of heading and index entry in release notes (#13192) (#13254)
Fixed: #13192
2021-09-29 14:37:46 +02:00
Andrea Selva
959248ac4d
[backport 7.x] Gradle 7 updates, issue #13177 (#13212)
This commit is a backport of three PRs #13182 #13183 #13184
Mainly it switched the Gradle to version 7 and applies fixes to make it run.
2021-09-08 15:16:52 +02:00
Andrea Selva
a27e109bd4
[backport 7.x] Added rexml notice to license list (#13209) (#13210)
(cherry picked from commit 6ed2eea890)
2021-09-07 17:30:21 +02:00
Andrea Selva
24314350ab
[bacport 7.x] Update Snakeyaml version to 1.29 (#13129) (#13134)
Snakeyaml is used only in the build chain, and it's not packaged with Logstash

(cherry picked from commit a7f6c01a3a)
2021-08-16 14:29:07 +02:00
Andrea Selva
84dbf3e310
[backport 7.x] Added faraday-* and ruby2_keywords notices to licences list (#13126) (#13128)
(cherry picked from commit 542dce81a7)
2021-08-13 14:13:58 +02:00
Andrea Selva
0ac470f3cf
Fix LS benchmarking tool to work with releases >= 7.10.0 (#13052) (#13053)
Starting with version 7.10.0 the name of LS packages changed, adding os and CPU architecture in the name. This change broke the downloading of those from the benchmarking tool. This commit fixes it, composing correctly the name, based on the version it has to download.

(cherry picked from commit b722360ebd)
2021-07-06 16:31:55 +02:00
Rob Bavey
6d3446d262
Backport PR #13008 to 7.x: Fix UBI source URL (#13011)
Backport PR #13008 to 7.x branch. Original message:

This commit fix the source URL for UBI image to ensure that it stays
consistent with the URL generated in
https://artifacts.elastic.co/reports/dependencies/dependencies-current.html

Co-authored-by: Julien Mailleret <8582351+jmlrt@users.noreply.github.com>
2021-06-22 12:43:12 -04:00
Karen Metts
0a1bb2fd0b
Internal: Update messaging in release notes script (#12949) (#12950) 2021-05-28 11:32:26 -04:00
Rob Bavey
f0ba6ea5c3
Backport PR #12925 to 7.x: Add logstash-integration-elastic_enterprise_search to plugins-metadata.json (#12934)
Backport PR #12925 to 7.x. Original Message:

* Add logstash-integration-elastic_enterprise_search to plugins-metadata.json
* Remove old elastic_app_search plugin and set integration as default
* Add license information for workplace search gem

(cherry picked from commit a935261eeb)
2021-05-27 09:40:19 -04:00
kaisecheng
965c839e74
[7.x] Geoip database service (#12675) | GeoIP clean up database after new download (#12689) | fix broken test case of term of service (#12715) | change domain and endpoint of GeoIP database service (#12727) | GeoIP database add license file (#12777)
GeoIP database service license change

Fixed: #12560
2021-03-26 10:23:37 +01:00
Rob Bavey
9a4c0ea79c
Backport PR #12736 to 7.x: Fix Benchmarking tool (#12738)
Backport PR #12736 to 7.x branch. Original message:

Since the introduction of this block:

```
 "pipeline" : {
    "workers" : 16,
    "batch_size" : 125,
    "batch_delay" : 50
  },
```

to the node stats API, the benchmarking tool has been broken. This commit fixes the
tool, and updates the payload in the tests to reflect the current payload.
2021-03-10 13:48:00 -05:00
Joao Duarte
d0f1ed4c71 Revert "replace with_clean_env with with_unbundled_env (#12615) (#12618)"
This reverts commit ff3cf929fa.

Because we're still on bundler 1.x here..
2021-01-29 17:56:58 +00:00
João Duarte
ff3cf929fa
replace with_clean_env with with_unbundled_env (#12615) (#12618)
(cherry picked from commit 023e11a8e2)
2021-01-29 17:35:47 +00:00
andsel
98d3ac9d00 Moved ingest-converter tool from Javascript to Java, preserving the same behaviour (#12524)
(cherry picked from commit aa3576d74d)
2021-01-11 23:57:58 -08:00
Rob Bavey
a5dbc8d2a2
Update license dependency information (#12544)
This commit updates the license information for the license dependency report.
Specifically, this adds a notice for racc, a different version of which is now
pulled in by nokogiri from the version included with jruby.
2021-01-04 15:59:21 -05:00
andsel
88ceb5ccfc Added console prints in ingest-converter for not recognized processor definitions.
Adds console output for
- 'if' condition in 'set' processor
- unrecognized processor, like join

(cherry picked from commit 690bade81f)
2020-11-10 23:58:15 -08:00
Rob Bavey
bf1238dec2
[7x backport] Add optional sourceURL to license report CSV (#12362)
Clean backport of #12346

This commit adds an extra optional column 'sourceURL' to the license report. This
column contains a pointer to the source code, which is optional for most dependencies,
but a requirement for some, such as the Red Hat Universal Base Image.

This commit also populates the 'copyright' field, which previously was an used
column in the CSV definition

Relates #12297
2020-10-20 11:00:05 -04:00
Rob Bavey
23141e8f7e
Add RedHat Univeral Base Image license information (#12296)
Clean backport of #12287
2020-10-02 15:47:25 -04:00
andsel
d792d4dd43 Added elastic-app-search and jwt license definition and notices 2020-09-17 09:39:09 +00:00
Joao Duarte
1013a80b38 allow skipping pr creation in version bump script 2020-08-06 15:15:09 +00:00
Joao Duarte
b02978fd41 add dependency notice for amazing_print 2020-07-09 09:33:03 +00:00
Joao Duarte
9fdef56b10 update benchmark-cli dependencies
Updated elasticsearch only to 5.6.16 as 6.x introduced a deprecation in
the performRequest method and needs further refactor
2020-07-03 13:42:31 +00:00
Rob Bavey
6c50eda135 [7x_backport] Add link conversion from Markdown to AsciiDoctor (#11508)
Backport of #11508 to convert links from Markdown to AsciiDoctor while generating
release notes.
2020-06-17 11:52:18 -07:00
Joao Duarte
8b44f37a06 update commons-codec to 1.14 2020-06-09 13:26:30 +00:00
Joao Duarte
54f5ac14f3 update guava and httpclient dependencies
Fixes #11791
2020-04-15 13:49:54 +00:00
Joao Duarte
085868595f release notes script add version in plugin entries
Fixes #11769
2020-04-09 12:55:57 +00:00
João Duarte
deeede9824 update benchmark cli dependencies (#11766)
also use jackson version in benchmark-cli from versions.yml
2020-04-08 14:55:59 +01:00
Rob Bavey
0eb2f54de2
Update gradle version to 6.3 (#11742) (#11761)
* Backport of #11742. Not a clean backport as 7.x had not previously been upgraded to 5.6.4 as master had been.

* 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-08 09:00:34 -04:00
João Duarte
1fc169b7f6 Add apache and elastic license headers to source code files (#11673)
* add license header to ruby and java files
* add license header to erb and rake files
* add license headers to gradle files
2020-03-11 11:54:32 +00:00
João Duarte
593235c162 Update rack dependency on docgen project
Fixes #11644
2020-03-03 13:57:35 +00:00
João Duarte
03ec792308 update licenses for 7.x (backport of #11549) 2020-01-31 13:50:17 +00:00
Dan Hermann
cb4369b2a9 Ignore versions in dependency license checker 2020-01-31 12:42:21 +00:00
Joao Duarte
f12eb2f28a fail license report job on missing licenses
Fixes #11554
2020-01-31 12:36:41 +00:00
João Duarte
a6f02a3826 replace YAML.parse with YAML.safe_load in release tool
YAML.parse returns Psych nodes that then need to be converted to plain ruby objects.

Calling YAML.safe_load outputs basic ruby objects already and also increases security as it greatly restricts the classes it deserializes.

Fixes #11208
2019-10-11 13:09:06 +00:00
Aarti Gupta
3093384705
Enhancements to Logstash Benchmarking Tool (#10253)
* Adding support for -
1. Custom Data Sets
2. Added heap used statistics to results
2019-08-29 11:40:31 +01:00
Joao Duarte
072d33690c fix plugin version bump rake task
By removing the default plugins from the Gemfile.template
the current task that modified the template was not working correctly.

This commit either replaces the dependency entry if it exists or
otherwise creates it.

Fixes #10947
2019-07-12 14:25:06 +00:00
Ry Biesemeyer
583ec6b625
Java 11 support (#10279)
* bump jruby to 9.2

* don't rely on logstash-base docker image

* work around webmock ruby 2.5 support

* ensure data folder exists in docker

* change fixnum and bignum to integer

* FileUtils.rmdir to rm_rf

this is because from 2.3 to 2.5 FileUtils.rmdir will throw an exception
if the directory isn't empty. On 2.3 the operation will just not delete
the directory silently.

* bump jruby to 9.2.5.0 and fix test

* make rake default task since prepare pack needs it

* Resolve compiler warnings (#10247)

There are 3 types of compiler warnings that are either resolved or suppressed:

1. Rawtypes: In JRuby 9.2, `RubyArray` is a generic, so references throughout
   our codebase to the now "raw" type trigger warnings. In most cases we cannot
   actually resolve the issue, since the JRuby-provided methods for creating
   `RubyArray`s still return the raw type, so these have been suppressed.

2. Deprecations:
   - `RubyString#intern19()` -> `RubyString#intern()`
   - `RubyString#downcase19(ThreadContext)` -> `RubyString#downcase(ThreadContext)`
   - `NativeException`: remove import & reference directly; suppress usage
     warnings
   - `RaiseException()`: migrate to equivalent non-deprecated methods wherever
     possible; in some cases where we are using this in conjunction with the
     also-deprecated `NativeException` to preserve java stacktraces, there
     seems to be no non-deprecated path forward, so these cases have been
     suppressed.

3. Redundant Casts
   - Resolved

* JRuby 9.2 bundler shenanigans (#10266)

* Revert "Revert "remove forced dependency on old bundler (#9395)""

This reverts commit bef984143d.

* plugin management: update internal bundler to 1.17.x APIs

* deps: update dev dependency webmock to version compatible with JRuby 9.2

* spec: update Pack fixture to include manticore version that doesn't conflict

* build: update gradle to version that has Java 11 support

* java11: resolve or suppress deprecation warnings

* Remove superfluous flag opting into ParNew GC implementation

When opting into CMS garbage collector with `XX:+UseConcMarkSweepGC`, the
young generation collector ParNew has been the default since Java 8, making
the `XX:+UseParNew` flag redundant; the flag was removed in Java 9, and
should no longer be specified to work with modern Javas.

https://bugs.openjdk.java.net/browse/JDK-8006478
https://openjdk.java.net/jeps/214

* spec: set thread name to example description for easier debugging

* spec: prevent errors in testing specs by checking against skip list before using

* no-op: remove use of `HashMap#computeIfAbsent` on single-threaded code

> This method will, on a best-effort basis, throw a `ConcurrentModificationException`
> if it is detected that the mapping function modifies this map during computation.
>
> -- https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/HashMap.html#computeIfAbsent(K,java.util.function.Function)

* qa: by default, run integration against Elastic Stack 6.5.x

To support development on Logstash on top of Java 11, default to testing
against an Elastic Stack that is capable of running on Java 11.

* qa: ignore deprecation warnings when comparing offline pack output

* qa: add Java 9+ support to ChildProcess dev dependency

this can safely be removed when the childprocess gem supports Java9+
https://github.com/enkessler/childprocess/pull/141

* qa: allow connections to localhost in webmock

* bump jrjackson version

* fix filebeat integration tests

* spec: ensure license compliance spec runs first

The license compliance spec that validates the licenses of bundled
plugins appears to not be compatible with the hooks that we inject
into bundler for plugin management, and will fail in obscure ways
when run after those hooks have been added. Since those hooks are
not necessary for validating licenses, the easiest solution was to
ensure that those specs run first, before the VM has been poluted.

Since the gradle/junit/rspec bridge that is currently in place
runs all specs in the same JVM, we also need to make sure that the
rspec "world" is reset before a run, to ensure that it doesn't
retain spec definitions from previous runs.

Also updates the rake invocation, although I'm not sure it is used
any more.
2019-02-04 16:36:11 -08:00
Joao Duarte
69c1928f4a add missing ruby shebang to release tools
Fixes #10283
2019-01-11 15:46:20 +00:00
Joao Duarte
ccfa770939 add lockfile bump and release notes draft tools
Fixes #10265
2019-01-08 15:35:16 +00:00
Dan Hermann
9b73071e67 instructions on how to run tool, remove unused readlink call in script
Fixes #9931
2018-08-27 21:44:47 +00:00
Dan Hermann
4f4c81adc8 do not fail build if license violations are found
Fixes #9944
2018-08-27 18:18:32 +00:00
Dan Hermann
c3aee102d0 add reporting of unused dependencies
Fixes #9923
2018-08-24 12:25:56 +00:00
Dan Hermann
b6e355d151 documentation for the dependency license audit tool
Fixes #9921
2018-08-21 13:31:59 +00:00
Dan Hermann
8b6c162c18 add missing dependency
Fixes #9924
2018-08-20 15:39:39 +00:00
Dan Hermann
319cbcbca3 fix remaining license checker problems
Fixes #9913
2018-08-20 14:00:43 +00:00
Dan Hermann
d236fa898a move license URL check outside loop
Fixes #9895
2018-08-14 12:57:13 +00:00