Closed dimas-b closed 3 years ago
Internal ticket created : CY-3680
@dimas-b It seems that bintray is rate limiting the api calls. Anyway, we're going to change the place where we store our binaries very soon because of this. As a temporary workaround you can launch the script setting the version manually:
export CODACY_REPORTER_VERSION=11.9.2
Moreover, make sure you cache the ~/.cache/codacy
directory to avoid re-downloading the binary every time.
You can customise the cache folder by exporting the CODACY_REPORTER_TMP_FOLDER
environment variable.
Thanks @lolgab ! We already made a change to pre-determine the reporter version. We are still hitting the "get latest" API, but at most once per test job (see the referenced Stargate issue and PR if you're interested in the specific change). I hope this is good enough to avoid rate limiting.
We moved our coverage reporter binaries and latest api to our internal bucket, so it should not suffer of this problem anymore. Opened a PR to stargate here: https://github.com/stargate/stargate/pull/708 Closing this issue.
Operating System (Ubuntu 15.10 / MacOS 10.10 / Windows 10)
ubuntu:bionic
inside docker on Google Cloud BuildJDK (Oracle 1.8.0_72, OpenJDK 1.8.x, Azul Zing)
Not relevant the error in in a shell script
Library Dependencies
Not relevant
Expected Behavior
The script from
https://coverage.codacy.com/get.sh
is invoked several times to process local coverage reports, then once more to do the final upload.Actual Behavior
During execution of the
get.sh
script the following error occurs:Consequently the script is not able to figure out the reporter version and fails as:
Please note that there's no reporter version inside the parentheses in the log fragment above.
Previous invocations were able to determine the version.
A more complete log fragment is available in https://github.com/stargate/stargate/issues/652
Reproducible Test Case
Happens regularly during Stargate CI.