Skip to content

Codecov Fails to Process dotCover DetailedXML Reports #532

Closed
codecov/worker
#838

Description

@emreyigit

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.

Also,
Last successful report -> https://app.codecov.io/github/hazelcast/hazelcast-csharp-client/commit/ddbedf393f14ad9a636032e001ec75060992b648
Latest failed report -> https://app.codecov.io/github/hazelcast/hazelcast-csharp-client/commit/2d84767ab277388823322239a764311c66829ac1

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.

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀on Oct 8, 2024
  2. added
    bug
    on Oct 10, 2024
  3. added
    Medium
    Coverage
    Area: Report Ingest
    on Oct 10, 2024
  4. drazisil-codecov commented on Oct 30, 2024

    @drazisil-codecov
    Collaborator

    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

  5. emreyigit commented on Nov 6, 2024

    @emreyigit
    Author

    Hi @drazisil-codecov, sorry for the late reply. Yes, there is no codecov.yaml file.

  6. drazisil-codecov commented on Nov 6, 2024

    @drazisil-codecov
    Collaborator

    Hi @emreyigit

    No worries! Can you please confirm it's working again?

  7. 5 remaining items

  8. drazisil-codecov commented on Dec 2, 2024

    @drazisil-codecov
    Collaborator

    https://app.codecov.io/gh/rustymotors/server/commit/455ff41e3a7b7da7923b6a3ce5bf549efdf5dca5

    Not the byte-order mark.


    This is the path fixer parser. 🤦

    fixes:
    - 'D:\a\hazelcast-csharp-client\::'
    - '/home/runner/work/hazelcast-csharp-client/::'
    

    It's thinking that \h is an escaped char. What is the goal of that line? We'll figure out how to make it work.

  9. emreyigit commented on Dec 4, 2024

    @emreyigit
    Author

    I've run the coverage with the "fixes" but result is same 🤕

    Here is the config

    codecov:
      notify:
        wait_for_ci: true
      require_ci_to_pass: true
    comment:
      behavior: default
      layout: reach,diff,flags,tree,reach
      show_carryforward_flags: false
    coverage:
      precision: 2
      range:
      - 60.0
      - 80.0
      round: down
      status:
        changes: false
        default_rules:
          flag_coverage_not_uploaded_behavior: include
        patch: true
        project: true
    fixes:
    - 'D:\a\hazelcast-csharp-client\::'
    - '/home/runner/work/hazelcast-csharp-client/::'
    github_checks:
      annotations: true
    slack_app: true
    
  10. Swatinem commented on Dec 4, 2024

    @Swatinem

    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.

  11. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀on Dec 4, 2024
  12. moved this to Waiting for: Community in GitHub Issues with 👀on Dec 4, 2024
  13. adrian-codecov commented on Dec 9, 2024

    @adrian-codecov

    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?

  14. moved this from Waiting for: Community to Waiting for: Product Owner in GitHub Issues with 👀on Dec 9, 2024
  15. emreyigit commented on Dec 10, 2024

    @emreyigit
    Author

    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 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area: Report IngestCoverageMediumbug

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions