forked from redhat-developer/rhdh-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodecov.yml
More file actions
246 lines (239 loc) · 7.92 KB
/
Copy pathcodecov.yml
File metadata and controls
246 lines (239 loc) · 7.92 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
# Codecov configuration for redhat-developer/rhdh-plugins
# Reference: https://docs.codecov.com/docs/codecov-yaml
#
# Feature umbrella: RHDHPLAN-851
# Epic: RHIDP-11862 — Unit Test Coverage for RHDH Plugins Repository
#
# Each workspace uploads coverage with its own flag (e.g., intelligent-assistant,
# orchestrator). individual_flags scope each flag to its workspace path
# so the Flags page shows per-workspace coverage correctly.
#
# Component management groups workspaces by support level (GA, Tech-Preview,
# Community, Dev-Preview) for dashboard visualization. Generated from overlay
# repo metadata using scripts/generate-codecov-components.sh.
codecov:
require_ci_to_pass: false
notify:
wait_for_ci: true
coverage:
precision: 2
round: down
range: "40...80"
status:
project:
default:
target: auto
threshold: 100%
informational: true
only_pulls: false
paths:
- "workspaces/*/plugins/*/src/**"
patch:
default:
target: auto
threshold: 100%
informational: true
paths:
- "workspaces/*/plugins/*/src/**"
comment:
layout: "header, diff, flags, footer"
behavior: default
require_changes: false
show_carryforward_flags: true
ignore:
- "**/*.test.ts"
- "**/*.test.tsx"
- "**/*.spec.ts"
- "**/*.spec.tsx"
# Package entry points / NFS plugin wiring (createFrontendPlugin, blueprints).
# Nested index.ts(x) under api/, components/, services/ often hold real logic
# and must remain in the coverage denominator (hence the /src/ prefix).
- "**/src/index.ts"
- "**/src/index.tsx"
- "**/__fixtures__/**"
- "**/__tests__/**"
- "**/__mocks__/**"
- "**/dist/**"
- "**/build/**"
- "**/node_modules/**"
- "**/setupTests.*"
- "**/playwright.config.ts"
- "**/scripts/**"
- "**/docs/**"
- "workspaces/*/packages/app/**"
- "workspaces/*/packages/app-legacy/**"
- "workspaces/*/packages/backend/**"
# Test-helper plugins live under workspaces/<workspace>/plugins/*-test
- "workspaces/*/plugins/*-test/**"
- "**/generated/**"
# Locale catalogs, test helpers, and Backstage plugin wiring (no business logic).
# Do not ignore src/alpha/** wholesale — those folders often contain real logic.
- "workspaces/*/plugins/*/src/translations/**"
- "workspaces/*/plugins/*/src/test-utils/**"
- "workspaces/*/plugins/*/src/plugin.ts"
- "workspaces/*/plugins/*/src/alpha.ts"
- "workspaces/*/plugins/*/src/alpha.tsx"
- "workspaces/*/plugins/*/src/alpha/index.ts"
- "workspaces/*/plugins/*/src/alpha/index.tsx"
- "workspaces/*/plugins/*/src/alpha/plugin.ts"
# Route tables / i18n wrappers; page behavior is covered by e2e where needed.
- "workspaces/*/plugins/*/src/components/Router.tsx"
- "workspaces/*/plugins/*/src/components/Trans.tsx"
# Frontend string/number constants only (not *-common constants modules).
- "workspaces/orchestrator/plugins/orchestrator/src/constants.ts"
component_management:
# GENERATED — do not edit by hand.
# Source of truth: rhdh-plugin-export-overlays metadata (spec.support field).
# Regenerate with: scripts/generate-codecov-components.sh --write --overlay <overlay-repo>
# Drift is detected on PRs and synced weekly by
# .github/workflows/sync-codecov-components.yml.
# Only workspaces that exist in this repository are included.
# Note: workspaces with mixed support-level packages appear in multiple components.
individual_components:
# Generally-Available Plugins — 6 workspace(s)
- component_id: generally-available-plugins
name: 'Generally-Available Plugins'
paths:
- workspaces/adoption-insights/
- workspaces/global-header/
- workspaces/homepage/
- workspaces/intelligent-assistant/
- workspaces/orchestrator/
- workspaces/quickstart/
# Tech-Preview Plugins — 5 workspace(s)
- component_id: tech-preview-plugins
name: 'Tech-Preview Plugins'
paths:
- workspaces/app-defaults/
- workspaces/bulk-import/
- workspaces/cost-management/
- workspaces/extensions/
- workspaces/homepage/
# Community Plugins — 3 workspace(s)
- component_id: community-plugins
name: 'Community Plugins'
paths:
- workspaces/theme/
- workspaces/translations/
- workspaces/x2a/
# Dev-Preview Plugins — 5 workspace(s)
- component_id: dev-preview-plugins
name: 'Dev-Preview Plugins'
paths:
- workspaces/ai-integrations/
- workspaces/boost/
- workspaces/konflux/
- workspaces/mcp-integrations/
- workspaces/scorecard/
flag_management:
default_rules:
carryforward: true
statuses: []
individual_flags:
- name: adoption-insights
paths:
- workspaces/adoption-insights/
- name: ai-integrations
paths:
- workspaces/ai-integrations/
- name: app-defaults
paths:
- workspaces/app-defaults/
- name: augment
paths:
- workspaces/augment/
- name: bulk-import
paths:
- workspaces/bulk-import/
- name: cost-management
paths:
- workspaces/cost-management/
- name: dcm
paths:
- workspaces/dcm/
# E2E coverage flags — cross-repo uploads from overlay E2E pipeline (RHIDP-13411)
- name: e2e-adoption-insights
paths:
- workspaces/adoption-insights/
- name: e2e-app-defaults
paths:
- workspaces/app-defaults/
- name: e2e-bulk-import
paths:
- workspaces/bulk-import/
- name: e2e-extensions
paths:
- workspaces/extensions/
- name: e2e-global-header
paths:
- workspaces/global-header/
- name: e2e-homepage
paths:
- workspaces/homepage/
- name: e2e-intelligent-assistant
paths:
- workspaces/intelligent-assistant/
# Replaces e2e-orchestrator, which was deleted on this project some time
# after 2026-08-17. Codecov flag deletion is a soft delete with no inverse:
# the API exposes deleteFlag and nothing to undo it, the UI offers no
# restore, and the name cannot be reused. The old flag's data is still in
# the report (142 files, 49.51% at main HEAD b37abc01) but hidden from every
# UI surface, so orchestrator's E2E coverage was invisible on this
# dashboard. The suffix is not a plugin version — it exists only because the
# plain name is burned. Uploaded by rhdh-plugin-export-overlays'
# scripts/upload-coverage-upstream.sh, which carries the matching override
# (redhat-developer/rhdh-plugin-export-overlays#3360). Land this entry
# BEFORE that one: without it the flag still publishes, it just falls back
# to default_rules and registers here permanently unscoped, and a flag
# registered on this project cannot be removed by the overlay side.
- name: e2e-orchestrator-plugin
paths:
- workspaces/orchestrator/
- name: e2e-quickstart
paths:
- workspaces/quickstart/
- name: e2e-scorecard
paths:
- workspaces/scorecard/
- name: e2e-theme
paths:
- workspaces/theme/
- name: extensions
paths:
- workspaces/extensions/
- name: global-header
paths:
- workspaces/global-header/
- name: homepage
paths:
- workspaces/homepage/
- name: konflux
paths:
- workspaces/konflux/
- name: intelligent-assistant
paths:
- workspaces/intelligent-assistant/
- name: mcp-integrations
paths:
- workspaces/mcp-integrations/
- name: orchestrator
paths:
- workspaces/orchestrator/
- name: quickstart
paths:
- workspaces/quickstart/
- name: repo-tools
paths:
- workspaces/repo-tools/
- name: scorecard
paths:
- workspaces/scorecard/
- name: theme
paths:
- workspaces/theme/
- name: translations
paths:
- workspaces/translations/
- name: x2a
paths:
- workspaces/x2a/