spring-projects / spring-boot

Spring Boot helps you to create Spring-powered, production-grade applications and services with absolute minimum fuss.
https://spring.io/projects/spring-boot
Apache License 2.0
75.22k stars 40.7k forks source link

Spring Boot `master` branch build fails on Ubuntu 17.04 #9889

Closed vpavic closed 7 years ago

vpavic commented 7 years ago

The build of the project's master branch is failing for me on Ubuntu 17.04. The problem is not isolated to a single machine as I've tried building on two running same Ubuntu release. I've also tried with a fresh clone but result is the same.

I'm executing the build with the usual ./mvnw clean install command which yields:

Results :

Failed tests: 
  JettyReactiveWebServerFactoryTests.startStopServer expectation "expectError()" failed (expected: onError(); actual: onNext(org.springframework.web.reactive.function.client.DefaultClientResponse@a9a4aab))

Tests run: 1795, Failures: 1, Errors: 0, Skipped: 3

Detailed log output:

-------------------------------------------------------------------------------
Test set: org.springframework.boot.web.embedded.jetty.JettyReactiveWebServerFactoryTests
-------------------------------------------------------------------------------
Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.498 sec <<< FAILURE! - in org.springframework.boot.web.embedded.jetty.JettyReactiveWebServerFactoryTests
startStopServer(org.springframework.boot.web.embedded.jetty.JettyReactiveWebServerFactoryTests)  Time elapsed: 0.057 sec  <<< FAILURE!
java.lang.AssertionError: expectation "expectError()" failed (expected: onError(); actual: onNext(org.springframework.web.reactive.function.client.DefaultClientResponse@a9a4aab))
    at reactor.test.DefaultStepVerifierBuilder.failPrefix(DefaultStepVerifierBuilder.java:2162)
    at reactor.test.DefaultStepVerifierBuilder.fail(DefaultStepVerifierBuilder.java:2158)
    at reactor.test.DefaultStepVerifierBuilder.lambda$expectError$4(DefaultStepVerifierBuilder.java:231)
    at reactor.test.DefaultStepVerifierBuilder$SignalEvent.test(DefaultStepVerifierBuilder.java:1900)
    at reactor.test.DefaultStepVerifierBuilder$DefaultVerifySubscriber.onSignal(DefaultStepVerifierBuilder.java:1272)
    at reactor.test.DefaultStepVerifierBuilder$DefaultVerifySubscriber.onExpectation(DefaultStepVerifierBuilder.java:1217)
    at reactor.test.DefaultStepVerifierBuilder$DefaultVerifySubscriber.onNext(DefaultStepVerifierBuilder.java:905)
    at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onNext(FluxSwitchIfEmpty.java:67)
    at reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:108)
    at reactor.core.publisher.FluxPeek$PeekSubscriber.onNext(FluxPeek.java:185)
    at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onNext(FluxSwitchIfEmpty.java:67)
    at reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:108)
    at reactor.core.publisher.FluxMap$MapSubscriber.onNext(FluxMap.java:108)
    at reactor.core.publisher.FluxRetryPredicate$RetryPredicateSubscriber.onNext(FluxRetryPredicate.java:79)
    at reactor.core.publisher.MonoCreate$DefaultMonoSink.success(MonoCreate.java:129)
    at reactor.ipc.netty.channel.PooledClientContextHandler.fireContextActive(PooledClientContextHandler.java:84)
    at reactor.ipc.netty.http.client.HttpClientOperations.onInboundNext(HttpClientOperations.java:542)
    at reactor.ipc.netty.channel.ChannelOperationsHandler.channelRead(ChannelOperationsHandler.java:125)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)
    at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:297)
    at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:413)
    at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
    at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
    at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)
    at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:134)
    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:644)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:579)
    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:496)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458)
    at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
    at java.lang.Thread.run(Thread.java:748)

I've also tried building just spring-boot-autoconfigure module using ./mvnw clean install -pl spring-boot-autoconfigure, but this yields another error:

Results :

Tests in error: 
  HazelcastJpaDependencyAutoConfigurationTests.noRegistrationIfHazelcastInstanceHasCustomBeanName:65->load:111 ยป UnsatisfiedDependency

Tests run: 1677, Failures: 0, Errors: 1, Skipped: 6

Detailed log output:

