These are chat archives for paypal/squbs

26th
Dec 2017
Jimin Hsieh
@jiminhsieh
Dec 26 2017 17:41

I have a question about this line. Is it fine to put token in the repository? I also found the document in the codacy, they don't suggest this way.

You should keep your API token well protected, as it grants owner permissions to your projects. If you use CircleCI or Travis CI, you should use your token as an environment variable. (Don't put your keys in your configuration files, check your service settings on how to set environment variables)

I'm curious is it has any reason for that?

Anil Gursel
@anilgursel
Dec 26 2017 18:10
Thanks for pointing that out! I believe that is the encrypted value. @akara has the permission to the Travis CI and he set it up. @akara can you please confirm that ?I believe the secure section should already have the information, do we still need the CODACY_PROJECT_TOKEN ?
Anil Gursel
@anilgursel
Dec 26 2017 18:25
@akara any idea about why uploading coverage data to Codacy would fail? https://travis-ci.org/paypal/squbs/builds/321856562?utm_source=github_status&utm_medium=notification
what’s the channel we reach out to for codacy issues ?
[info] Set current project to squbs (in build file:/home/travis/build/paypal/squbs/)
[info] Uploading coverage data...
[error] java.lang.RuntimeException: Failed to upload data. Reason: not found
[error]     at scala.sys.package$.error(package.scala:27)
[error]     at com.codacy.CodacyCoveragePlugin$.$anonfun$codacyCoverageCommand$8(CodacyCoveragePlugin.scala:81)
[error]     at com.codacy.api.helpers.FileHelper$.$anonfun$withTokenAndCommit$3(FileHelper.scala:21)
[error]     at scala.Option.map(Option.scala:146)
[error]     at com.codacy.api.helpers.FileHelper$.$anonfun$withTokenAndCommit$1(FileHelper.scala:19)
[error]     at com.codacy.api.helpers.FileHelper$.$anonfun$withCommit$2(FileHelper.scala:34)
[error]     at scala.Option.map(Option.scala:146)
[error]     at com.codacy.api.helpers.FileHelper$.withCommit(FileHelper.scala:33)
[error]     at com.codacy.api.helpers.FileHelper$.withTokenAndCommit(FileHelper.scala:18)
[error]     at com.codacy.CodacyCoveragePlugin$.com$codacy$CodacyCoveragePlugin$$codacyCoverageCommand(CodacyCoveragePlugin.scala:66)
[error]     at com.codacy.CodacyCoveragePlugin$AutoImport$.$anonfun$baseSettings$1(CodacyCoveragePlugin.scala:34)
[error]     at com.codacy.CodacyCoveragePlugin$AutoImport$.$anonfun$baseSettings$1$adapted(CodacyCoveragePlugin.scala:31)
[error]     at scala.Function1.$anonfun$compose$1(Function1.scala:44)
[error]     at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:42)
[error]     at sbt.std.Transform$$anon$4.work(System.scala:64)
[error]     at sbt.Execute.$anonfun$submit$2(Execute.scala:257)
[error]     at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
[error]     at sbt.Execute.work(Execute.scala:266)
[error]     at sbt.Execute.$anonfun$submit$1(Execute.scala:257)
[error]     at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:167)
[error]     at sbt.CompletionService$$anon$2.call(CompletionService.scala:32)
[error]     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error]     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error]     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error]     at java.lang.Thread.run(Thread.java:748)
[error] (squbs/*:codacyCoverage) Failed to upload data. Reason: not found
[error] Total time: 5 s, completed Dec 26, 2017 5:43:07 PM
restoring stty: 500:5:bf:8a3b:3:1c:7f:15:4:0:1:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0
The command "sbt codacyCoverage" exited with 1.
Anil Gursel
@anilgursel
Dec 26 2017 18:32
@crankydillo-bot yeah, that one is odd. That is even more interesting though, is the problem disappeared afterwards :)