logzio / sawmill

Sawmill is a JSON transformation Java library
Apache License 2.0
116 stars 24 forks source link

Failing Commit after the passing one #248

Open Shilpa-Rani opened 3 years ago

Shilpa-Rani commented 3 years ago

The commit 8f2981b933051f6061777b861d50560d3c322492 successfully builds the project. Author: templatevk volodymyr.kovalenko@logz.io Date: Fri Jun 12 12:19:32 2020 +0300

_Introduced GeoIpConfiguration configuration_

Whereas the previous commit 871b4ceacbc9a9e7e13d95ad8cc12585a5f8291d leads to a build failure. Author: templatevk volodymyr.kovalenko@logz.io Date: Fri Jun 12 12:14:05 2020 +0300

Added processor factory configuration to inject processor creation stage dependencies

Changes in the failing commit: it compiles the code but the test fails. $ git show 871b4ceacbc9a9e7e13d95ad8cc12585a5f8291d

Link for the changes in the failing commit. The build has failed too.

..... Show Error- All saw-mill core files have changed and the below sawmill-core shows failure ... [WARNING] The project io.logz.sawmill:sawmill-benchmark:jar:0-SNAPSHOT uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html ... [INFO] Reactor Summary for Sawmill 0-SNAPSHOT: [INFO] [INFO] Sawmill ............................................ SUCCESS [ 0.109 s] [INFO] sawmill-core ....................................... FAILURE [ 4.377 s] [INFO] sawmill-benchmark .................................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5.200 s [INFO] Finished at: 2020-09-11T21:21:47-05:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.3:run (download-files) on project sawmill-core: An Ant BuildException has occured: java.net.UnknownHostException: geolite.maxmind.com: Unknown host geolite.maxmind.com -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :sawmill-core

Maven Version-

[shilpar2@fa20-cs527-037 sawmill]$ mvn --version Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) Maven home: /usr/local/src/apache-maven Java version: 1.8.0_262, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-0.el7_8.x86_64/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "3.10.0-1127.18.2.el7.x86_64", arch: "amd64", family: "unix"

Java Version-

[shilpar2@fa20-cs527-037 sawmill]$ mvn --version Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) Maven home: /usr/local/src/apache-maven Java version: 1.8.0_262, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-0.el7_8.x86_64/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "3.10.0-1127.18.2.el7.x86_64", arch: "amd64", family: "unix" [shilpar2@fa20-cs527-037 sawmill]$ java -version openjdk version "1.8.0_262" OpenJDK Runtime Environment (build 1.8.0_262-b10) OpenJDK 64-Bit Server VM (build 25.262-b10, mixed mode)

INFERENCE - in the passing commit after the failing one:

Failing commit -

... 
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.3:run (download-files) on project sawmill-core: An Ant BuildException has occured: java.net.UnknownHostException: geolite.maxmind.com: Unknown host geolite.maxmind.com -> [Help 1] 
...

Passing commit, the following was removed from the POM file: . .. http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz ... from the build ...

<get src="${maxMindGeoIpCityUrl}"
dest="${project.build.outputDirectory}/GeoLite2-City.tar.gz"
usetimestamp="true"/>