Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Troubleshoot TravisCI build randomly failing (local build works) #5

Open
aschrijver opened this issue Mar 9, 2017 · 2 comments
Open

Comments

@aschrijver
Copy link
Contributor

aschrijver commented Mar 9, 2017

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
Copy link
Contributor Author

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

@aschrijver aschrijver reopened this Jun 2, 2017
@aschrijver
Copy link
Contributor Author

aschrijver commented Jun 2, 2017

Successful build was short-lived. After commit 2f1be1f 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 aschrijver changed the title Troubleshoot TravisCI build failing (local build works) Troubleshoot TravisCI build randomly failing (local build works) Jun 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant