codacy-coverage-reporter
codacy-coverage-reporter copied to clipboard
[TS-675] Failed to upload coverage report when using version 13.13.14
Are you looking for help?
This is an issue tracker, used to manage and track the development of this Codacy project.
It is not a platform support system. If think your problem is related with our platform at https://www.codacy.com/, please contact us through our contact form or our internal chat application, visible after you login on the bottom right corner.
Keep in mind that this issue tracker is for specific problems of this project.
Scala Version (2.10.x / etc)
Operating System (Ubuntu 15.10 / MacOS 10.10 / Windows 10)
MacOS 14.1.1
JDK (Oracle 1.8.0_72, OpenJDK 1.8.x, Azul Zing)
openjdk version "21.0.1" 2023-10-17 OpenJDK Runtime Environment Homebrew (build 21.0.1) OpenJDK 64-Bit Server VM Homebrew (build 21.0.1, mixed mode, sharing)
Library Dependencies
No dependencies. Connecting to self hosted codacy instance.
Expected Behavior
Please describe the expected behavior of the issue, starting from the first action.
- Generated test coverage using jest for our javascript project. This generated an lcov.info file.
- Used
bash <(curl -kLs https://coverage.codacy.com/get.sh) report -r coverage/lcov.infoto upload the report to self hosted codacy server. - Environment variable
CODACY_REPORTER_VERSIONis not set. While executing, we can see logs likeSelf hosted instance detected, setting codacy coverage reporter version to 13.13.14--> - We expect the script to succeed and reports published to codacy
Actual Behavior
Please provide a description of what actually happens, working from the same starting point.
Be descriptive: "it doesn't work" does not describe what the behavior actually is -- instead, say "when sending the coverage with the command (...) it returns the output error (...)"
- When Environment variable
CODACY_REPORTER_VERSIONis not set, we see an error like below.
error [CodacyCoverageReporter] Failed to upload coverage report coverage/lcov.info: Error doing a post to https://codacy.xxx.xxx/2.0/coverage/9127d717ba3a14e908d67ae0e469c11a55f17034/javascript: exhausted retries due to API Error: Failed to create coverage: Failed to parse Json to CoverageReport for project 156 (javascript) and commit: 9127d717ba3a14e908d67ae0e469c11a55f17034 : List((/fileReports(47)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(15)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(49)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(1)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(18)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(71)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(45)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(5)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(28)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(27)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(53)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(51)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(67)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(11)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(0)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(14)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(3)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(29)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(23)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(33)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(19)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(59)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(40)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(26)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(16)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(68)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(6)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(38)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(69)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(25)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(54)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(20)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(24)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(35)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(56)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(31)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(43)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(62)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(70)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(12)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(4)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(22)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(57)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(55)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(52)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(21)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(9)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(7)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(72)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(44)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(41)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(61)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(30)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(60)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(32)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(2)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(64)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(39)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(48)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(10)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(34)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(37)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(36)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(17)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(8)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(66)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(42)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(13)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(63)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(50)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(58)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(46)/total,List(JsonValidationError(List(error.path.missing),WrappedArray()))), (/fileReports(65)/total,List(JsonValidationError(List(error.path.missing),WrappedArray())))) - (CodacyCoverageReporter.scala:25)
--> Failed!
- When Environment variable
CODACY_REPORTER_VERSIONis set to 13.13.13 or lover, the above script succeeds.
Reproducible Test Case
Please provide a some information on how to reproduce the bug. A PR with a failing test would be awesome, if possible.
If the issue is more complex or requires configuration, please provide a link to a project on Github/Codacy that reproduces the issue.
Internal ticket created : TS-675
hi @jagadishrajr
can confirm which Codacy Self-hosted version you have installed?
codacy-coverage-reporter 13.13.14 is only compatible with Codacy Self-hosted v13.x: https://docs.codacy.com/release-notes/self-hosted/self-hosted-v13.0.0/#upgrading-codacy-self-hosted