Niclas Hedhman a écrit : > This is a case of; java.net.BindException: Address already in use > in Rest client tests. > > Intermittent, but should probably use the flexible port approach that I > think Paul put in somewhere else.
Yep, we have a FreePortFinder in testsupport. It's not ideal because between the time it finds a free port, the very same port could be taken by something else, especially on CI where a lot of stuff is happening, but it lower the failure window by a lot. > > Niclas > > On Sat, Mar 11, 2017 at 10:36 AM, Apache Jenkins Server < > [email protected]> wrote: > >> See <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/78/display/redirect?page=changes> >> >> Changes: >> >> [niclas] Restructuring of the yeoman generator, to make it more easy to >> work with >> >> ------------------------------------------ >> [...truncated 675.35 KB...] >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/extensions/indexing-elasticsearch/src/main/java/ >> org/apache/polygene/index/elasticsearch/ElasticSearchConfiguration.java>:49: >> warning: no @return >> @UseDefaults Property<Boolean> indexNonAggregatedAssociations(); >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/libraries/http/src/main/java/ >> org/apache/polygene/library/http/JettyServiceAssembler.java>:42: warning: >> no @return >> public JettyServiceAssembler withServer( ModuleAssembly serverModule, >> Visibility serverVisibility ) >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/libraries/shiro-core/src/main/ >> java/org/apache/polygene/library/shiro/ini/ShiroIniConfiguration.java>:37: >> warning: no @return >> Property<String> iniResourcePath(); >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/extensions/entitystore-sql/ >> src/main/java/org/apache/polygene/entitystore/sql/internal/ >> DatabaseSQLServiceCoreMixin.java>:141: warning: no @param for >> defaultSchemaName >> protected String getConfiguredSchemaName( String defaultSchemaName ) >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/extensions/entitystore-sql/ >> src/main/java/org/apache/polygene/entitystore/sql/internal/ >> DatabaseSQLServiceCoreMixin.java>:141: warning: no @return >> protected String getConfiguredSchemaName( String defaultSchemaName ) >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/extensions/entitystore-jclouds/src/main/java/org/ >> apache/polygene/entitystore/jclouds/JCloudsMapEntityStoreConfigura >> tion.java>:39: warning: no @return >> @Optional Property<String> provider(); >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/extensions/entitystore-jclouds/src/main/java/org/ >> apache/polygene/entitystore/jclouds/JCloudsMapEntityStoreConfigura >> tion.java>:45: warning: no @return >> @UseDefaults Property<Map<String, String>> properties(); >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/extensions/entitystore-jclouds/src/main/java/org/ >> apache/polygene/entitystore/jclouds/JCloudsMapEntityStoreConfigura >> tion.java>:49: warning: no @return >> @Optional Property<String> container(); >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/extensions/entitystore-jclouds/src/main/java/org/ >> apache/polygene/entitystore/jclouds/JCloudsMapEntityStoreConfigura >> tion.java>:53: warning: no @return >> @Optional Property<String> endpoint(); >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/libraries/circuitbreaker/src/ >> main/java/org/apache/polygene/library/circuitbreaker/jmx/ >> CircuitBreakerManagement.java>:56: warning: no @throws for >> javax.management.JMException >> void registerCircuitBreakers() >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/libraries/circuitbreaker/src/ >> main/java/org/apache/polygene/library/circuitbreaker/jmx/ >> CircuitBreakerManagement.java>:62: warning: no @throws for >> javax.management.JMException >> void unregisterCircuitBreakers() >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/extensions/entitystore-leveldb/src/main/java/org/ >> apache/polygene/entitystore/leveldb/LevelDBEntityStoreConfiguration.java>:39: >> warning: no @return >> Property<String> flavour(); >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/libraries/locking/src/main/ >> java/org/apache/polygene/library/locking/WriteLockConcern.java>:63: >> warning: no @param for lock >> protected void lock(Lock lock) >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/core/api/src/main/java/org/apache/ >> polygene/api/metrics/MetricsHealthCheck.java>:56: warning: no @param for >> message >> public static Result unhealthy(String message) { >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/core/api/src/main/java/org/apache/ >> polygene/api/metrics/MetricsHealthCheck.java>:64: warning: no @param for >> message >> public static Result exception(String message, Throwable >> exception) { >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/core/api/src/main/java/org/apache/ >> polygene/api/metrics/MetricsHealthCheck.java>:64: warning: no @param for >> exception >> public static Result exception(String message, Throwable >> exception) { >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/libraries/shiro-core/src/main/ >> java/org/apache/polygene/library/shiro/domain/passwords/ >> PasswordRealmConfiguration.java>:35: warning: no @return >> Property<String> hashAlgorithmName(); >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/libraries/shiro-core/src/main/ >> java/org/apache/polygene/library/shiro/domain/passwords/ >> PasswordRealmConfiguration.java>:41: warning: no @return >> Property<Integer> hashIterationsCount(); >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/libraries/uowfile/src/main/ >> java/org/apache/polygene/library/uowfile/plural/HasUoWFiles.java>:38: >> warning: no @param for key >> File attachedFile( T key ); >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/libraries/uowfile/src/main/ >> java/org/apache/polygene/library/uowfile/plural/HasUoWFiles.java>:38: >> warning: no @return >> File attachedFile( T key ); >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/libraries/uowfile/src/main/ >> java/org/apache/polygene/library/uowfile/plural/HasUoWFiles.java>:43: >> warning: no @return >> Iterable<File> attachedFiles(); >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/extensions/entitystore-redis/ >> src/main/java/org/apache/polygene/entitystore/redis/ >> RedisEntityStoreConfiguration.java>:40: warning: no @return >> Property<String> host(); >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/extensions/entitystore-redis/ >> src/main/java/org/apache/polygene/entitystore/redis/ >> RedisEntityStoreConfiguration.java>:48: warning: no @return >> Property<Integer> port(); >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/extensions/entitystore-redis/ >> src/main/java/org/apache/polygene/entitystore/redis/ >> RedisEntityStoreConfiguration.java>:56: warning: no @return >> Property<Integer> timeout(); >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/extensions/entitystore-redis/ >> src/main/java/org/apache/polygene/entitystore/redis/ >> RedisEntityStoreConfiguration.java>:62: warning: no @return >> Property<String> password(); >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/extensions/entitystore-redis/ >> src/main/java/org/apache/polygene/entitystore/redis/ >> RedisEntityStoreConfiguration.java>:70: warning: no @return >> Property<Integer> database(); >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/libraries/restlet/src/main/ >> java/org/apache/polygene/library/restlet/serialization/ >> FormRepresentation.java>:106: warning: no description for @throws >> * @throws IOException >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/libraries/restlet/src/main/ >> java/org/apache/polygene/library/restlet/serialization/ >> JsonRepresentation.java>:88: warning: no description for @throws >> * @throws IOException >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/libraries/restlet/src/main/ >> java/org/apache/polygene/library/restlet/serialization/ >> PolygeneConverter.java>:65: warning: no @param for <T> >> protected <T> Representation create( MediaType mediaType, T source ) >> ^ >> <https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/libraries/restlet/src/main/ >> java/org/apache/polygene/library/restlet/serialization/ >> PolygeneConverter.java>:79: warning: no @param for <T> >> protected <T> Representation create( Representation source, Class<T> >> objectClass ) >> ^ >> >> 57 warnings >> :core:api:honkerCheck >> :core:api:check >> :core:bootstrap:honkerCheck >> :core:bootstrap:check >> :core:runtime:honkerCheck >> :core:runtime:check >> :core:spi:honkerCheck >> :core:spi:check >> :core:testsupport:honkerCheck >> :core:testsupport:check >> :extensions:cache-ehcache:honkerCheck >> :extensions:cache-ehcache:check >> :extensions:cache-memcache:honkerCheck >> :extensions:cache-memcache:check >> :extensions:entitystore-cassandra:honkerCheck >> :extensions:entitystore-cassandra:check >> :extensions:entitystore-file:honkerCheck >> :extensions:entitystore-file:check >> :extensions:entitystore-geode:honkerCheck >> :extensions:entitystore-geode:check >> :extensions:entitystore-hazelcast:honkerCheck >> :extensions:entitystore-hazelcast:check >> :extensions:entitystore-jclouds:honkerCheck >> :extensions:entitystore-jclouds:check >> :extensions:entitystore-jdbm:honkerCheck >> :extensions:entitystore-jdbm:check >> :extensions:entitystore-leveldb:honkerCheck >> :extensions:entitystore-leveldb:check >> :extensions:entitystore-memory:honkerCheck >> :extensions:entitystore-memory:check >> :extensions:entitystore-mongodb:honkerCheck >> :extensions:entitystore-mongodb:check >> :extensions:entitystore-preferences:honkerCheck >> :extensions:entitystore-preferences:check >> :extensions:entitystore-redis:honkerCheck >> :extensions:entitystore-redis:check >> :extensions:entitystore-riak:honkerCheck >> :extensions:entitystore-riak:check >> :extensions:entitystore-sql:honkerCheck >> :extensions:entitystore-sql:check >> :extensions:indexing-elasticsearch:honkerCheck >> :extensions:indexing-elasticsearch:check >> :extensions:indexing-rdf:honkerCheck >> :extensions:indexing-rdf:check >> :extensions:indexing-solr:honkerCheck >> :extensions:indexing-solr:check >> :extensions:indexing-sql:honkerCheck >> :extensions:indexing-sql:check >> :extensions:metrics-codahale:honkerCheck >> :extensions:metrics-codahale:check >> :extensions:migration:honkerCheck >> :extensions:migration:check >> :extensions:reindexer:honkerCheck >> :extensions:reindexer:check >> :extensions:valueserialization-jackson:honkerCheck >> :extensions:valueserialization-jackson:check >> :extensions:valueserialization-orgjson:honkerCheck >> :extensions:valueserialization-orgjson:check >> :extensions:valueserialization-stax:honkerCheck >> :extensions:valueserialization-stax:check >> :internals:testsupport-internal:check UP-TO-DATE >> :libraries:alarm:honkerCheck >> :libraries:alarm:check >> :libraries:circuitbreaker:honkerCheck >> :libraries:circuitbreaker:check >> :libraries:constraints:honkerCheck >> :libraries:constraints:check >> :libraries:fileconfig:honkerCheck >> :libraries:fileconfig:check >> :libraries:http:honkerCheck >> :libraries:http:check >> :libraries:invocation-cache:honkerCheck >> :libraries:invocation-cache:check >> :libraries:jmx:honkerCheck >> :libraries:jmx:check >> :libraries:lang-groovy:honkerCheck >> :libraries:lang-groovy:check >> :libraries:lang-javascript:honkerCheck >> :libraries:lang-javascript:check >> :libraries:locking:honkerCheck >> :libraries:locking:check >> :libraries:logging:honkerCheck >> :libraries:logging:check >> :libraries:osgi:honkerCheck >> :libraries:osgi:check >> :libraries:rdf:honkerCheck >> :libraries:rdf:check >> :libraries:rest:honkerCheck >> :libraries:rest:check >> :libraries:rest-client:honkerCheck >> :libraries:rest-common:honkerCheck >> :libraries:rest-common:check >> :libraries:rest-server:honkerCheck >> :libraries:rest-server:check >> :libraries:restlet:honkerCheck >> :libraries:restlet:check >> :libraries:scripting:honkerCheck >> :libraries:scripting:check >> :libraries:servlet:honkerCheck >> :libraries:servlet:check >> :libraries:shiro-core:honkerCheck >> :libraries:shiro-core:check >> :libraries:shiro-web:honkerCheck >> :libraries:shiro-web:check >> :libraries:spring:honkerCheck >> :libraries:spring:check >> :libraries:sql:honkerCheck >> :libraries:sql:check >> :libraries:sql-bonecp:honkerCheck >> :libraries:sql-bonecp:check >> :libraries:sql-dbcp:honkerCheck >> :libraries:sql-dbcp:check >> :libraries:sql-liquibase:honkerCheck >> :libraries:sql-liquibase:check >> :libraries:uid:honkerCheck >> :libraries:uid:check >> :libraries:uowfile:honkerCheck >> :libraries:uowfile:check >> :samples:dci:check >> :samples:forum:check >> :samples:rental:check UP-TO-DATE >> :samples:sql-support:check UP-TO-DATE >> :samples:swing:check UP-TO-DATE >> :tests:performance:compilePerfJava >> :tests:performance:compilePerfJava - is not incremental (e.g. outputs >> have changed, no previous execution, etc.). >> warning: [options] bootstrap class path not set in conjunction with >> -source 1.8 >> 1 warning >> :tests:performance:check >> :tests:regression:check UP-TO-DATE >> :tools:envisage:honkerCheck >> :tools:envisage:check >> :tools:model-detail:honkerCheck >> :tools:model-detail:check >> :tutorials:cargo:check >> :tutorials:composites:check >> :tutorials:hello:check >> :tutorials:introduction:check UP-TO-DATE >> :tutorials:services:check >> :tutorials:introduction:tenminutes:check UP-TO-DATE >> :tutorials:introduction:thirtyminutes:check UP-TO-DATE >> :tutorials:introduction:twominutes:check UP-TO-DATE >> >> FAILURE: Build failed with an exception. >> >> * What went wrong: >> Execution failed for task ':libraries:rest-client:test'. >>> There were failing tests. See the report at: file://< >> https://builds.apache.org/job/Polygene(JavaEdition)- >> develop-java9-check/ws/libraries/rest-client/build/ >> reports/tests/test/index.html> >> >> * Try: >> Run with --stacktrace option to get the stack trace. Run with --info or >> --debug option to get more log output. >> >> BUILD FAILED >> >> Total time: 9 mins 46.553 secs >> Build step 'Invoke Gradle script' changed build result to FAILURE >> Build step 'Invoke Gradle script' marked build as failure >> Recording test results >> > > >
