vertx-graphql-service-discovery icon indicating copy to clipboard operation
vertx-graphql-service-discovery copied to clipboard

Troubleshoot TravisCI build randomly failing (local build works)

Open aschrijver opened this issue 9 years ago • 2 comments

TravisCI build fails with NPE in tearDown() of tests:

io.engagingspaces.graphql.servicediscovery.publisher.SchemaPublisherTest > should_Publish_Schema_Definition FAILED

    java.lang.NullPointerException
        at io.engagingspaces.graphql.servicediscovery.publisher.SchemaRegistrar.lambda$handleCloseCompletion$13(SchemaRegistrar.java:201)
        at io.engagingspaces.graphql.servicediscovery.publisher.SchemaRegistrar$$Lambda$78/2097777478.handle(Unknown Source)
        at io.vertx.core.impl.CompositeFutureImpl.setHandler(CompositeFutureImpl.java:152)
        at io.engagingspaces.graphql.servicediscovery.publisher.SchemaRegistrar.handleCloseCompletion(SchemaRegistrar.java:199)
        at io.engagingspaces.graphql.servicediscovery.publisher.SchemaRegistrar.close(SchemaRegistrar.java:172)
        at io.engagingspaces.graphql.servicediscovery.publisher.SchemaPublisher.close(SchemaPublisher.java:175)
        at io.engagingspaces.graphql.servicediscovery.publisher.SchemaPublisherTest.tearDown(SchemaPublisherTest.java:59)

aschrijver avatar Mar 09 '17 12:03 aschrijver

Had to upgrade to latest Gradle 3.5 version (from 2.14) for Travis wrapper to fix the issue.

aschrijver avatar Jun 02 '17 13:06 aschrijver

Successful build was short-lived. After commit https://github.com/engagingspaces/vertx-graphql-service-discovery/commit/2f1be1fcd7b6dfb7caaab63cea66557ee18f332e the remote build fails again with unhelpful message > There were failing tests. See the report at: file:///home/travis/build/engagingspaces/vertx-graphql-service-discovery/graphql-service-publisher/build/reports/tests/test/index.html

It appears to fail randomly. Restarting the build will sometimes yield success, or it fails with above message.

aschrijver avatar Jun 02 '17 14:06 aschrijver