-------------------------------------------------------------------------------
Test set: org.springframework.boot.autoconfigure.hazelcast.HazelcastJpaDependencyAutoConfigurationTests
-------------------------------------------------------------------------------
Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.793 sec <<< FAILURE! - in org.springframework.boot.autoconfigure.hazelcast.HazelcastJpaDependencyAutoConfigurationTests
noRegistrationIfHazelcastInstanceHasCustomBeanName(org.springframework.boot.autoconfigure.hazelcast.HazelcastJpaDependencyAutoConfigurationTests)  Time elapsed: 0.124 sec  <<< ERROR!
org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'hibernateJpaAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in org.springframework.boot.autoconfigure.jdbc.EmbeddedDataSourceConfiguration: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSourceInitializer': Invocation of init method failed; nested exception is org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement #1 of URL [file:/home/vedran/dev/projects/spring/spring-boot/spring-boot-autoconfigure/target/test-classes/schema.sql]: CREATE TABLE BAR ( id INTEGER IDENTITY PRIMARY KEY, name VARCHAR(30), ); nested exception is org.h2.jdbc.JdbcSQLException: Table "BAR" already exists; SQL statement:
CREATE TABLE BAR ( id INTEGER IDENTITY PRIMARY KEY, name VARCHAR(30), ) [42101-196]
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:726)
    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:191)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1281)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1137)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:499)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:312)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:368)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1261)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1109)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:499)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:312)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
    at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1083)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:858)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)
    at org.springframework.boot.autoconfigure.hazelcast.HazelcastJpaDependencyAutoConfigurationTests.load(HazelcastJpaDependencyAutoConfigurationTests.java:111)
    at org.springframework.boot.autoconfigure.hazelcast.HazelcastJpaDependencyAutoConfigurationTests.noRegistrationIfHazelcastInstanceHasCustomBeanName(HazelcastJpaDependencyAutoConfigurationTests.java:65)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
    at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in org.springframework.boot.autoconfigure.jdbc.EmbeddedDataSourceConfiguration: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSourceInitializer': Invocation of init method failed; nested exception is org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement #1 of URL [file:/home/vedran/dev/projects/spring/spring-boot/spring-boot-autoconfigure/target/test-classes/schema.sql]: CREATE TABLE BAR ( id INTEGER IDENTITY PRIMARY KEY, name VARCHAR(30), ); nested exception is org.h2.jdbc.JdbcSQLException: Table "BAR" already exists; SQL statement:
CREATE TABLE BAR ( id INTEGER IDENTITY PRIMARY KEY, name VARCHAR(30), ) [42101-196]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:591)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:499)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:312)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:205)
    at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:255)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1131)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1058)
    at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:812)
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:718)
    ... 48 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSourceInitializer': Invocation of init method failed; nested exception is org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement #1 of URL [file:/home/vedran/dev/projects/spring/spring-boot/spring-boot-autoconfigure/target/test-classes/schema.sql]: CREATE TABLE BAR ( id INTEGER IDENTITY PRIMARY KEY, name VARCHAR(30), ); nested exception is org.h2.jdbc.JdbcSQLException: Table "BAR" already exists; SQL statement:
CREATE TABLE BAR ( id INTEGER IDENTITY PRIMARY KEY, name VARCHAR(30), ) [42101-196]
    at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:138)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:422)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1707)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:499)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:312)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:225)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveNamedBean(DefaultListableBeanFactory.java:1010)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:340)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:335)
    at org.springframework.boot.autoconfigure.jdbc.DataSourceInitializerPostProcessor.postProcessAfterInitialization(DataSourceInitializerPostProcessor.java:62)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:436)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1720)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
    ... 58 more
Caused by: org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement #1 of URL [file:/home/vedran/dev/projects/spring/spring-boot/spring-boot-autoconfigure/target/test-classes/schema.sql]: CREATE TABLE BAR ( id INTEGER IDENTITY PRIMARY KEY, name VARCHAR(30), ); nested exception is org.h2.jdbc.JdbcSQLException: Table "BAR" already exists; SQL statement:
CREATE TABLE BAR ( id INTEGER IDENTITY PRIMARY KEY, name VARCHAR(30), ) [42101-196]
    at org.springframework.jdbc.datasource.init.ScriptUtils.executeSqlScript(ScriptUtils.java:492)
    at org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.populate(ResourceDatabasePopulator.java:240)
    at org.springframework.jdbc.datasource.init.DatabasePopulatorUtils.execute(DatabasePopulatorUtils.java:48)
    at org.springframework.boot.autoconfigure.jdbc.DataSourceInitializer.runScripts(DataSourceInitializer.java:191)
    at org.springframework.boot.autoconfigure.jdbc.DataSourceInitializer.runSchemaScripts(DataSourceInitializer.java:91)
    at org.springframework.boot.autoconfigure.jdbc.DataSourceInitializer.init(DataSourceInitializer.java:82)
    at sun.reflect.GeneratedMethodAccessor742.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:369)
    at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:312)
    at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:135)
    ... 73 more
