Skip to content

Commit c39e7bc

Browse files
committed
chore: use atuomatic flag management
1 parent 4e02001 commit c39e7bc

File tree

2 files changed

+8
-271
lines changed

2 files changed

+8
-271
lines changed

codecov.yml

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

scripts/codecov-upload-flags.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,6 @@ for (const pkg of pkgsWithFlag) {
7979
if (existsSync(pkg.report)) {
8080
console.log(`CODECOV: Uploading report of "${pkg.name}" with flag "${pkg.flag}"\n\n`);
8181
const command = pkg.command.replace('<sha>', 'Oxffff').replace('<branch>', 'my-branch');
82-
execCmd(command, {cwd: TOP, encoding: 'utf-8'});
82+
execCmd(command);
8383
}
8484
}

0 commit comments

Comments
 (0)