codecov: notify: # The minimum amount of codecov reporting checks that need to complete # For FE we have 5 checks and for BE we have 11 # TODO: Remove this when we have support of after_n_builds per flag after_n_builds: 5 # Setting coverage targets per flag coverage: status: project: default: false patch: default: false frontend: # codecov will not fail status checks for master only_pulls: true # This will be needed until codecov supports after_n_builds for flags informational: true # Do not fail the check target: 60% flags: - frontend backend: # codecov will not fail status checks for master only_pulls: true # This will be needed until codecov supports after_n_builds for flags informational: true # Do not fail the check target: 90% flags: - backend ignore: - src/*/migrations/ - src/bitfield/ - src/sentry/debug/ - src/sentry/lint/ - src/sentry/runner/ - src/social_auth/ - static/app/routes.tsx - tests/ component_management: individual_components: # Profiling team components - component_id: "profiling_views" name: "Profiling Views" paths: - "static/app/views/profiling/**" - component_id: "profiling_components" name: "Profiling Components" paths: - "src/sentry/static/sentry/app/components/profiling/**" - component_id: "profiling_utils" name: "Profiling Utils" paths: - "src/sentry/static/sentry/app/utils/profiling/**" flags: frontend: paths: - "static/app/" carryforward: true backend: paths: - "src/sentry/**/*.py" carryforward: true # This will add a comment to PRs # This is useful until the diff target check does not trigger early # Read more here: https://docs.codecov.com/docs/pull-request-comments#layout comment: layout: "diff, files" behavior: default # Update, if comment exists. Otherwise post new. # Comments will now only post when coverage changes. Furthermore, if a comment # already exists, and a newer commit results in no coverage change for the # entire pull, the comment will be deleted. require_changes: true require_base: yes # must have a base report to post require_head: yes # must have a head report to post