Skip to content

Commit ddca5a1

Browse files
committed
chore: add codecov action with dry_run
1 parent 939bec9 commit ddca5a1

File tree

5 files changed

+289
-27
lines changed

5 files changed

+289
-27
lines changed

.github/workflows/pr-test.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,13 @@ jobs:
234234
- name: Check coverage
235235
run: find . | grep coverage-final
236236

237-
# - name: Report Coverage
238-
# uses: codecov/codecov-action@v5
239-
# env:
240-
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
241-
# with:
242-
# verbose: true
237+
- name: Report Coverage
238+
uses: codecov/codecov-action@v5
239+
env:
240+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
241+
with:
242+
verbose: true
243+
dry_run: true
243244

244245
# browser-test:
245246
# needs: build-and-cache

codecov.yml

Lines changed: 274 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,278 @@
11
codecov:
22
notify:
3-
require_ci_to_pass: no
3+
after_n_builds: 1
4+
require_ci_to_pass: no
45
comment:
5-
layout: "header, changes, diff, files"
6+
layout: 'header, changes, diff, files'
67
behavior: default
7-
coverage:
8-
status:
9-
patch:
10-
default:
11-
target: 80%
12-
project:
13-
default:
14-
target: auto
15-
threshold: 1%
8+
# We set the flags manually to have better control of it
9+
# ref: https://docs.codecov.com/docs/flags#advanced-bespoke-flag-management
10+
flags:
11+
winston-transport:
12+
paths:
13+
- packages/winston-transport/
14+
carryforward: true
15+
contrib-test-utils:
16+
paths:
17+
- packages/opentelemetry-test-utils/
18+
carryforward: true
19+
sql-common:
20+
paths:
21+
- packages/opentelemetry-sql-common/
22+
carryforward: true
23+
redis-common:
24+
paths:
25+
- packages/opentelemetry-redis-common/
26+
carryforward: true
27+
propagation-utils:
28+
paths:
29+
- packages/opentelemetry-propagation-utils/
30+
carryforward: true
31+
id-generator-aws-xray:
32+
paths:
33+
- packages/opentelemetry-id-generator-aws-xray/
34+
carryforward: true
35+
host-metrics:
36+
paths:
37+
- packages/opentelemetry-host-metrics/
38+
carryforward: true
39+
baggage-span-processor:
40+
paths:
41+
- packages/baggage-span-processor/
42+
carryforward: true
43+
baggage-log-record-processor:
44+
paths:
45+
- packages/baggage-log-record-processor/
46+
carryforward: true
47+
instrumentation-winston:
48+
paths:
49+
- plugins/node/opentelemetry-instrumentation-winston/
50+
carryforward: true
51+
instrumentation-router:
52+
paths:
53+
- plugins/node/opentelemetry-instrumentation-router/
54+
carryforward: true
55+
instrumentation-restify:
56+
paths:
57+
- plugins/node/opentelemetry-instrumentation-restify/
58+
carryforward: true
59+
instrumentation-redis-4:
60+
paths:
61+
- plugins/node/opentelemetry-instrumentation-redis-4/
62+
carryforward: true
63+
instrumentation-redis:
64+
paths:
65+
- plugins/node/opentelemetry-instrumentation-redis/
66+
carryforward: true
67+
instrumentation-pino:
68+
paths:
69+
- plugins/node/opentelemetry-instrumentation-pino/
70+
carryforward: true
71+
instrumentation-pg:
72+
paths:
73+
- plugins/node/opentelemetry-instrumentation-pg/
74+
carryforward: true
75+
instrumentation-oracledb:
76+
paths:
77+
- plugins/node/opentelemetry-instrumentation-oracledb/
78+
carryforward: true
79+
instrumentation-net:
80+
paths:
81+
- plugins/node/opentelemetry-instrumentation-net/
82+
carryforward: true
83+
instrumentation-nestjs-core:
84+
paths:
85+
- plugins/node/opentelemetry-instrumentation-nestjs-core/
86+
carryforward: true
87+
instrumentation-mysql2:
88+
paths:
89+
- plugins/node/opentelemetry-instrumentation-mysql2/
90+
carryforward: true
91+
instrumentation-mysql:
92+
paths:
93+
- plugins/node/opentelemetry-instrumentation-mysql/
94+
carryforward: true
95+
instrumentation-mongodb:
96+
paths:
97+
- plugins/node/opentelemetry-instrumentation-mongodb/
98+
carryforward: true
99+
instrumentation-memcached:
100+
paths:
101+
- plugins/node/opentelemetry-instrumentation-memcached/
102+
carryforward: true
103+
instrumentation-koa:
104+
paths:
105+
- plugins/node/opentelemetry-instrumentation-koa/
106+
carryforward: true
107+
instrumentation-knex:
108+
paths:
109+
- plugins/node/opentelemetry-instrumentation-knex/
110+
carryforward: true
111+
instrumentation-ioredis:
112+
paths:
113+
- plugins/node/opentelemetry-instrumentation-ioredis/
114+
carryforward: true
115+
instrumentation-hapi:
116+
paths:
117+
- plugins/node/opentelemetry-instrumentation-hapi/
118+
carryforward: true
119+
instrumentation-graphql:
120+
paths:
121+
- plugins/node/opentelemetry-instrumentation-graphql/
122+
carryforward: true
123+
instrumentation-generic-pool:
124+
paths:
125+
- plugins/node/opentelemetry-instrumentation-generic-pool/
126+
carryforward: true
127+
instrumentation-fastify:
128+
paths:
129+
- plugins/node/opentelemetry-instrumentation-fastify/
130+
carryforward: true
131+
instrumentation-express:
132+
paths:
133+
- plugins/node/opentelemetry-instrumentation-express/
134+
carryforward: true
135+
instrumentation-dns:
136+
paths:
137+
- plugins/node/opentelemetry-instrumentation-dns/
138+
carryforward: true
139+
instrumentation-connect:
140+
paths:
141+
- plugins/node/opentelemetry-instrumentation-connect/
142+
carryforward: true
143+
instrumentation-cassandra-driver:
144+
paths:
145+
- plugins/node/opentelemetry-instrumentation-cassandra/
146+
carryforward: true
147+
instrumentation-bunyan:
148+
paths:
149+
- plugins/node/opentelemetry-instrumentation-bunyan/
150+
carryforward: true
151+
instrumentation-aws-sdk:
152+
paths:
153+
- plugins/node/opentelemetry-instrumentation-aws-sdk/
154+
carryforward: true
155+
instrumentation-aws-lambda:
156+
paths:
157+
- plugins/node/opentelemetry-instrumentation-aws-lambda/
158+
carryforward: true
159+
instrumentation-undici:
160+
paths:
161+
- plugins/node/instrumentation-undici/
162+
carryforward: true
163+
instrumentation-typeorm:
164+
paths:
165+
- plugins/node/instrumentation-typeorm/
166+
carryforward: true
167+
instrumentation-tedious:
168+
paths:
169+
- plugins/node/instrumentation-tedious/
170+
carryforward: true
171+
instrumentation-socket.io:
172+
paths:
173+
- plugins/node/instrumentation-socket.io/
174+
carryforward: true
175+
instrumentation-runtime-node:
176+
paths:
177+
- plugins/node/instrumentation-runtime-node/
178+
carryforward: true
179+
instrumentation-mongoose:
180+
paths:
181+
- plugins/node/instrumentation-mongoose/
182+
carryforward: true
183+
instrumentation-lru-memoizer:
184+
paths:
185+
- plugins/node/instrumentation-lru-memoizer/
186+
carryforward: true
187+
instrumentation-kafkajs:
188+
paths:
189+
- plugins/node/instrumentation-kafkajs/
190+
carryforward: true
191+
instrumentation-fs:
192+
paths:
193+
- plugins/node/instrumentation-fs/
194+
carryforward: true
195+
instrumentation-dataloader:
196+
paths:
197+
- plugins/node/instrumentation-dataloader/
198+
carryforward: true
199+
instrumentation-cucumber:
200+
paths:
201+
- plugins/node/instrumentation-cucumber/
202+
carryforward: true
203+
instrumentation-amqplib:
204+
paths:
205+
- plugins/node/instrumentation-amqplib/
206+
carryforward: true
207+
plugin-react-load:
208+
paths:
209+
- plugins/web/opentelemetry-plugin-react-load/
210+
carryforward: true
211+
instrumentation-user-interaction:
212+
paths:
213+
- plugins/web/opentelemetry-instrumentation-user-interaction/
214+
carryforward: true
215+
instrumentation-long-task:
216+
paths:
217+
- plugins/web/opentelemetry-instrumentation-long-task/
218+
carryforward: true
219+
instrumentation-document-load:
220+
paths:
221+
- plugins/web/opentelemetry-instrumentation-document-load/
222+
carryforward: true
223+
propagator-aws-xray-lambda:
224+
paths:
225+
- propagators/propagator-aws-xray-lambda/
226+
carryforward: true
227+
propagator-aws-xray:
228+
paths:
229+
- propagators/propagator-aws-xray/
230+
carryforward: true
231+
propagator-ot-trace:
232+
paths:
233+
- propagators/opentelemetry-propagator-ot-trace/
234+
carryforward: true
235+
propagator-instana:
236+
paths:
237+
- propagators/opentelemetry-propagator-instana/
238+
carryforward: true
239+
resource-detector-instana:
240+
paths:
241+
- detectors/node/opentelemetry-resource-detector-instana/
242+
carryforward: true
243+
resource-detector-github:
244+
paths:
245+
- detectors/node/opentelemetry-resource-detector-github/
246+
carryforward: true
247+
resource-detector-gcp:
248+
paths:
249+
- detectors/node/opentelemetry-resource-detector-gcp/
250+
carryforward: true
251+
resource-detector-container:
252+
paths:
253+
- detectors/node/opentelemetry-resource-detector-container/
254+
carryforward: true
255+
resource-detector-azure:
256+
paths:
257+
- detectors/node/opentelemetry-resource-detector-azure/
258+
carryforward: true
259+
resource-detector-aws:
260+
paths:
261+
- detectors/node/opentelemetry-resource-detector-aws/
262+
carryforward: true
263+
resource-detector-alibaba-cloud:
264+
paths:
265+
- detectors/node/opentelemetry-resource-detector-alibaba-cloud/
266+
carryforward: true
267+
auto-instrumentations-web:
268+
paths:
269+
- metapackages/auto-instrumentations-web/
270+
carryforward: true
271+
auto-instrumentations-node:
272+
paths:
273+
- metapackages/auto-instrumentations-node/
274+
carryforward: true
275+
auto-configuration-propagators:
276+
paths:
277+
- metapackages/auto-configuration-propagators/
278+
carryforward: true