Caused by: org.h2.jdbc.JdbcSQLException: Table "BAR" already exists; SQL statement:
CREATE TABLE BAR ( id INTEGER IDENTITY PRIMARY KEY, name VARCHAR(30), ) [42101-196]
    at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
    at org.h2.message.DbException.get(DbException.java:179)
    at org.h2.message.DbException.get(DbException.java:155)
    at org.h2.command.ddl.CreateTable.update(CreateTable.java:117)
    at org.h2.command.CommandContainer.update(CommandContainer.java:101)
    at org.h2.command.Command.executeUpdate(Command.java:260)
    at org.h2.jdbc.JdbcStatement.executeInternal(JdbcStatement.java:192)
    at org.h2.jdbc.JdbcStatement.execute(JdbcStatement.java:164)
    at org.springframework.jdbc.datasource.init.ScriptUtils.executeSqlScript(ScriptUtils.java:471)
    ... 84 more

I don't know when exactly this started occurring but I guess it's been a few months (as I've been experiencing the problem before but didn't have time to put together detailed report and try with multiple machines).

Note that there are no problems building the 1.5.x branch.

Here are the environment details:

$ uname -srvmpio
Linux 4.10.0-28-generic #32-Ubuntu SMP Fri Jun 30 05:32:18 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/os-release 
NAME="Ubuntu"
VERSION="17.04 (Zesty Zapus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 17.04"
VERSION_ID="17.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=zesty
UBUNTU_CODENAME=zesty
$ java -version
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (Zulu 8.21.0.1-linux64) (build 1.8.0_131-b11)
OpenJDK 64-Bit Server VM (Zulu 8.21.0.1-linux64) (build 25.131-b11, mixed mode)

