forked from getsentry/sentry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codecov.yml
77 lines (74 loc) · 2.36 KB
/
codecov.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# 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
informational: false # Fail the check
target: 60%
flags:
- frontend
backend:
# codecov will not fail status checks for master
only_pulls: true
informational: false # 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
# FE uploads 4 coverage reports. This property ensures codecov waits
# for all reports to be uploaded before creating a GitHub status check.
after_n_builds: 4
backend:
paths:
- "src/sentry/**/*.py"
carryforward: true
# Do not send any status checks until N coverage reports are uploaded
after_n_builds: 16
# Read more here: https://docs.codecov.com/docs/pull-request-comments
comment:
# after_n_builds declared in flags cannot control when to make comments
# A value of 16 will mean that only BE PRs will get a comment (only if the score changes)
# XXX: Once commenting pays attention to the value in flags we can add comments to FE PRs
after_n_builds: 16
layout: "diff, files"
# Update, if comment exists. Otherwise post new.
behavior: default
# Comments will 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