[Geoserver-devel] Build on travis failing again due to too long log

[https://s3.amazonaws.com/archive.travis-ci.org/jobs/17985779/log.txt](https://s3.amazonaws.com/archive.travis-ci.org/jobs/17985779/log.txt)

Sigh... suggestions? Can we silence Maven download reports?

Also, the app-schema tests seem to be super verbose
Cheers

Andrea

== Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information ==

Ing. Andrea Aime

@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


Some gwc tests seem to be print out an entire raster

[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ gs-gwc ---
NCOLS 120
NROWS 240
XLLCORNER 145.0
YLLCORNER -42.999999999986805
CELLSIZE 0.008333333333313438
NODATA_VALUE -9999
5.0 5.0 5.0 5.0 5.0 5.0 5.0 5.0 5.0 5.0 5.0 5.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 50.0 50.0 50.0 50.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 20.0 5.0 5.0 5.0 5.0 5.0 5.0 5.0 5.0 5.0 5.0 5.0 5.0 5.0 5.0 5.0 5.0 5.0 5.0 5.0 5.0 5.0 5.0 5.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
....etc...


Several tests are printing out the entire GetCapabilities (complete with SRS list):
* org.geoserver.test.WmsGetFeatureInfoTest testGetCapabilities

* org.geoserver.wps.process.WPSConfigProcessFilterTest
* org.geoserver.test.DuplicatePropertiesWfsTest testGetCapabilities
* org.geoserver.test.WmsGetFeatureInfoTest testGetCapabilities
···

Jody Garnett

On Sat, Feb 1, 2014 at 7:08 AM, Andrea Aime <andrea.aime@anonymised.com> wrote:

[https://s3.amazonaws.com/archive.travis-ci.org/jobs/17985779/log.txt](https://s3.amazonaws.com/archive.travis-ci.org/jobs/17985779/log.txt)

Sigh... suggestions? Can we silence Maven download reports?

Also, the app-schema tests seem to be super verbose
Cheers

Andrea

== Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information ==

Ing. Andrea Aime

@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it



WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends. Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk


Geoserver-devel mailing list
Geoserver-devel@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

On 01/02/14 04:08, Andrea Aime wrote:

https://s3.amazonaws.com/archive.travis-ci.org/jobs/17985779/log.txt
Sigh... suggestions? Can we silence Maven download reports?

This is normally done by running Maven in batch mode with the "-B" option. I use this option on all CI jobs I manage.

Also, the app-schema tests seem to be super verbose

They are much quieter than before. We can make them even quieter.

Rini, a small change to AbstractAppSchemaTestSupport.prettyString would hide most response documents from the logs. I am thinking a system property that developers could enable if they want to see them.

Kind regards,

--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre

On Mon, Feb 3, 2014 at 4:52 AM, Ben Caradoc-Davies <
Ben.Caradoc-Davies@anonymised.com> wrote:

On 01/02/14 04:08, Andrea Aime wrote:

https://s3.amazonaws.com/archive.travis-ci.org/jobs/17985779/log.txt
Sigh... suggestions? Can we silence Maven download reports?

This is normally done by running Maven in batch mode with the "-B" option.
I use this option on all CI jobs I manage.

Pretty interesting, I'll add it to the GeoServer Travis builds!

Also, the app-schema tests seem to be super verbose

They are much quieter than before. We can make them even quieter.

Rini, a small change to AbstractAppSchemaTestSupport.prettyString would
hide most response documents from the logs. I am thinking a system property
that developers could enable if they want to see them.

I believe there is already a system variable you can peek at to see if the
tests are to be run in quiet mode, which is normally set
as you build with Maven, but not if you run the tests from IDE.
GeoServerBaseTestSupport.isQuietTests()

/**
     * Checks for existence of a system property named "quietTests".
     */
    public static boolean isQuietTests() {
        String quietTests = System.getProperty("quietTests");
        return quietTests != null && !"false".equalsIgnoreCase(quietTests);
    }

I guess you can just call the method above.

Cheers
Andrea

--
== Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information ==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

On 03/02/14 15:16, Andrea Aime wrote:

I believe there is already a system variable you can peek at to see if
the tests are to be run in quiet mode, which is normally set
as you build with Maven, but not if you run the tests from IDE.

Excellent! I was just re-inventing the wheel, but much better to use the existing flag. I will also need to adjust our poms to ensure the flag is passed by surefire-plugin.

Kind regards,

--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre

On Mon, Feb 3, 2014 at 9:35 AM, Ben Caradoc-Davies <
Ben.Caradoc-Davies@anonymised.com> wrote:

On 03/02/14 15:16, Andrea Aime wrote:

I believe there is already a system variable you can peek at to see if
the tests are to be run in quiet mode, which is normally set
as you build with Maven, but not if you run the tests from IDE.

Excellent! I was just re-inventing the wheel, but much better to use the
existing flag. I will also need to adjust our poms to ensure the flag is
passed by surefire-plugin.

That flag is sent down to surefire in the main pom for all the module to
use.
Maybe you have customized the app-schema pom already, breaking inheritance?

Cheers
Andrea

--
== Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information ==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

On 03/02/14 16:44, Andrea Aime wrote:

That flag is sent down to surefire in the main pom for all the module to
use.
Maybe you have customized the app-schema pom already, breaking inheritance?

That is exactly what the problem was. Fixed, and no code changes required. Although there are still a few leaky tests, which are now much more obvious. Thanks again!

Kind regards,

--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre

On Mon, Feb 3, 2014 at 4:52 AM, Ben Caradoc-Davies <
Ben.Caradoc-Davies@anonymised.com> wrote:

On 01/02/14 04:08, Andrea Aime wrote:

https://s3.amazonaws.com/archive.travis-ci.org/jobs/17985779/log.txt
Sigh... suggestions? Can we silence Maven download reports?

This is normally done by running Maven in batch mode with the "-B" option.
I use this option on all CI jobs I manage.

Hey Ben,
the flag helped, we're back with a partially working build:

https://travis-ci.org/geoserver/geoserver/builds/18117677

The Oracle JDK build is still failing with a WPS test failure, but that's
"ok"

Cheers
Andrea

--
== Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information ==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

On 03/02/14 18:25, Andrea Aime wrote:

Hey Ben,
the flag helped, we're back with a partially working build:
https://travis-ci.org/geoserver/geoserver/builds/18117677

Great! The app-schema quietTests should give you more head room.

Kind regards,

--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineer
CSIRO Earth Science and Resource Engineering
Australian Resources Research Centre