Skip to content

Commit c890815

Browse files
committed
ci: codecov
Problem: - We have a bot that attempts to remind contributors about adding tests, but it gets ignored. Solution: - Reintroduce the codecov "patch" check. - Update/fix some other details in the codecov config.
1 parent d74f96c commit c890815

File tree

1 file changed

+54
-28
lines changed

1 file changed

+54
-28
lines changed

codecov.yml

Lines changed: 54 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,73 +5,97 @@ codecov:
55
notify:
66
require_ci_to_pass: no
77

8+
ignore:
9+
- 'node_modules/'
10+
- 'plugins/'
11+
- 'scripts/'
12+
- 'src.gen/'
13+
814
coverage:
915
precision: 2
1016
round: down
1117
range: '70...100'
1218

1319
status:
1420
project:
15-
# https://docs.codecov.com/docs/commit-status
16-
all:
17-
target: 80%
18-
threshold: 5%
21+
default:
22+
# Note: `default` measures the entire project.
23+
# It does NOT define defaults "inherited" by other `project` items.
24+
# https://docs.codecov.com/docs/commit-status
25+
target: 80
26+
threshold: 5
1927
informational: true
2028
only_pulls: true
2129
codewhisperer:
2230
paths:
23-
- packages/core/src/codewhisperer/*
31+
- 'packages/core/src/codewhisperer/'
32+
- 'packages/core/src/amazonq*/*'
33+
- 'packages/amazonq/src/'
2434
flags:
2535
- 'codewhisperer'
26-
target: 80%
27-
threshold: 5%
36+
target: 80
37+
threshold: 5
2838
informational: true
2939
only_pulls: true
3040
amazonqFeatureDev:
3141
paths:
32-
- packages/core/src/amazonqFeatureDev/*
42+
- 'packages/core/src/amazonqFeatureDev/*'
3343
flags:
3444
- 'amazonqFeatureDev'
35-
target: 80%
36-
threshold: 5%
45+
target: 80
46+
threshold: 5
3747
informational: true
3848
only_pulls: true
3949
amazonqGumby:
4050
paths:
41-
- packages/core/src/amazonqGumby/*
42-
target: 80%
43-
threshold: 5%
51+
- 'packages/core/src/amazonqGumby/*'
52+
target: 80
53+
threshold: 5
4454
informational: true
4555
only_pulls: true
4656
codewhispererChat:
4757
paths:
48-
- packages/core/src/codewhispererChat/*
49-
target: 80%
50-
threshold: 5%
58+
- 'packages/core/src/codewhispererChat/*'
59+
target: 80
60+
threshold: 5
5161
informational: true
5262
only_pulls: true
5363
applicationcomposer:
5464
paths:
55-
- packages/core/src/applicationcomposer/*
56-
target: 80%
57-
threshold: 5%
65+
- 'packages/core/src/applicationcomposer/*'
66+
target: 80
67+
threshold: 5
5868
informational: true
5969
only_pulls: true
6070
stepFunctions:
6171
paths:
62-
- packages/core/src/stepFunctions/*
63-
target: 50%
64-
threshold: 10%
72+
- 'packages/core/src/stepFunctions/*'
73+
target: 50
74+
threshold: 10
6575
informational: true
6676
only_pulls: true
6777
threatComposer:
6878
paths:
69-
- packages/core/src/threatComposer/*
70-
target: 80%
71-
threshold: 5%
79+
- 'packages/core/src/threatComposer/*'
80+
target: 80
81+
threshold: 5
7282
informational: true
7383
only_pulls: true
74-
patch: false
84+
tests:
85+
# Most code in test/ should always be "covered"!
86+
target: 95
87+
paths: '**/test/**'
88+
patch:
89+
default:
90+
# Note: `default` measures the entire project.
91+
# It does NOT define defaults "inherited" by other `project` items.
92+
# https://docs.codecov.com/docs/commit-status
93+
target: 90
94+
threshold: 5
95+
only_pulls: true
96+
informational: false # Fail if PR changes are not covered.
97+
# branches:
98+
# - master
7599
changes: false
76100

77101
comment: false
@@ -82,7 +106,9 @@ github_checks:
82106
flags:
83107
codewhisperer:
84108
paths:
85-
- packages/core/src/codewhisperer/
109+
- 'packages/core/src/codewhisperer/'
110+
- 'packages/core/src/amazonq*/*'
111+
- 'packages/amazonq/src/'
86112
amazonqFeatureDev:
87113
paths:
88-
- packages/core/src/amazonqFeatureDev/
114+
- 'packages/core/src/amazonqFeatureDev/'

0 commit comments

Comments
 (0)