engagingspaces / vertx-graphql-service-discovery

Service discovery and querying of GraphQL schema's in Vert.x based microservices
Apache License 2.0
50 stars 8 forks source link

Add codacy code coverage support #1

Open aschrijver opened 8 years ago

aschrijver commented 8 years ago

Need to investigate error that occurs when trying to add codacy code coverage support related to the netty-http-pipelining library that is used:

:graphql-consumer:uploadCoverageToCodacy
2016-07-22 12:16:45,767 [info]  com.codacy Parsing coverage data... 
2016-07-22 12:16:46,072 [info]  com.codacy Uploading coverage data... 
Exception in thread "main" java.lang.NoSuchMethodError: org.jboss.netty.handler.codec.http.HttpRequest.setHeader(Ljava/lang/String;Ljava/lang/Object;)V
        at com.ning.http.client.providers.netty.NettyAsyncHttpProvider.construct(NettyAsyncHttpProvider.java:704)
        at com.ning.http.client.providers.netty.NettyAsyncHttpProvider.buildRequest(NettyAsyncHttpProvider.java:657)
        at com.ning.http.client.providers.netty.NettyConnectListener$Builder.build(NettyConnectListener.java:145)
        at com.ning.http.client.providers.netty.NettyAsyncHttpProvider.doConnect(NettyAsyncHttpProvider.java:1071)
        at com.ning.http.client.providers.netty.NettyAsyncHttpProvider.execute(NettyAsyncHttpProvider.java:940)
        at com.ning.http.client.AsyncHttpClient.executeRequest(AsyncHttpClient.java:499)
        at play.api.libs.ws.ning.NingWSClient.executeRequest(NingWS.scala:42)
        at play.api.libs.ws.ning.NingWSRequest.execute(NingWS.scala:246)
        at play.api.libs.ws.ning.NingWSRequestHolder.execute(NingWS.scala:405)
        at play.api.libs.ws.WSRequestHolder$class.post(WS.scala:532)
        at play.api.libs.ws.ning.NingWSRequestHolder.post(NingWS.scala:361)
        at com.codacy.api.client.CodacyClient$$anonfun$post$1.apply(CodacyClient.scala:59)
        at com.codacy.api.client.CodacyClient$$anonfun$post$1.apply(CodacyClient.scala:53)
        at com.codacy.api.client.CodacyClient.withWSClient(CodacyClient.scala:108)
        at com.codacy.api.client.CodacyClient.post(CodacyClient.scala:53)
        at com.codacy.api.service.CoverageServices.sendReport(CoverageServices.scala:14)
        at com.codacy.CodacyCoverageReporter$$anonfun$coverageWithTokenAndCommit$1$$anonfun$apply$1$$anonfun$apply$2.apply(CodacyCoverageReporter.scala:111)
        at com.codacy.CodacyCoverageReporter$$anonfun$coverageWithTokenAndCommit$1$$anonfun$apply$1$$anonfun$apply$2.apply(CodacyCoverageReporter.scala:98)
        at com.codacy.CodacyCoverageReporter$.com$codacy$CodacyCoverageReporter$$transform(CodacyCoverageReporter.scala:138)
        at com.codacy.CodacyCoverageReporter$$anonfun$coverageWithTokenAndCommit$1$$anonfun$apply$1.apply(CodacyCoverageReporter.scala:97)
        at com.codacy.CodacyCoverageReporter$$anonfun$coverageWithTokenAndCommit$1$$anonfun$apply$1.apply(CodacyCoverageReporter.scala:97)
        at com.codacy.parsers.CoverageParserFactory$$anonfun$withCoverageReport$1.apply(CoverageParser.scala:36)
        at com.codacy.parsers.CoverageParserFactory$$anonfun$withCoverageReport$1.apply(CoverageParser.scala:34)
        at scala.Option.map(Option.scala:146)
        at com.codacy.parsers.CoverageParserFactory$.withCoverageReport(CoverageParser.scala:33)
        at com.codacy.CodacyCoverageReporter$$anonfun$coverageWithTokenAndCommit$1.apply(CodacyCoverageReporter.scala:97)
        at com.codacy.CodacyCoverageReporter$$anonfun$coverageWithTokenAndCommit$1.apply(CodacyCoverageReporter.scala:89)
        at com.codacy.api.helpers.FileHelper$$anonfun$withTokenAndCommit$1$$anonfun$apply$2.apply(FileHelper.scala:19)
        at com.codacy.api.helpers.FileHelper$$anonfun$withTokenAndCommit$1$$anonfun$apply$2.apply(FileHelper.scala:17)
        at scala.Option.map(Option.scala:146)
        at com.codacy.api.helpers.FileHelper$$anonfun$withTokenAndCommit$1.apply(FileHelper.scala:17)
        at com.codacy.api.helpers.FileHelper$$anonfun$withTokenAndCommit$1.apply(FileHelper.scala:16)
        at com.codacy.api.helpers.FileHelper$$anonfun$withCommit$2.apply(FileHelper.scala:32)
        at com.codacy.api.helpers.FileHelper$$anonfun$withCommit$2.apply(FileHelper.scala:31)
        at scala.Option.map(Option.scala:146)
        at com.codacy.api.helpers.FileHelper$.withCommit(FileHelper.scala:31)
        at com.codacy.api.helpers.FileHelper$.withTokenAndCommit(FileHelper.scala:16)
        at com.codacy.CodacyCoverageReporter$.coverageWithTokenAndCommit(CodacyCoverageReporter.scala:89)
        at com.codacy.CodacyCoverageReporter$.codacyCoverage(CodacyCoverageReporter.scala:122)
        at com.codacy.CodacyCoverageReporter$.main(CodacyCoverageReporter.scala:55)
        at com.codacy.CodacyCoverageReporter.main(CodacyCoverageReporter.scala)
> Building 67% > :graphql-consumer:uploadCoverageToCodacy

After this error the build hangs.

See the code in branch https://github.com/engagingspaces/vertx-graphql-service-discovery/tree/issue-1/codacy-code-coverage