GDATASoftwareAG / Graylog-Plugin-AlertManager-Callback

A plugin for Graylog which provides the possibility to send alerts to the Prometheus AlertManager API.
MIT License
24 stars 5 forks source link

BUILD FAILED #6

Closed jidckii closed 5 years ago

jidckii commented 5 years ago
 ~/repo/infrastructure/Graylog-Plugin-AlertManager-Callback [master]$ docker run --rm -it -v $PWD:/build -w /build openjdk:8-stretch bash
Unable to find image 'openjdk:8-stretch' locally
8-stretch: Pulling from library/openjdk
c5e155d5a1d1: Pull complete 
221d80d00ae9: Pull complete 
4250b3117dca: Pull complete 
3b7ca19181b2: Pull complete 
1eadaf4c0dff: Pull complete 
4c1388ac89fe: Pull complete 
73713755b9cb: Pull complete 
5784ff1c0372: Pull complete 
Digest: sha256:b15203ab7bc02ea214a38458612c5e50b723b02660ca89df37e8c0910695fdfa
Status: Downloaded newer image for openjdk:8-stretch
root@a42d63158d89:/build# ls
CHANGELOG  CONTRIBUTING.md  LICENSE  MAINTAINERS  README.md  build.gradle  gradle  gradlew  gradlew.bat  images  settings.gradle  src
root@a42d63158d89:/build# ./gradlew build
Downloading https://services.gradle.org/distributions/gradle-4.10-all.zip
...............................................................................................................

Welcome to Gradle 4.10!

Here are the highlights of this release:
 - Incremental Java compilation by default
 - Periodic Gradle caches cleanup
 - Gradle Kotlin DSL 1.0-RC3
 - Nested included builds
 - SNAPSHOT plugin versions in the `plugins {}` block

For more details see https://docs.gradle.org/4.10/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

> Task :serviceLoaderBuild
Found 1 implementations of org.graylog2.plugin.Plugin: [class de.gdata.mobilelab.alertmanagercallback.AlertManagerPlugin]

> Task :compileTestJava
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :test

de.gdata.mobilelab.alertmanagercallback.AlertManagerAlarmCallbackIT > call FAILED
    java.lang.IllegalStateException at AlertManagerAlarmCallbackIT.java:27

de.gdata.mobilelab.alertmanagercallback.AlertManagerAlarmCallbackIT > callWithNullValues FAILED
    java.lang.IllegalStateException at AlertManagerAlarmCallbackIT.java:27

de.gdata.mobilelab.alertmanagercallback.AlertManagerAlarmCallbackIT > alertManagerIsRunning FAILED
    java.lang.IllegalStateException at AlertManagerAlarmCallbackIT.java:27

48 tests completed, 3 failed

> Task :test FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///build/build/reports/tests/test/index.html

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 3m 48s
6 actionable tasks: 6 executed
jidckii commented 5 years ago

resolve ./gradlew build -x check --no-daemon

StefanHufschmidt commented 5 years ago

resolve ./gradlew build -x check --no-daemon

So you would suggest to change the documentation to this line?

jidckii commented 5 years ago

So you would suggest to change the documentation to this line?

I agree with the related issue, the release should have a ready build artifact. This command: ./gradlew build -x check --no-daemon i am finded in .travis.yml file. I think if it works, but the fact that the documentation - no. Then you need to update the documentation.

StefanHufschmidt commented 5 years ago

I've adjusted the documentation in the way you mentioned. The build artifact issue will be continued in #5