devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Ensure codevcov is well configured on our projects

Open ssbarnea opened this issue 5 months ago • 0 comments

  • [ ] codecov token is present in testing git environment (usually named 'test') and we activate it for jobs via environment: test.
  • [ ] we use v4 of the uploader with the settings as below:
        uses: codecov/codecov-action@v4
        with:
          name: ${{ matrix.passed_name }}
          token: ${{ secrets.CODECOV_TOKEN }}
          verbose: true
          fail_ci_if_error: true
  • [ ] codecov action result is a required action alongside 'check' one, so we do not merge changes that are not blessed by codecov itself. If app does not report status, you might need to go to https://github.com/apps/codecov/installations/398480 and ensure that repository is activated.

  • [ ] ensure codecov.yml has the content below:

# codecov.yml
comment: false
coverage:
  status:
    patch: true # we want github annotations

If you see require_ci_to_pass: true in file above, remove it as its true behavior does prevent codecov from reporting the status check even when it should.

Progress

SMEs: Please check your project once you have confirmation that codecov action was updated v4 and that codecov is reporting the status correct on new PRs and that codecov/project is a required check (branch protection).

  • [ ] ansible/ansible-compat
  • [ ] ansible/ansible-lint
  • [ ] ansible/ansible-navigator
  • [x] ansible/ansible-creator
  • [ ] ansible/molecule
  • [ ] ansible/tox-ansible
  • [ ] ansible/pytest-ansible
  • [ ] ansible/ansible-development-environment
  • [ ] ansible/ansible-dev-tools
  • [ ] ansible/creator-ee

ssbarnea avatar Feb 05 '24 13:02 ssbarnea