Commit fde86c4
feat: only upload E2E coverage for plugins owned by redhat-developer/rhdh-plugins (redhat-developer#2578)
feat: only upload E2E coverage for plugins we own the Codecov project for
Codecov anchors every report to a repo + commit + file tree, so coverage is only
accurate when uploaded to the repo where those source files and commits actually
live. The upload target is derived per workspace from source.json, which spans
~10 repos across 9 GitHub orgs (36 -> backstage/community-plugins, 18 ->
redhat-developer/rhdh-plugins, plus RoadieHQ, PagerDuty, etc.). We can only get a
Codecov upload token for repos we own, and uploading a plugin's coverage to a
repo where its commit/files don't exist produces orphaned, inaccurate metrics.
Gate the upload on the source slug: only proceed when it matches the owned
project (CODECOV_UPLOAD_SLUG, default redhat-developer/rhdh-plugins); otherwise
log and skip. Plugins sourced from backstage/community-plugins and other orgs are
skipped for now. The lcov is still generated locally either way.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 59d7fdc commit fde86c4
1 file changed
Lines changed: 23 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | | - | |
17 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
| |||
87 | 92 | | |
88 | 93 | | |
89 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
90 | 109 | | |
91 | 110 | | |
92 | 111 | | |
| |||
0 commit comments