Hi all,
got a bunch of failed builds on the server this morning. Noticed failures
in the past too, but did not
look too much into it.

Checking the ones I saw today, all GT branches builds failing, found two
type of errors:

1) Potential conflicts among builds accessing the repository at the same
time (shared metadata file):

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-install-plugin:2.4:install (default-install)
on project gt-s3-geotiff: Failed to install metadata
org.geotools:gt-s3-geotiff/maven-metadata.xml: Could not parse metadata
/var/lib/jenkins/.m2/repository/org/geotools/gt-s3-geotiff/maven-metadata-local.xml:
in epilog non whitespace content is not allowed but got T (position:
END_TAG seen ...</metadata>\nT... @12:2) -> [Help 1]

2) Conflicts of TCP ports, we have a test trying to talk to a H2 server,
first checking it cannot, then opening the server for good, and checking it
can:

[INFO] Running org.geotools.data.h2.H2DataStoreFactoryTest
[ERROR] Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed:
0.617 s <<< FAILURE! - in org.geotools.data.h2.H2DataStoreFactoryTest
[ERROR] testTCP(org.geotools.data.h2.H2DataStoreFactoryTest)  Time elapsed:
0.523 s  <<< FAILURE!
java.lang.AssertionError: Should not have made a connection.
at
org.geotools.data.h2.H2DataStoreFactoryTest.testTCP(H2DataStoreFactoryTest.java:113)

This failure can happen if the same test in a different branch is running
in parallel (back luck for sure).

For the first issue, I can think of two ways:
- Having separate repositories for branches allowed to run at the same time
- Maybe installing the Takari concurrent repository in Maven... it should
handle exactly this issue, but it's old and not sure if still maintained

For the second one, we already have a flag to turn that test off for
GitHub, I guess we could use it
to silence it (it will silence also other tests trying to open TCP ports,
which I guess is the right thing to do
for builds all running on the same host)

Opinions?

Cheers
Andrea

== GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf
Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa
(LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549
http://www.geo-solutions.it http://twitter.com/geosolutions_it
------------------------------------------------------- *Con riferimento
alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 -
Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni
circostanza inerente alla presente email (il suo contenuto, gli eventuali
allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le
sarei comunque grato se potesse darmene notizia. This email is intended
only for the person or entity to which it is addressed and may contain
information that is privileged, confidential or otherwise protected from
disclosure. We remind that - as provided by European Regulation 2016/679
“GDPR” - copying, dissemination or use of this e-mail or the information
herein by anyone other than the intended recipient is prohibited. If you
have received this email by mistake, please notify us immediately by
telephone or e-mail.*
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to