plugins/node/opentelemetry-instrumentation-aws-sdk/.tav.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
exclude: ">=3.363.0 <=3.377.0"
1313
mode: "max-7"
1414
commands:
15-
- nyc --no-clean mocha --require '@opentelemetry/contrib-test-utils' test/bedrock-runtime.test.ts
15+
- mocha --require '@opentelemetry/contrib-test-utils' test/bedrock-runtime.test.ts
1616

1717
"@aws-sdk/client-s3":
1818
env:
@@ -25,8 +25,8 @@
2525
exclude: "3.529.0 || >=3.363.0 <=3.377.0"
2626
mode: "max-7"
2727
commands:
28-
- nyc --no-clean mocha --require '@opentelemetry/contrib-test-utils' test/aws-sdk-v3-s3.test.ts
29-
- nyc --no-clean mocha --require '@opentelemetry/contrib-test-utils' test/s3.test.ts
28+
- mocha --require '@opentelemetry/contrib-test-utils' test/aws-sdk-v3-s3.test.ts
29+
- mocha --require '@opentelemetry/contrib-test-utils' test/s3.test.ts
3030

3131
"@aws-sdk/client-sqs":
3232
env:
@@ -38,4 +38,4 @@
3838
exclude: ">=3.363.0 <=3.377.0"
3939
mode: "max-7"
4040
commands:
41-
- nyc --no-clean mocha --require '@opentelemetry/contrib-test-utils' test/aws-sdk-v3-sqs.test.ts
41+
- mocha --require '@opentelemetry/contrib-test-utils' test/aws-sdk-v3-sqs.test.ts

