Codecov comments twice on PR

Description

Creating a new PR with only one commit generates two comments from Codecov.

Repository

(private)

Additional Information

.codecov.yml:

# Configures notifications, can add Slack
# Seems that doesn't send any notifications currently
# https://docs.codecov.io/docs/notifications
codecov:
  notify:
    require_ci_to_pass: yes

# https://docs.codecov.io/docs/coverage-configuration
coverage:
  precision: 2
  round: down
  # range controls the color (up to 70 will be red, 100 - green)
  range: "70...100"

  # Adds status messages to github
  # Diabling until we agree on the approach
  status:
    project: no # default yes
    patch: no # default yes
    changes: no

parsers:
  # No clue what this is alluding to
  gcov:
    branch_detection:
      conditional: yes
      loop: yes
      method: no
      macro: no

# Pull request comments
# https://docs.codecov.io/docs/pull-request-comments
comment:
  layout: "header, diff"
  behavior: default
  require_changes: no

Can anyone give any clues why this duplication or double comments might be happening?

Thanks for ticket! Sorry for issue. Investigating our logs now.

Ok @kristonitas I tried resetting your bot connection to Codecov. Can you give this another shot?

Thanks for replying and apologies for a late response. I will be able to reply more quickly next work week.

Unfortunately I still get the same result opening a new PR:

I will try to give a few more details, that might help with seeing what is causing this.

The reports are generated on CircleCI. A simplified .circleci/config.yml:

version: 2
jobs:
  codecov:
    working_directory: ~/repo
    docker:
      - image: circleci/node:10.15.1
    steps:
# Repo initialisation and project specific stuff
# ...

      # run tests
      - run: npm run test:coverage # "jest --bail --coverage --maxWorkers=2"

      # upload coverage
      - run: npm run coverage:upload # "codecov -f coverage/coverage-final.json"

I am pretty sure there is only a single upload of the coverage.

codecov version: 3.5.0

I also first set up the codecov.io integration by adding a project to the site, making sure that coverage upload works and only then enabling Codecov through GitHub integrations. Other repositories that are using Codecov do not have this bug, but they were set up by other people.

One last thing:
Deleting report data and starting a fresh codecov.io page for this repository is an option, since it was just added.

Seems like this got resolved. Latest PR got only one comment from codecov. :star_struck:

P. S. I really like this markdown editor, is it by any chance some open source library?

Awesome @kristonitas, we made some changes on our backend that likely fixed your issue. The community site is built on top of Discourse, so I’m not sure if it is OSS

@kristonitas we pushed out a more holistic fix here, as well. In case that helps. Let us know if the issue remains solved.