[GeoNetwork-devel] Unit tests in develop branch

Hi

Has someone succeed to run tests in the develop branch?

I’m trying to run them but after a long time running them I get some OutOfMemory errors. After them some test seem running, but are stalled for several minutes, so probably affected by the previous errors.

Running org.fao.geonet.api.records.attachments.MetadataResourceDatabaseMigrationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.034 sec - in org.fao.geonet.api.records.attachments.MetadataResourceDatabaseMigrationTest
Running org.fao.geonet.guiservices.csw.SetTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.383 sec - in org.fao.geonet.guiservices.csw.SetTest
Running org.fao.geonet.guiservices.sampledata.SampleDataAddIntegrationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 19.039 sec - in org.fao.geonet.kernel.search.LuceneSearcherGeomTest
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 17.398 sec - in org.fao.geonet.guiservices.sampledata.SampleDataAddIntegrationTest
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 56.828 sec - in org.fao.geonet.services.metadata.schema.SchematronCriteriaGroupServiceIntegrationTest
Running org.fao.geonet.services.metadata.schema.SchematronCriteriaTypeServiceTest
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.002 sec - in org.fao.geonet.services.metadata.schema.SchematronCriteriaTypeServiceTest
Running org.fao.geonet.services.register.SelfRegisterTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.013 sec - in org.fao.geonet.services.register.SelfRegisterTest
Running org.fao.geonet.services.statistics.SearchStatisticsTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.979 sec - in org.fao.geonet.services.statistics.SearchStatisticsTest
Running org.fao.geonet.services.user.UserListIntegrationTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.796 sec - in org.fao.geonet.services.user.UserListIntegrationTest
Running org.fao.geonet.services.user.UserUpdateIntegrationTest

I’m using Java 7 and I think I have a pretty high memory configuration setup for maven:

export MAVEN_OPTS=“-Xmx2048M -XX:MaxPermSize=1024M”

And running the tests with mvn test in the root folder of GeoNetwork.

Would be nice to hear from others, just to discard if it’s a issue in my system.

Regards,

Jose García

···

Vriendelijke groeten / Kind regards,

Jose García


Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664

Please consider the environment before printing this email.

Hi Jose,

···

2016-05-02 11:36 GMT+02:00 Jose Garcia <jose.garcia@anonymised.com…>:

Hi

Has someone succeed to run tests in the develop branch?

it works for travis
https://travis-ci.org/geonetwork/core-geonetwork

I’m trying to run them but after a long time running them I get some OutOfMemory errors. After them some test seem running, but are stalled for several minutes, so probably affected by the previous errors.

Running org.fao.geonet.api.records.attachments.MetadataResourceDatabaseMigrationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.034 sec - in org.fao.geonet.api.records.attachments.MetadataResourceDatabaseMigrationTest
Running org.fao.geonet.guiservices.csw.SetTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.383 sec - in org.fao.geonet.guiservices.csw.SetTest
Running org.fao.geonet.guiservices.sampledata.SampleDataAddIntegrationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 19.039 sec - in org.fao.geonet.kernel.search.LuceneSearcherGeomTest
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 17.398 sec - in org.fao.geonet.guiservices.sampledata.SampleDataAddIntegrationTest
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 56.828 sec - in org.fao.geonet.services.metadata.schema.SchematronCriteriaGroupServiceIntegrationTest
Running org.fao.geonet.services.metadata.schema.SchematronCriteriaTypeServiceTest
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.002 sec - in org.fao.geonet.services.metadata.schema.SchematronCriteriaTypeServiceTest
Running org.fao.geonet.services.register.SelfRegisterTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.013 sec - in org.fao.geonet.services.register.SelfRegisterTest
Running org.fao.geonet.services.statistics.SearchStatisticsTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.979 sec - in org.fao.geonet.services.statistics.SearchStatisticsTest
Running org.fao.geonet.services.user.UserListIntegrationTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.796 sec - in org.fao.geonet.services.user.UserListIntegrationTest
Running org.fao.geonet.services.user.UserUpdateIntegrationTest

I don’t remember similar error here.

Francois

I’m using Java 7 and I think I have a pretty high memory configuration setup for maven:

export MAVEN_OPTS=“-Xmx2048M -XX:MaxPermSize=1024M”

And running the tests with mvn test in the root folder of GeoNetwork.

Would be nice to hear from others, just to discard if it’s a issue in my system.

Regards,

Jose García

Vriendelijke groeten / Kind regards,

Jose García


Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664

Please consider the environment before printing this email.


Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Hi Francois

Thanks for the feedback.

My memory setup I think should be enough, but I’ll check in a linux virtual machine. Maybe is OSX, you know Apple hates Java :wink:

Regards,
Jose García

···

On Mon, May 2, 2016 at 1:53 PM, Francois Prunayre <fx.prunayre@anonymised.com> wrote:

Hi Jose,

2016-05-02 11:36 GMT+02:00 Jose Garcia <jose.garcia@anonymised.com>:

Hi

Has someone succeed to run tests in the develop branch?

it works for travis
https://travis-ci.org/geonetwork/core-geonetwork

I’m trying to run them but after a long time running them I get some OutOfMemory errors. After them some test seem running, but are stalled for several minutes, so probably affected by the previous errors.

Running org.fao.geonet.api.records.attachments.MetadataResourceDatabaseMigrationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.034 sec - in org.fao.geonet.api.records.attachments.MetadataResourceDatabaseMigrationTest
Running org.fao.geonet.guiservices.csw.SetTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.383 sec - in org.fao.geonet.guiservices.csw.SetTest
Running org.fao.geonet.guiservices.sampledata.SampleDataAddIntegrationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 19.039 sec - in org.fao.geonet.kernel.search.LuceneSearcherGeomTest
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 17.398 sec - in org.fao.geonet.guiservices.sampledata.SampleDataAddIntegrationTest
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 56.828 sec - in org.fao.geonet.services.metadata.schema.SchematronCriteriaGroupServiceIntegrationTest
Running org.fao.geonet.services.metadata.schema.SchematronCriteriaTypeServiceTest
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.002 sec - in org.fao.geonet.services.metadata.schema.SchematronCriteriaTypeServiceTest
Running org.fao.geonet.services.register.SelfRegisterTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.013 sec - in org.fao.geonet.services.register.SelfRegisterTest
Running org.fao.geonet.services.statistics.SearchStatisticsTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.979 sec - in org.fao.geonet.services.statistics.SearchStatisticsTest
Running org.fao.geonet.services.user.UserListIntegrationTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.796 sec - in org.fao.geonet.services.user.UserListIntegrationTest
Running org.fao.geonet.services.user.UserUpdateIntegrationTest

I don’t remember similar error here.

Francois

I’m using Java 7 and I think I have a pretty high memory configuration setup for maven:

export MAVEN_OPTS=“-Xmx2048M -XX:MaxPermSize=1024M”

And running the tests with mvn test in the root folder of GeoNetwork.

Would be nice to hear from others, just to discard if it’s a issue in my system.

Regards,

Jose García

Vriendelijke groeten / Kind regards,

Jose García


Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664

Please consider the environment before printing this email.


Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Vriendelijke groeten / Kind regards,

Jose García


Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664

Please consider the environment before printing this email.

Hi

I tested in a Linux VM and tests are executed and no OutOfMemory issues. The executions is pretty slow (about 23.5 min.), but apart of this no problems.

Will check further to check if can identify why in my OSX fail with OutOfMemory issues.

Btw, with mvn findbugs:findbugs or mvn findbugs:check (seem findbugs are not executed anymore with mvn test) fail with this:

[INFO] ------------------------------------------------------------------------

[INFO] Building common utils 3.1.0-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO]

[INFO] >>> findbugs-maven-plugin:2.5.3:check (default-cli) > :findbugs @ common >>>