(I'm running OpenJDK by default but did try with Oracle JDK as well)

snicoll commented 7 years ago

@vpavic the second one is probably easy to fix, I'll have a look. Not sure about the first one yet. Can you run with -fae to see if other modules are also broken on your setup?

vpavic commented 7 years ago

OK, so ./mvnw clean install -fae results in:

[INFO] Reactor Summary:
[INFO] 
[INFO] Spring Boot Dependencies ........................... SUCCESS [  5.220 s]
[INFO] Spring Boot Parent ................................. SUCCESS [  1.435 s]
[INFO] Spring Boot Tools .................................. SUCCESS [  0.213 s]
[INFO] Spring Boot Testing Support ........................ SUCCESS [  4.337 s]
[INFO] Spring Boot Loader ................................. SUCCESS [ 37.918 s]
[INFO] Spring Boot Loader Tools ........................... SUCCESS [  3.592 s]
[INFO] Spring Boot Antlib ................................. SUCCESS [  3.596 s]
[INFO] Spring Boot Auto-Configure Annotation Processor .... SUCCESS [  1.535 s]
[INFO] Spring Boot Configuration Metadata ................. SUCCESS [  1.428 s]
[INFO] Spring Boot Configuration Processor ................ SUCCESS [  4.533 s]
[INFO] Spring Boot Gradle Plugin .......................... SUCCESS [01:50 min]
[INFO] Spring Boot Maven Plugin ........................... SUCCESS [02:17 min]
[INFO] Spring Boot ........................................ FAILURE [01:18 min]
[INFO] Spring Boot Test ................................... SKIPPED
[INFO] Spring Boot AutoConfigure .......................... SKIPPED
[INFO] Spring Boot Test Auto-Configure .................... SKIPPED
[INFO] Spring Boot Actuator ............................... SKIPPED
[INFO] Spring Boot Developer Tools ........................ SKIPPED
[INFO] Spring Boot Docs ................................... SKIPPED
[INFO] Spring Boot Starters ............................... SUCCESS [  0.559 s]
[INFO] Spring Boot Logging Starter ........................ SUCCESS [  0.714 s]
[INFO] Spring Boot Starter ................................ SKIPPED
[INFO] Spring Boot ActiveMQ Starter ....................... SKIPPED
[INFO] Spring Boot AMQP Starter ........................... SKIPPED
[INFO] Spring Boot AOP Starter ............................ SKIPPED
[INFO] Spring Boot Artemis Starter ........................ SKIPPED
[INFO] Spring Boot JDBC Starter ........................... SKIPPED
[INFO] Spring Boot Batch Starter .......................... SKIPPED
[INFO] Spring Boot Cache Starter .......................... SKIPPED
[INFO] Spring Boot Spring Cloud Connectors Starter ........ SKIPPED
[INFO] Spring Boot Data Cassandra Starter ................. SKIPPED
[INFO] Spring Boot Data Cassandra Reactive Starter ........ SKIPPED
[INFO] Spring Boot Data Couchbase Starter ................. SKIPPED
[INFO] Spring Boot Data Elasticsearch Starter ............. SKIPPED
[INFO] Spring Boot Data JPA Starter ....................... SKIPPED
[INFO] Spring Boot Data LDAP Starter ...................... SKIPPED
[INFO] Spring Boot Data MongoDB Starter ................... SKIPPED
[INFO] Spring Boot Data MongoDB Reactive Starter .......... SKIPPED
[INFO] Spring Boot Data Neo4j Starter ..................... SKIPPED
[INFO] Spring Boot Data Redis Starter ..................... SKIPPED
[INFO] Spring Boot Data Redis Reactive Starter ............ SKIPPED
[INFO] Spring Boot Json Starter ........................... SUCCESS [  0.257 s]
[INFO] Spring Boot Tomcat Starter ......................... SUCCESS [  0.181 s]
[INFO] Spring Boot Web Starter ............................ SKIPPED
[INFO] Spring Boot Data REST Starter ...................... SKIPPED
[INFO] Spring Boot Data Solr Starter ...................... SKIPPED
[INFO] Spring Boot FreeMarker Starter ..................... SKIPPED
[INFO] Spring Boot Groovy Templates Starter ............... SKIPPED
[INFO] Spring Boot HATEOAS Starter ........................ SKIPPED
[INFO] Spring Boot Integration Starter .................... SKIPPED
[INFO] Spring Boot Validation Starter ..................... SKIPPED
[INFO] Spring Boot Jersey Starter ......................... SKIPPED
[INFO] Spring Boot Jetty Starter .......................... SUCCESS [  0.478 s]
[INFO] Spring Boot JOOQ Starter ........................... SKIPPED
[INFO] Spring Boot Atomikos JTA Starter ................... SKIPPED
[INFO] Spring Boot Bitronix JTA Starter ................... SKIPPED
[INFO] Spring Boot Narayana JTA Starter ................... SKIPPED
[INFO] Spring Boot Log4j 2 Starter ........................ SUCCESS [  0.188 s]
[INFO] Spring Boot Mail Starter ........................... SKIPPED
[INFO] Spring Boot Mobile Starter ......................... SKIPPED
[INFO] Spring Boot Mustache Starter ....................... SKIPPED
[INFO] Spring Boot Actuator Starter ....................... SKIPPED
[INFO] Spring Boot Starter Parent ......................... SUCCESS [  0.004 s]
[INFO] Spring Boot Quartz Starter ......................... SKIPPED
[INFO] Spring Boot Reactor Netty Starter .................. SUCCESS [  0.336 s]
[INFO] Spring Boot Security Starter ....................... SKIPPED
[INFO] Spring Boot Social Facebook Starter ................ SKIPPED
[INFO] Spring Boot Social Twitter Starter ................. SKIPPED
[INFO] Spring Boot Social LinkedIn Starter ................ SKIPPED
[INFO] Spring Boot Test Starter ........................... SKIPPED
[INFO] Spring Boot Thymeleaf Starter ...................... SKIPPED
[INFO] Spring Boot Undertow Starter ....................... SUCCESS [  0.270 s]
[INFO] Spring Boot WebFlux Starter ........................ SKIPPED
[INFO] Spring Boot WebSocket Starter ...................... SKIPPED
[INFO] Spring Boot Web Services Starter ................... SKIPPED
[INFO] Spring Boot Actuator Docs .......................... SKIPPED
[INFO] Spring Boot CLI .................................... SKIPPED
[INFO] Spring Boot Integration Tests ...................... FAILURE [  0.728 s]
[INFO] Spring Boot DevTools Tests ......................... SKIPPED
[INFO] Spring Boot Embedded Servlet Container Integration Tests SKIPPED
[INFO] Spring Boot Launch Script Integration Tests ........ SKIPPED
[INFO] Spring Boot Security Tests ......................... SKIPPED
[INFO] Spring Boot Security Tests - Web Hello World ....... SKIPPED
[INFO] Spring Boot Build .................................. SUCCESS [  0.060 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 06:36 min
[INFO] Finished at: 2017-07-28T09:53:39+02:00
[INFO] Final Memory: 158M/452M
[INFO] ------------------------------------------------------------------------

It seems there's less information here since spring-boot failure causes a lot of modules to be skipped.

snicoll commented 7 years ago

@vpavic I think I've fixed the Hazlecast one.

vpavic commented 7 years ago

@snicoll I can confirm that spring-boot-autoconfigure module now builds successfully in my environment.

snicoll commented 7 years ago

๐Ÿ‘๐Ÿ‘Œ

snicoll commented 7 years ago

@vpavic can you please run ./mvnw clean install -rf spring-boot-autoconfigure then?

vpavic commented 7 years ago

Here it is, all green:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Spring Boot AutoConfigure .......................... SUCCESS [06:50 min]
[INFO] Spring Boot Test Auto-Configure .................... SUCCESS [ 52.540 s]
[INFO] Spring Boot Actuator ............................... SUCCESS [01:35 min]
[INFO] Spring Boot Developer Tools ........................ SUCCESS [ 34.707 s]
[INFO] Spring Boot Docs ................................... SUCCESS [ 15.076 s]
[INFO] Spring Boot Starters ............................... SUCCESS [  0.921 s]
[INFO] Spring Boot Logging Starter ........................ SUCCESS [  0.551 s]
[INFO] Spring Boot Starter ................................ SUCCESS [  0.705 s]
[INFO] Spring Boot ActiveMQ Starter ....................... SUCCESS [  0.922 s]
[INFO] Spring Boot AMQP Starter ........................... SUCCESS [  0.405 s]
[INFO] Spring Boot AOP Starter ............................ SUCCESS [  0.225 s]
[INFO] Spring Boot Artemis Starter ........................ SUCCESS [  0.606 s]
[INFO] Spring Boot JDBC Starter ........................... SUCCESS [  0.169 s]
[INFO] Spring Boot Batch Starter .......................... SUCCESS [  0.351 s]
[INFO] Spring Boot Cache Starter .......................... SUCCESS [  0.154 s]
[INFO] Spring Boot Spring Cloud Connectors Starter ........ SUCCESS [  0.264 s]
[INFO] Spring Boot Data Cassandra Starter ................. SUCCESS [  0.616 s]
[INFO] Spring Boot Data Cassandra Reactive Starter ........ SUCCESS [  0.243 s]
[INFO] Spring Boot Data Couchbase Starter ................. SUCCESS [  0.470 s]
[INFO] Spring Boot Data Elasticsearch Starter ............. SUCCESS [  1.744 s]
[INFO] Spring Boot Data JPA Starter ....................... SUCCESS [  0.581 s]
[INFO] Spring Boot Data LDAP Starter ...................... SUCCESS [  0.178 s]
[INFO] Spring Boot Data MongoDB Starter ................... SUCCESS [  0.299 s]
[INFO] Spring Boot Data MongoDB Reactive Starter .......... SUCCESS [  0.173 s]
[INFO] Spring Boot Data Neo4j Starter ..................... SUCCESS [  0.327 s]
[INFO] Spring Boot Data Redis Starter ..................... SUCCESS [  0.230 s]
[INFO] Spring Boot Data Redis Reactive Starter ............ SUCCESS [  0.287 s]
[INFO] Spring Boot Json Starter ........................... SUCCESS [  0.157 s]
[INFO] Spring Boot Tomcat Starter ......................... SUCCESS [  0.169 s]
[INFO] Spring Boot Web Starter ............................ SUCCESS [  0.380 s]
[INFO] Spring Boot Data REST Starter ...................... SUCCESS [  0.395 s]
[INFO] Spring Boot Data Solr Starter ...................... SUCCESS [  0.463 s]
[INFO] Spring Boot FreeMarker Starter ..................... SUCCESS [  0.232 s]
[INFO] Spring Boot Groovy Templates Starter ............... SUCCESS [  0.322 s]
[INFO] Spring Boot HATEOAS Starter ........................ SUCCESS [  0.195 s]
[INFO] Spring Boot Integration Starter .................... SUCCESS [  0.158 s]
[INFO] Spring Boot Validation Starter ..................... SUCCESS [  0.123 s]
[INFO] Spring Boot Jersey Starter ......................... SUCCESS [  1.197 s]
[INFO] Spring Boot Jetty Starter .......................... SUCCESS [  0.405 s]
[INFO] Spring Boot JOOQ Starter ........................... SUCCESS [  0.184 s]
[INFO] Spring Boot Atomikos JTA Starter ................... SUCCESS [  0.181 s]
[INFO] Spring Boot Bitronix JTA Starter ................... SUCCESS [  0.176 s]
[INFO] Spring Boot Narayana JTA Starter ................... SUCCESS [  0.246 s]
[INFO] Spring Boot Log4j 2 Starter ........................ SUCCESS [  0.165 s]
[INFO] Spring Boot Mail Starter ........................... SUCCESS [  0.164 s]
[INFO] Spring Boot Mobile Starter ......................... SUCCESS [  0.172 s]
[INFO] Spring Boot Mustache Starter ....................... SUCCESS [  0.110 s]
[INFO] Spring Boot Actuator Starter ....................... SUCCESS [  0.323 s]
[INFO] Spring Boot Starter Parent ......................... SUCCESS [  0.062 s]
[INFO] Spring Boot Quartz Starter ......................... SUCCESS [  0.206 s]
[INFO] Spring Boot Reactor Netty Starter .................. SUCCESS [  0.138 s]
[INFO] Spring Boot Security Starter ....................... SUCCESS [  0.188 s]
[INFO] Spring Boot Social Facebook Starter ................ SUCCESS [  0.180 s]
[INFO] Spring Boot Social Twitter Starter ................. SUCCESS [  0.167 s]
[INFO] Spring Boot Social LinkedIn Starter ................ SUCCESS [  0.167 s]
[INFO] Spring Boot Test Starter ........................... SUCCESS [  0.385 s]
[INFO] Spring Boot Thymeleaf Starter ...................... SUCCESS [  0.181 s]
[INFO] Spring Boot Undertow Starter ....................... SUCCESS [  0.256 s]
[INFO] Spring Boot WebFlux Starter ........................ SUCCESS [  0.309 s]
[INFO] Spring Boot WebSocket Starter ...................... SUCCESS [  0.179 s]
[INFO] Spring Boot Web Services Starter ................... SUCCESS [  0.228 s]
[INFO] Spring Boot CLI .................................... SUCCESS [01:51 min]
[INFO] Spring Boot Integration Tests ...................... SUCCESS [14:05 min]
[INFO] Spring Boot DevTools Tests ......................... SUCCESS [01:29 min]
[INFO] Spring Boot Embedded Servlet Container Integration Tests SUCCESS [05:28 min]
[INFO] Spring Boot Launch Script Integration Tests ........ SUCCESS [  0.320 s]
[INFO] Spring Boot Security Tests ......................... SUCCESS [  0.089 s]
[INFO] Spring Boot Security Tests - Web Hello World ....... SUCCESS [  4.414 s]
[INFO] Spring Boot Build .................................. SUCCESS [  0.059 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 33:28 min
[INFO] Finished at: 2017-08-18T21:29:29+02:00
[INFO] Final Memory: 187M/712M
[INFO] ------------------------------------------------------------------------
philwebb commented 7 years ago

Sweet.

vpavic commented 7 years ago

@philwebb This issue is still not fixed, that was a build run from spring-boot-autoconfigure module.

The spring-boot module build still fails with:

Results :

Failed tests: 
  JettyReactiveWebServerFactoryTests.startStopServer expectation "expectError()" failed (expected: onError(); actual: onNext(org.springframework.web.reactive.function.client.DefaultClientResponse@5f320411))

Tests run: 1915, Failures: 1, Errors: 0, Skipped: 3

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:49 min
[INFO] Finished at: 2017-08-18T22:09:05+02:00
[INFO] Final Memory: 114M/582M
[INFO] ------------------------------------------------------------------------
philwebb commented 7 years ago

No so sweet :)

snicoll commented 7 years ago

Thanks @vpavic at least we can focus on that single test then.

bclozel commented 7 years ago

It might be that calling stop isn't synchronous and shuts down the server gracefully.

I'd actually remove that test since it's 1) obviously testing the wrong behavior 2) another integration test slowing down the build 3) I'm responsible for that one ๐Ÿ˜„ .

vpavic commented 7 years ago

Thanks - I can confirm the master branch now builds successfully on my machine.