Commit graph

250 commits

Author SHA1 Message Date
Andrea Selva
d2237578d5
Feature/remove gradle license report plugin (#13182)
Remove usage of plugin Gradle-License-Report to generate CSV report of used dependencies.
This commit replaces the removed plugin with the custom `ListProjectDependencies` task that inspects Gradle's project dependencies and produces a CSV file containing the list.
2021-09-01 15:28:57 +02:00
Andrea Selva
a7f6c01a3a
Update Snakeyaml version to 1.29 (#13129)
Snakeyaml is used only in the build chain, and it's not packaged with Logstash
2021-08-16 10:33:47 +02:00
Andrea Selva
542dce81a7
Added faraday-* and ruby2_keywords notices to licences list (#13126) 2021-08-13 13:25:47 +02:00
Andrea Selva
b722360ebd
Fix LS benchmarking tool to work with releases >= 7.10.0 (#13052)
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.
2021-07-06 16:04:29 +02:00
Julien Mailleret
6ae2146a75
Fix UBI source URL (#13008)
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
2021-06-21 16:06:10 +02:00
Karen Metts
2e413c6e92
Internal: Update messaging in release notes script (#12949) 2021-05-28 10:41:37 -04:00
Rob Bavey
a935261eeb
Add logstash-integration-elastic_enterprise_search to plugins-metadata.json (#12925)
* 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
2021-05-25 17:37:39 -04:00
IvoGoman
7b855820ed
Adds option to pass custom data to the benchmark CLI (#12437) 2021-03-25 15:00:57 -04:00
Rob Bavey
72e26f9957
Fix Benchmarking tool (#12736)
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 11:19:15 -05:00
kaisecheng
54b370ea48
Geoip database service (#12675)
geoip database service in xpack
dependency update and license note

Fixed: #12560
2021-02-18 14:18:28 +01:00
João Duarte
023e11a8e2
replace with_clean_env with with_unbundled_env (#12615) 2021-01-29 17:31:35 +00:00
Rob Bavey
0d0c958b56
Update license dependency information (#12542)
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 14:33:29 -05:00
andsel
aa3576d74d Moved ingest-converter tool from Javascript to Java, preserving the same behaviour (#12524) 2020-12-18 07:24:15 -08:00
andsel
690bade81f Added console prints in ingest-converter for not recognized processor definitions.
Adds console output for
- 'if' condition in 'set' processor
- unrecognized processor, like join
2020-11-10 07:52:51 -08:00
Rob Bavey
002de11fe6
Add optional sourceURL to license report CSV (#12346)
* Add optional sourceURL to license report CSV

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-19 11:03:29 -04:00
Rob Bavey
c266470c2e
Add RedHat Univeral Base Image license information (#12287) 2020-09-30 11:13:50 -04:00
andsel
153b69fd6c Added elastic-app-search and jwt license definition and notices 2020-09-17 02:39:10 -07:00
Joao Duarte
e6ec926f82 allow skipping pr creation in version bump script 2020-08-06 08:15:09 -07:00
Joao Duarte
616e600eb4 add dependency notice for amazing_print 2020-07-09 02:33:03 -07:00
Joao Duarte
fd0959e4cb 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 06:42:31 -07:00
Joao Duarte
1ebf1b2b13 update commons-codec to 1.14 2020-06-09 06:26:31 -07:00
andsel
386c263a71 Fix: rounded to 1 second in nanos to avoid random NaN error
Conversion to seconds of values under 1_000_000_000 nanoseconds translates to value 0, and this led to NaN when used as denominator in a division.
A value of 996_920_400 nanoseconds once converted to seconds is not rounded to 1 second by to 0, this manifest on Windows OS
2020-05-11 14:23:52 +02:00
Joao Duarte
6cc4de77e3 update guava and httpclient dependencies
Fixes #11791
2020-04-15 13:49:54 +00:00
Joao Duarte
de0b22f9cb release notes script add version in plugin entries
Fixes #11769
2020-04-09 12:55:57 +00:00
João Duarte
128bee592b
update benchmark cli dependencies (#11766)
also use jackson version in benchmark-cli from versions.yml
2020-04-08 14:55:17 +01: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
João Duarte
e9c9865f40
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:53:38 +00:00
João Duarte
19bcb623fc Update rack dependency on docgen project
Fixes #11644
2020-03-03 13:57:35 +00:00
João Duarte
5fcab21194
update licenses for master (#11549) 2020-01-31 12:43:01 +00:00
Joao Duarte
a36fdb9050 fail license report job on missing licenses
Fixes #11554
2020-01-31 12:36:41 +00:00
Dan Hermann
1d7df01df0 Ignore versions in dependency license checker 2020-01-29 13:32:37 +00:00
Rob Bavey
d6b70f9631
Add link conversion from Markdown to AsciiDoctor (#11508) 2020-01-16 12:00:53 -05:00
andsel
71eed80d3c Fixes to JMH launch after upgrade to Gradle 5
Fixes #11459
2019-12-30 10:43:44 +00:00
João Duarte
e807a9e030
Update gradle wrapper to 5.6.4 (#11389)
* upgrade gradle wrapper to the latest 5.x release
* update shadow plugin to 4.x for gradle compatibility
* change dependency declaration to work around [breaking change in annotation processing](https://docs.gradle.org/current/userguide/upgrading_version_4.html#rel4.6:annotation_processor_configuration)
2019-12-06 15:39:17 +00:00
João Duarte
4f902b435c
Remove unused code (#11231)
* remove unused certificate bundles and ruby files
* remove chronic_duration dependency
2019-10-18 16:08:53 +01:00
João Duarte
7a62b2da8e 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
João Duarte
d7eeaaf8e2
fix plugin version bump rake task (#10947)
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.
2019-07-12 15:24:23 +01:00
Aarti Gupta
311ea143de Enhancements to Logstash Benchmarking Tool (#10253)
* Adding support for -
1. Custom Data Sets
2. Added heap used statistics to results
2019-02-28 11:45:32 -06: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
Dan Hermann
95ea8e65c2 Adds support for specifying multiple licenses separated by the pipe symbol
Fixes #9895
2018-08-14 12:57:13 +00:00
Dan Hermann
0d6fef1100 update NOTICE.txt files for dependencies
Fixes #9894
2018-08-13 14:43:05 +00:00