[ImageJ-builds] Build failed in Jenkins: ImageJ-1.x-patcher-windows #2

jenkins at imagej.net jenkins at imagej.net
Thu Apr 3 18:09:49 CDT 2014


See <http://jenkins.imagej.net/job/ImageJ-1.x-patcher-windows/2/changes>

Changes:

[Johannes Schindelin] Remove unnecessary 'else'

[Johannes Schindelin] Order imports

[Johannes Schindelin] Add a callback to call when ImageJ 1.x populates the menu

[Johannes Schindelin] Call the LegacyHook#addMenuItem hook

[Johannes Schindelin] Remember the menu structure in the LegacyHooks

[Johannes Schindelin] Add a method to LegacyEnvironment to obtain the menu structure

[Johannes Schindelin] Fix style of TestUtils

[Johannes Schindelin] Add more helpers to TestUtils

[Johannes Schindelin] Verify that LegacyEnvironment#getMenuStructure() works

[Johannes Schindelin] Also add the separators to the menu structure

[Johannes Schindelin] Let's reset the thread state after the headless tests

------------------------------------------
Started by upstream project "ImageJ-1.x-patcher" build number 4
originally caused by:
 Started by an SCM change
Building remotely on Windows (windows) in workspace <http://jenkins.imagej.net/job/ImageJ-1.x-patcher-windows/ws/>
Fetching changes from the remote Git repository
Fetching upstream changes from https://github.com/imagej/ij1-patcher
Checking out Revision 941f62740f3211b8e1afec9fada39aabf817c665 (origin/master)
[ImageJ-1.x-patcher-windows] $ sh -xe C:\Users\VIRTUA~1\AppData\Local\Temp\hudson2073226094132776563.sh
+ git clean -dfx
Removing target/
[ImageJ-1.x-patcher-windows] $ mvn.bat -U -Prun-its clean test
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for net.imagej:ij1-patcher:jar:0.3.2-SNAPSHOT
[WARNING] 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: ${imagej.groupId}:ij-core:jar -> duplicate declaration of version ${imagej.version} @ org.scijava:pom-scijava:1.154, C:\Users\VirtualBox\.m2\repository\org\scijava\pom-scijava\1.154\pom-scijava-1.154.pom, line 207, column 16
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Runtime patcher to introduce extension points into ImageJ 1.x 0.3.2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ ij1-patcher ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.2:create (default) @ ij1-patcher ---
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD"
[INFO] Working directory: <http://jenkins.imagej.net/job/ImageJ-1.x-patcher-windows/ws/>
[INFO] Storing buildNumber: 941f62740f3211b8e1afec9fada39aabf817c665 at timestamp: 1396566531958
[INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD"
[INFO] Working directory: <http://jenkins.imagej.net/job/ImageJ-1.x-patcher-windows/ws/>
[INFO] Storing buildScmBranch: UNKNOWN
[INFO] 
[INFO] --- imagej-maven-plugin:0.3.1:set-rootdir (set-rootdir) @ ij1-patcher ---
[INFO] Setting rootdir: <http://jenkins.imagej.net/job/ImageJ-1.x-patcher-windows/ws/>
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ ij1-patcher ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory <http://jenkins.imagej.net/job/ImageJ-1.x-patcher-windows/ws/src\main\resources>
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ ij1-patcher ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 11 source files to <http://jenkins.imagej.net/job/ImageJ-1.x-patcher-windows/ws/target\classes>
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ ij1-patcher ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory <http://jenkins.imagej.net/job/ImageJ-1.x-patcher-windows/ws/src\test\resources>
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ ij1-patcher ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 11 source files to <http://jenkins.imagej.net/job/ImageJ-1.x-patcher-windows/ws/target\test-classes>
[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ ij1-patcher ---
[INFO] Surefire report directory: <http://jenkins.imagej.net/job/ImageJ-1.x-patcher-windows/ws/target\surefire-reports>

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running imagej.patcher.ExtraPluginDirsTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.699 sec - in imagej.patcher.ExtraPluginDirsTest
Running imagej.patcher.FatJarTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.413 sec - in imagej.patcher.FatJarTest
Running imagej.patcher.HeadlessCompletenessTest
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.039 sec <<< FAILURE! - in imagej.patcher.HeadlessCompletenessTest
testMenuStructure(imagej.patcher.HeadlessCompletenessTest)  Time elapsed: 1.023 sec  <<< FAILURE!
java.lang.AssertionError: Not found: Plugins>-1
	at org.junit.Assert.fail(Assert.java:91)
	at org.junit.Assert.assertTrue(Assert.java:43)
	at imagej.patcher.HeadlessCompletenessTest.assertMenuItems(HeadlessCompletenessTest.java:180)
	at imagej.patcher.HeadlessCompletenessTest.testMenuStructure(HeadlessCompletenessTest.java:160)

Running imagej.patcher.HeadlessEnvironmentTest
(unset)
Tests run: 6, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 3.612 sec - in imagej.patcher.HeadlessEnvironmentTest
Running imagej.patcher.ImageJ1EncapsulationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.102 sec - in imagej.patcher.ImageJ1EncapsulationTest

Results :

Failed tests: 
  HeadlessCompletenessTest.testMenuStructure:160->assertMenuItems:180 Not found: Plugins>-1

Tests run: 14, Failures: 1, Errors: 0, Skipped: 1

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24.126s
[INFO] Finished at: Thu Apr 03 18:09:12 CDT 2014
[INFO] Final Memory: 14M/55M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project ij1-patcher: There are test failures.
[ERROR] 
[ERROR] Please refer to <http://jenkins.imagej.net/job/ImageJ-1.x-patcher-windows/ws/target\surefire-reports> for the individual test results.
[ERROR] -> [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/MojoFailureException
Build step 'Invoke top-level Maven targets' marked build as failure
Archiving artifacts
Recording test results
Performance: Percentage of errors greater or equal than 0% sets the build as unstable
Performance: Percentage of errors greater or equal than 0% sets the build as failure



Performance: Recording JUnit reports '**/TEST-*.xml'
TEST-imagej.patcher.ExtraPluginDirsTest.xml has an average of: 1658
Performance: File TEST-imagej.patcher.ExtraPluginDirsTest.xml reported 0.0% of errors [SUCCESS]. Build status is: FAILURE



TEST-imagej.patcher.FatJarTest.xml has an average of: 412
Performance: File TEST-imagej.patcher.FatJarTest.xml reported 0.0% of errors [SUCCESS]. Build status is: FAILURE



TEST-imagej.patcher.HeadlessCompletenessTest.xml has an average of: 515
Performance: File TEST-imagej.patcher.HeadlessCompletenessTest.xml reported 50.0% of errors [FAILURE]. Build status is: FAILURE



TEST-imagej.patcher.HeadlessEnvironmentTest.xml has an average of: 600
Performance: File TEST-imagej.patcher.HeadlessEnvironmentTest.xml reported 0.0% of errors [FAILURE]. Build status is: FAILURE



TEST-imagej.patcher.ImageJ1EncapsulationTest.xml has an average of: 101
Performance: File TEST-imagej.patcher.ImageJ1EncapsulationTest.xml reported 0.0% of errors [FAILURE]. Build status is: FAILURE






More information about the ImageJ-builds mailing list