Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] Fwd: [egit-build] Build failed in Hudson: egit #516

2010/9/9 Robin Rosenberg <robin.rosenberg@xxxxxxxxxx>
onsdagen den 8 september 2010 23.58.12 skrev  Matthias Sohn:
> I switched on egit core tests on hudson, unfortunately they hit an error, I
> tried to reproduce
> but on Mac OS X 10.6.4 all tests pass.
>
> Could someone try to reproduce the error on Linux ?
> build.eclipse.org/hudsonruns on SLES 11:
>
> msohn@build:~> cat /etc/*-release
> LSB_VERSION="core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-ppc64
> :core-3.2-ppc64:core-4.0-ppc64" SUSE Linux Enterprise Server 11 (ppc64)
> VERSION = 11
> PATCHLEVEL = 1
>
> --
> Matthias
>
> ---------- Forwarded message ----------
> From: Hudson Builder ' <hudsonbuild@xxxxxxxxxxx>
> Date: 2010/9/8
> Subject: [egit-build] Build failed in Hudson: egit #516
> To: egit-build@xxxxxxxxxxx, matthias.sohn@xxxxxxx
>
>
> See <https://build.eclipse.org/hudson/job/egit/516/>
>
> ------------------------------------------
> [...truncated
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Test Plug-in (Incubation) 0.9.0-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:2.4:clean (default-clean) @
> org.eclipse.egit.core.test ---
> [INFO] Deleting <
> https://build.eclipse.org/hudson/job/egit/ws/org.eclipse.egit.core.test/tar
> get
>
> [INFO]
> [INFO] --- maven-osgi-packaging-plugin:0.9.0:build-qualifier
> (default-build-qualifier) @ org.eclipse.egit.core.test ---
> [INFO]
> [INFO] --- maven-osgi-packaging-plugin:0.9.0:validate-version
> (default-validate-version) @ org.eclipse.egit.core.test ---
> [INFO]
> [INFO] --- maven-resources-plugin:2.4.1:resources (default-resources) @
> org.eclipse.egit.core.test ---
> [INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory <
> https://build.eclipse.org/hudson/job/egit/ws/org.eclipse.egit.core.test/src
> /main/resources
>
> [INFO]
> [INFO] --- maven-osgi-compiler-plugin:0.9.0:compile (default-compile) @
> org.eclipse.egit.core.test ---
> [INFO] Using compile source roots from build.properties
> [INFO] Compiling 25 source files to <
> https://build.eclipse.org/hudson/job/egit/ws/org.eclipse.egit.core.test/tar
> get/classes
>
>
> [INFO]
> [INFO] --- maven-resources-plugin:2.4.1:testResources
> (default-testResources) @ org.eclipse.egit.core.test ---
> [INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory <
> https://build.eclipse.org/hudson/job/egit/ws/org.eclipse.egit.core.test/src
> /test/resources
>
> [INFO]
> [INFO] --- maven-osgi-compiler-plugin:0.9.0:testCompile
> (default-testCompile) @ org.eclipse.egit.core.test ---
> [INFO] Using compile source roots from build.properties
> [INFO] Nothing to compile - all classes are up to date
> [INFO]
> [INFO] --- maven-osgi-packaging-plugin:0.9.0:package-plugin
> (default-package-plugin) @ org.eclipse.egit.core.test ---
> [INFO] Building jar: <
> https://build.eclipse.org/hudson/job/egit/ws/org.eclipse.egit.core.test/tar
> get/org.eclipse.egit.core.test-0.9.0-SNAPSHOT.jar
>
> [INFO]
> [INFO] --- tycho-p2-plugin:0.9.0:p2-metadata (default-p2-metadata) @
> org.eclipse.egit.core.test ---
> [INFO]
> [INFO] --- maven-osgi-test-plugin:0.9.0:test (default-test) @
> org.eclipse.egit.core.test ---
> [INFO] Adding repository
> https://build.eclipse.org/hudson/job/jgit/lastSuccessfulBuild/artifact/org.
> eclipse.jgit.packaging/org.eclipse.jgit.updatesite/target/site/ [INFO]
> Adding repository
> https://build.eclipse.org/hudson/job/jgit/lastSuccessfulBuild/artifact/org.
> eclipse.jgit.packaging/org.eclipse.jgit.updatesite/target/site/ [INFO]
> Adding repository http://download.eclipse.org/releases/helios [INFO]
> Adding repository http://download.eclipse.org/releases/helios [INFO]
> Adding repository
> http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site
> [INFO] Adding repository
> http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site
> [INFO] Adding repository
> http://download.eclipse.org/tools/mylyn/update/weekly
> [INFO] Adding repository
> http://download.eclipse.org/tools/mylyn/update/weekly
> [INFO] Downloading org.eclipse.equinox.launcher
> [INFO] Downloading org.eclipse.equinox.launcher
> [INFO] Fetching download.php (0B of 2.46kB at 0B/s) from
> http://www.eclipse.org/downloads/download.php?file=/eclipse/updates/3.6/R-3
> .6-201006080911&format=xml&countryCode=us&timeZone=-5&format=xml [INFO]
> Fetching download.php (1.75kB of 2.46kB at 0B/s) from
> http://www.eclipse.org/downloads/download.php?file=/eclipse/updates/3.6/R-3
> .6-201006080911&format=xml&countryCode=us&timeZone=-5&format=xml [INFO]
> Fetching org.eclipse.equinox.launcher_1.1.0.v20100507.jar.pack.gz (0B of
> 25.06kB at 0B/s) from
> ftp://ftp.cse.buffalo.edu/pub/Eclipse/eclipse/updates/3.6/R-3.6-20100608091
> 1/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar.pack.gz [INFO]
> Fetching org.eclipse.equinox.launcher_1.1.0.v20100507.jar.pack.gz (1.38kB
> of 25.06kB at 0B/s) from
> ftp://ftp.cse.buffalo.edu/pub/Eclipse/eclipse/updates/3.6/R-3.6-20100608091
> 1/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar.pack.gz [INFO] 1
> operation remaining.
> [INFO] Expected eclipse log file: <
> https://build.eclipse.org/hudson/job/egit/ws/org.eclipse.egit.core.test/tar
> get/work/data/.metadata/.log
>
> [INFO] Command line:
>        /bin/sh -c cd <
> https://build.eclipse.org/hudson/job/egit/ws/org.eclipse.egit.core.test> &&
> /opt/public/common/ibm-java-jdk-ppc-60/jre/bin/java -Dosgi.noShutdown=false
> -Dosgi.os=linux -Dosgi.ws=gtk -Dosgi.arch=ppc -jar <
> https://build.eclipse.org/hudson/job/egit/ws/.repository/p2/osgi/bundle/org
> .eclipse.equinox.launcher/1.1.0.v20100507/org.eclipse.equinox.launcher-1.1.
> 0.v20100507.jar> -data <
> https://build.eclipse.org/hudson/job/egit/ws/org.eclipse.egit.core.test/tar
> get/work/data> -dev <
> https://build.eclipse.org/hudson/job/egit/ws/org.eclipse.egit.core.test/tar
> get/dev.properties> -install <
> https://build.eclipse.org/hudson/job/egit/ws/org.eclipse.egit.core.test/tar
> get/work> -configuration <
> https://build.eclipse.org/hudson/job/egit/ws/org.eclipse.egit.core.test/tar
> get/work/configuration> -application
> org.sonatype.tycho.surefire.osgibooter.headlesstest
> -testproperties <
> https://build.eclipse.org/hudson/job/egit/ws/org.eclipse.egit.core.test/tar
> get/surefire.properties
>
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.eclipse.egit.core.test.op.TrackUntrackOperationTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.877 sec
> Running org.eclipse.egit.core.test.op.DiscardChangesOperationTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.17 sec
> Running org.eclipse.egit.core.test.op.ListRemoteOperationTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.628 sec
> Running org.eclipse.egit.core.test.op.BranchOperationTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.833 sec
> Running org.eclipse.egit.core.test.op.AddOperationTest
> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.946 sec
> Running org.eclipse.egit.core.synchronize.GitResourceVariantComparatorTest
> Tests run: 19, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.212 sec
> Running org.eclipse.egit.core.internal.storage.BlobStorageTest
> Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.377 sec
> Running org.eclipse.egit.core.test.op.ConnectProviderOperationTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.32 sec
> Running org.eclipse.egit.core.test.op.TagOperationTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.081 sec
> Running org.eclipse.egit.core.test.op.PushOperationTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.706 sec
> Running org.eclipse.egit.core.synchronize.GitResourceVariantTreeTest
> Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.888 sec
> <<< FAILURE!
> shouldReturnTwoRoots(org.eclipse.egit.core.synchronize.GitResourceVariantTr
> eeTest) Time elapsed: 0.209 sec  <<< FAILURE!
> java.lang.AssertionError: expected:<P/Project-1> but was:<P/Project-2>
>        at org.junit.Assert.fail(Assert.java:91)
>        at org.junit.Assert.failNotEquals(Assert.java:645)
>        at org.junit.Assert.assertEquals(Assert.java:126)
>        at org.junit.Assert.assertEquals(Assert.java:145)
>        at
> org.eclipse.egit.core.synchronize.GitResourceVariantTreeTest.shouldReturnTw
> oRoots(GitResourceVariantTreeTest.java:124) at

Expecting a HashSet to return data in a predefined order is too much. Usuaully
they do when the input is the same, but unless you control every piece of that
hash then all bets are off. Either change the implementation so the iteration
order is predictable or sort data before asserting any properties of it.

-- robin

Pushed http://egit.eclipse.org/r/#change,1576 to fix this by sorting roots before 
doing the assertions.

--
Matthias

Back to the top