Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TS-675] Failed to upload coverage report when using version 13.13.14 #483

Closed
jagadishrajr opened this issue Nov 24, 2023 · 2 comments
Closed
Labels
jira-issue Issue tracked on JIRA

Comments

@jagadishrajr
Copy link

jagadishrajr commented Nov 24, 2023

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.

  1. Generated test coverage using jest for our javascript project. This generated an lcov.info file.
  2. Used bash <(curl -kLs https://coverage.codacy.com/get.sh) report -r coverage/lcov.info to upload the report to self hosted codacy server.
  3. Environment variable CODACY_REPORTER_VERSION is not set. While executing, we can see logs like Self hosted instance detected, setting codacy coverage reporter version to 13.13.14-->
  4. 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 (...)"

  1. When Environment variable CODACY_REPORTER_VERSION is 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!
  1. When Environment variable CODACY_REPORTER_VERSION is 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.

Copy link

Internal ticket created : TS-675

@github-actions github-actions bot added the jira-issue Issue tracked on JIRA label Nov 24, 2023
@github-actions github-actions bot changed the title Failed to upload coverage report when using version 13.13.14 [TS-675] Failed to upload coverage report when using version 13.13.14 Nov 24, 2023
@mrfyda
Copy link
Contributor

mrfyda commented Feb 13, 2024

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

@mrfyda mrfyda closed this as not planned Won't fix, can't repro, duplicate, stale Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira-issue Issue tracked on JIRA
Projects
None yet
Development

No branches or pull requests

2 participants