Codecov comments twice on PR


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



Additional Information


# Configures notifications, can add Slack
# Seems that doesn't send any notifications currently
    require_ci_to_pass: yes

  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
    project: no # default yes
    patch: no # default yes
    changes: no

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

# Pull request comments
  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
    working_directory: ~/repo
      - image: circleci/node:10.15.1
# 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 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 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.