You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codecov Fails to Process dotCover DetailedXML Reports #532
Area: Report IngestIssues with ingest of reportsCoverageCode CoverageMediumMedium Priority Issues (to be fixed or re-evaluated in 3 monthsbugFor issues and unexpected behaviors
Codecov suddenly stopped to process DetailedXML reports produced by Jetbrains .NET dotCover tool for 2 months. Codecov report page says could be a path issue. Although, I tried suggested fixes from documentation, it turned to unknown error. Hence, I couldn't solve it. I have uploaded the reports both produced in linux and windows. Nothing changed. I believe there is an issue on Codecov. My reasoning is the path fix page updated 2 months ago and reports started to fail at that time. Something should be changed 2 months ago in Codecov.
Environment (please complete the following information):
System Github Codecov Action and CLI
To Reproduce
Steps to reproduce the behavior:
You can reprocess the the latest successful report to reproduce the issue. The report format or tool are same. I have upload the latest successful report and failed.
Expected behavior
Although there is no change is done on user side (either reporting format or tooling), Codecov is not able to process it.
Sorry for the delay here. We are digging into what may have changed. It could very well be the path fixes, but that platform doesn't log change history.
The path fixers are being into regular expressions, and I don’t think any path-normalization happens for windows paths.
Internally when matching the paths, we do normalize windows paths.
That being said, I would recommend two things to try:
Either try using forward-slashes also for the windows paths
Or: Try to escape the backslashes, like so: "D:\\a\\…
I believe the first one should work fine, not quite sure about the second solution there, but it should solve the problem of invalid escapes as the \ is not being treated as escape character anymore if it is itself escaped.
Hi @emreyigit, I tried Arpad's suggestion and replaced the forward-slashes instead of the back-slashes for the window path 'D:/a/hazelcast-csharp-client/::' and the regex error disappeared. Does this fix your issue when uploading?
Hi @adrian-codecov, thank you for verifying it. I haven't tried the solution yet but I'll try it as soon as after completing my main tasks. Since you verified, you can mark the issue as resolved. Thank you both for your help. One last thing, the file path separator was always backward. It's interesting that the parser requires escaping now 🤔
Area: Report IngestIssues with ingest of reportsCoverageCode CoverageMediumMedium Priority Issues (to be fixed or re-evaluated in 3 monthsbugFor issues and unexpected behaviors
Activity
drazisil-codecov commentedon Oct 30, 2024
Hi @emreyigit
Sorry for the delay here. We are digging into what may have changed. It could very well be the path fixes, but that platform doesn't log change history.
--- Notes for mysef
This was the last good commit: https://app.codecov.io/github/hazelcast/hazelcast-csharp-client/commit/bec87a9eedf4014cbd0b4321b5a938ccad7f8445 on 27 August
This was the first bad commit: https://app.codecov.io/github/hazelcast/hazelcast-csharp-client/commit/39121b2176aae74ab5998bb9c5ee2e80dd79df08 on 11 September.
@emreyigit Am I correct in believing you do not have a codecov.yml file? I couldn't find one.
(cc: @Swatinem
emreyigit commentedon Nov 6, 2024
Hi @drazisil-codecov, sorry for the late reply. Yes, there is no codecov.yaml file.
drazisil-codecov commentedon Nov 6, 2024
Hi @emreyigit
No worries! Can you please confirm it's working again?
5 remaining items
drazisil-codecov commentedon Dec 2, 2024
https://app.codecov.io/gh/rustymotors/server/commit/455ff41e3a7b7da7923b6a3ce5bf549efdf5dca5
Not the byte-order mark.
This is the path fixer parser. 🤦
It's thinking that
\his an escaped char. What is the goal of that line? We'll figure out how to make it work.emreyigit commentedon Dec 4, 2024
I've run the coverage with the "fixes" but result is same 🤕
Here is the config
Swatinem commentedon Dec 4, 2024
The path fixers are being into regular expressions, and I don’t think any path-normalization happens for windows paths.
Internally when matching the paths, we do normalize windows paths.
That being said, I would recommend two things to try:
"D:\\a\\…I believe the first one should work fine, not quite sure about the second solution there, but it should solve the problem of invalid escapes as the
\is not being treated as escape character anymore if it is itself escaped.adrian-codecov commentedon Dec 9, 2024
Hi @emreyigit, I tried Arpad's suggestion and replaced the forward-slashes instead of the back-slashes for the window path
'D:/a/hazelcast-csharp-client/::'and the regex error disappeared. Does this fix your issue when uploading?emreyigit commentedon Dec 10, 2024
Hi @adrian-codecov, thank you for verifying it. I haven't tried the solution yet but I'll try it as soon as after completing my main tasks. Since you verified, you can mark the issue as resolved. Thank you both for your help. One last thing, the file path separator was always backward. It's interesting that the parser requires escaping now 🤔