plugins/node/opentelemetry-instrumentation-aws-sdk/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,10 @@
3535
"lint:readme": "node ../../../scripts/lint-readme.js",
3636
"prepublishOnly": "npm run compile",
3737
"tdd": "npm run test -- --watch-extensions ts --watch",
38-
"test": "nyc --no-clean mocha --require '@opentelemetry/contrib-test-utils' 'test/**/*.test.ts'",
38+
"test": "nyc mocha --require '@opentelemetry/contrib-test-utils' 'test/**/*.test.ts'",
3939
"test-all-versions": "tav",
4040
"version:update": "node ../../../scripts/version-update.js",
41-
"watch": "tsc -w",
42-
"coverage:merge": "nyc merge .nyc_output coverage/coverage-final.json"
41+
"watch": "tsc -w"
4342
},
4443
"peerDependencies": {
4544
"@opentelemetry/api": "^1.3.0"

plugins/node/opentelemetry-instrumentation-pg/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@
1414
"lint:readme": "node ../../../scripts/lint-readme.js",
1515
"prepublishOnly": "npm run compile",
1616
"tdd": "npm run test -- --watch-extensions ts --watch",
17-
"test": "nyc --no-clean mocha 'test/**/*.test.ts'",
17+
"test": "nyc mocha 'test/**/*.test.ts'",
1818
"test-all-versions": "tav",
1919
"test-all-versions:local": "cross-env RUN_POSTGRES_TESTS_LOCAL=true npm run test-all-versions",
2020
"test:debug": "mocha --inspect-brk --no-timeouts 'test/**/*.test.ts'",
2121
"test:local": "cross-env RUN_POSTGRES_TESTS_LOCAL=true npm run test",
2222
"version:update": "node ../../../scripts/version-update.js",
23-
"watch": "tsc -w",
24-
"coverage:merge": "nyc merge .nyc_output coverage/coverage-final.json"
23+
"watch": "tsc -w"
2524
},
2625
"keywords": [
2726
"instrumentation",

0 commit comments

Comments
 (0)