[INFO]

[INFO] — findbugs-maven-plugin:2.5.3:findbugs (findbugs) @ common —

[INFO] Fork Value is true

[java] The following errors occurred during analysis:

[java] May 02, 2016 8:58:33 AM edu.umd.cs.findbugs.TextUIBugReporter reportAnalysisError

[java] SEVERE: Error scanning java/util/Comparator for referenced classes

[java] java.lang.ArrayIndexOutOfBoundsException: 1320

[java] at org.objectweb.asm.ClassReader.readClass(Unknown Source)

[java] at org.objectweb.asm.ClassReader.accept(Unknown Source)

[java] at edu.umd.cs.findbugs.asm.FBClassReader.accept(FBClassReader.java:44)

[java] at org.objectweb.asm.ClassReader.accept(Unknown Source)

Any idea, what can be causing this?

Regards,
Jose García

···

On Mon, May 2, 2016 at 1:59 PM, Jose Garcia <jose.garcia@anonymised.com> wrote:

Hi Francois

Thanks for the feedback.

My memory setup I think should be enough, but I’ll check in a linux virtual machine. Maybe is OSX, you know Apple hates Java :wink:

Regards,
Jose García

On Mon, May 2, 2016 at 1:53 PM, Francois Prunayre <fx.prunayre@anonymised.com.31…> wrote:

Hi Jose,

Vriendelijke groeten / Kind regards,

Jose García


Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664

Please consider the environment before printing this email.

2016-05-02 11:36 GMT+02:00 Jose Garcia <jose.garcia@anonymised.com>:

Hi

Has someone succeed to run tests in the develop branch?

it works for travis
https://travis-ci.org/geonetwork/core-geonetwork

I’m trying to run them but after a long time running them I get some OutOfMemory errors. After them some test seem running, but are stalled for several minutes, so probably affected by the previous errors.

Running org.fao.geonet.api.records.attachments.MetadataResourceDatabaseMigrationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.034 sec - in org.fao.geonet.api.records.attachments.MetadataResourceDatabaseMigrationTest
Running org.fao.geonet.guiservices.csw.SetTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.383 sec - in org.fao.geonet.guiservices.csw.SetTest
Running org.fao.geonet.guiservices.sampledata.SampleDataAddIntegrationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 19.039 sec - in org.fao.geonet.kernel.search.LuceneSearcherGeomTest
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 17.398 sec - in org.fao.geonet.guiservices.sampledata.SampleDataAddIntegrationTest
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 56.828 sec - in org.fao.geonet.services.metadata.schema.SchematronCriteriaGroupServiceIntegrationTest
Running org.fao.geonet.services.metadata.schema.SchematronCriteriaTypeServiceTest
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “main”
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.002 sec - in org.fao.geonet.services.metadata.schema.SchematronCriteriaTypeServiceTest
Running org.fao.geonet.services.register.SelfRegisterTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.013 sec - in org.fao.geonet.services.register.SelfRegisterTest
Running org.fao.geonet.services.statistics.SearchStatisticsTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.979 sec - in org.fao.geonet.services.statistics.SearchStatisticsTest
Running org.fao.geonet.services.user.UserListIntegrationTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.796 sec - in org.fao.geonet.services.user.UserListIntegrationTest
Running org.fao.geonet.services.user.UserUpdateIntegrationTest

I don’t remember similar error here.

Francois

I’m using Java 7 and I think I have a pretty high memory configuration setup for maven:

export MAVEN_OPTS=“-Xmx2048M -XX:MaxPermSize=1024M”

And running the tests with mvn test in the root folder of GeoNetwork.

Would be nice to hear from others, just to discard if it’s a issue in my system.

Regards,

Jose García

Vriendelijke groeten / Kind regards,

Jose García


Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664

Please consider the environment before printing this email.


Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Vriendelijke groeten / Kind regards,

Jose García


Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664

Please consider the environment before printing this email.