Nightly builds broken since Jun 9th... and now restored

Hi all,
I’ve just noticed the GeoServer nightly builds has been broken since June 9th.
The community modules build breaks on ElasticSearch, but in an odd way:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:testCompile (default-testCompile) on project gs-web-elasticsearch: Compilation failure: Compilation failure:
[ERROR] /var/lib/jenkins/workspace/geoserver-main-nightly/src/community/elasticsearch/src/test/java/org/geoserver/elasticsearch/ElasticTestSupport.java:[26,32] package org.elasticsearch.client does not exist
[ERROR] /var/lib/jenkins/workspace/geoserver-main-nightly/src/community/elasticsearch/src/test/java/org/geoserver/elasticsearch/RestElasticClient.java:[30,32] package org.elasticsearch.client does not exist
[ERROR] /var/lib/jenkins/workspace/geoserver-main-nightly/src/community/elasticsearch/src/test/java/org/geoserver/elasticsearch/RestElasticClient.java:[31,32] package org.elasticsearch.client does not exist
[ERROR] /var/lib/jenkins/workspace/geoserver-main-nightly/src/community/elasticsearch/src/test/java/org/geoserver/elasticsearch/RestElasticClient.java:[32,32] package org.elasticsearch.client does not exist
[ERROR] /var/lib/jenkins/workspace/geoserver-main-nightly/src/community/elasticsearch/src/test/java/org/geoserver/elasticsearch/RestElasticClient.java:[33,32] package org.elasticsearch.client does not exist
[ERROR] /var/lib/jenkins/workspace/geoserver-main-nightly/src/community/elasticsearch/src/test/java/org/geoserver/elasticsearch/RestElasticClient.java:[34,32] package org.elasticsearch.client does not exist
[ERROR] /var/lib/jenkins/workspace/geoserver-main-nightly/src/community/elasticsearch/src/test/java/org/geoserver/elasticsearch/RestElasticClient.java:[52,19] error: cannot find symbol
[ERROR] private final RestClient client;
[ERROR] ^
[ERROR] symbol: class RestClient
[ERROR] location: class org.geoserver.elasticsearch.RestElasticClient
[ERROR] /var/lib/jenkins/workspace/geoserver-main-nightly/src/community/elasticsearch/src/test/java/org/geoserver/elasticsearch/RestElasticClient.java:[54,19] cannot find symbol
[ERROR] symbol: class RestClient
[ERROR] location: class org.geoserver.elasticsearch.RestElasticClient
[ERROR] /var/lib/jenkins/workspace/geoserver-main-nightly/src/community/elasticsearch/src/test/java/org/geoserver/elasticsearch/RestElasticClient.java:[64,30] cannot find symbol
[ERROR] symbol: class RestClient
[ERROR] location: class org.geoserver.elasticsearch.RestElasticClient
[ERROR] /var/lib/jenkins/workspace/geoserver-main-nightly/src/community/elasticsearch/src/test/java/org/geoserver/elasticsearch/RestElasticClient.java:[68,30] cannot find symbol
[ERROR] symbol: class RestClient
[ERROR] location: class org.geoserver.elasticsearch.RestElasticClient
[ERROR] /var/lib/jenkins/workspace/geoserver-main-nightly/src/community/elasticsearch/src/test/java/org/geoserver/elasticsearch/RestElasticClient.java:[68,49] cannot find symbol
[ERROR] symbol: class RestClient
[ERROR] location: class org.geoserver.elasticsearch.RestElasticClient
[ERROR] /var/lib/jenkins/workspace/geoserver-main-nightly/src/community/elasticsearch/src/test/java/org/geoserver/elasticsearch/RestElasticClient.java:[243,13] cannot find symbol
[ERROR] symbol: class Response
[ERROR] location: class org.geoserver.elasticsearch.RestElasticClient
[ERROR] /var/lib/jenkins/workspace/geoserver-main-nightly/src/community/elasticsearch/src/test/java/org/geoserver/elasticsearch/RestElasticClient.java:[292,5] cannot find symbol
[ERROR] symbol: class Response
[ERROR] location: class org.geoserver.elasticsearch.RestElasticClient
[ERROR] /var/lib/jenkins/workspace/geoserver-main-nightly/src/community/elasticsearch/src/test/java/org/geoserver/elasticsearch/RestElasticClient.java:[296,49] cannot find symbol
[ERROR] symbol: class Response
[ERROR] location: class org.geoserver.elasticsearch.RestElasticClient
[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] MojoFailureException - Apache Maven - Apache Software Foundation
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :gs-web-elasticsearch

Took me a while to figure out… the failure seemed related to the BOM landing (landed same date, no other changes in gt-elasticsearch that day), but I could not reproduce it… after much fiddling locally and on the build server, I’ve found the nightly communityBuild was running with -nsu and I’m guessing that prevented some BOM related update to be gathered?

Removed it, and the nightly is now back in business.

Cheers
Anrea

1 Like