These are chat archives for paypal/squbs

Dec 2017
Jimin Hsieh
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
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
Dec 26 2017 18:25
@akara any idea about why uploading coverage data to Codacy would fail?
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
[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
[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$
[error]     at sbt.Execute.$anonfun$submit$2(Execute.scala:257)
[error]     at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:16)
[error]     at
[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$
[error]     at
[error]     at java.util.concurrent.Executors$
[error]     at
[error]     at java.util.concurrent.ThreadPoolExecutor.runWorker(
[error]     at java.util.concurrent.ThreadPoolExecutor$
[error]     at
[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
Dec 26 2017 18:32
@crankydillo-bot yeah, that one is odd. That is even more interesting though, is the problem disappeared afterwards :)