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-231] Can't guess the report language #446

Closed
axelrindle opened this issue Feb 9, 2023 · 4 comments · May be fixed by codacy/codacy-plugins-api#70
Closed

[TS-231] Can't guess the report language #446

axelrindle opened this issue Feb 9, 2023 · 4 comments · May be fixed by codacy/codacy-plugins-api#70
Labels
jira-issue Issue tracked on JIRA

Comments

@axelrindle
Copy link

I want to test software written in TypeScript. While the tests succeed, the pipeline still fails due to the following error reported by the Codacy Coverage Reporter:

2023-02-09 17:06:27.193Z  info [ConfigurationRules] API base URL: https://api.codacy.com/  - (ConfigurationRules.scala:81)
2023-02-09 17:06:27.591Z  info [CommitUUIDProvider] CI/CD provider GitHub Actions found Commit UUID 2588ce8890bf6073390ff89cc2eb632995f60de6  - (CommitUUIDProvider.scala:133)
2023-02-09 17:06:27.718Z  info [ReportRules] Parsing coverage data from: /home/runner/work/planningpoker/planningpoker/packages/backend/coverage/lcov.info ...  - (ReportRules.scala:37)
2023-02-09 17:06:27.724Z  info [ReportRules] Coverage parser used is com.codacy.parsers.implementation.LCOVParser$@5f72f710  - (ReportRules.scala:42)
2023-02-09 17:06:27.727Z  info [ReportRules] Generated coverage report: /tmp/codacy-coverage-14916603892701900443.json (12.08 kB)  - (ReportRules.scala:301)
2023-02-09 17:06:27.727Z  info [ReportRules] Uploading coverage data...  - (ReportRules.scala:302)
2023-02-09 17:06:27.727Z  info [ReportRules] 
To complete the reporting process, call coverage-reporter with the final flag.
 Check https://docs.codacy.com/coverage-reporter/#multiple-reports
 for more information.  - (ReportRules.scala:80)
2023-02-09 17:06:27.727Z error [CodacyCoverageReporter] Can't guess the report language  - (CodacyCoverageReporter.scala:25)

See here for the full log.

Here is a sample lcov.info file: https://gist.github.com/axelrindle/2eaa24ccd4dec3416bd7d8ddd6794615

I suspect the cause of this is the reporter not recognising the .mts as a TypeScript file.

@github-actions github-actions bot changed the title Can't guess the report language [TS-231] Can't guess the report language Feb 9, 2023
@github-actions github-actions bot added the jira-issue Issue tracked on JIRA label Feb 9, 2023
@github-actions
Copy link

github-actions bot commented Feb 9, 2023

Internal ticket created : TS-231

@axelrindle
Copy link
Author

Seems to be the same problem as in codacy/codacy-plugins-api#65

@axelrindle
Copy link
Author

Update: the following setting did the trick:

language: typescript

@DMarinhoCodacy
Copy link
Contributor

Hello @axelrindle

Thanks for reporting this.

I'm glad you could handle this situation very well and I saw that the latest coverage reports were sent successfully.

Kind regards,
David Marinho

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

Successfully merging a pull request may close this issue.

2 participants