Commit eae6509
authored
AAP-56029 Collect test coverage from everything in the matrix (#865)
## Description
Collect coverage from all jobs in the tox / test matrix.
## Type of Change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] Documentation update
- [x] Test update
- [ ] Refactoring (no functional changes)
- [ ] Development environment change
- [ ] Configuration change
## Self-Review Checklist
- [ ] I have performed a self-review of my code
- [ ] I have added relevant comments to complex code sections
- [ ] I have updated documentation where needed
- [ ] I have considered the security impact of these changes
- [ ] I have considered performance implications
- [ ] I have thought about error handling and edge cases
- [ ] I have tested the changes in my local environment
## Testing Instructions
This, itself, modifies testing. Not even testing, collection of coverage
of tests. Not even changing whether coverage is collected, but how
thoroughly coverage is collected, making it more thorough.
### Prerequisites
none
### Steps to Test
This is _about_ testing.
### Expected Results
coverage for entire matrix collected
## Additional Context
Created because it came up in
#855, and separated
out because that is a highly-blocking issue that we should not scope
creep.
### Required Actions
- [ ] Requires documentation updates
- [ ] Requires downstream repository changes
- [ ] Requires infrastructure/deployment changes
- [ ] Requires coordination with other teams
- [ ] Blocked by PR/MR: #XXX
### Screenshots/Logs
See results of CI for this PR
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Collects coverage from all tox matrix jobs, uploads per-env artifacts,
aggregates them in Sonar workflows, and passes coverage paths to
SonarCloud for PR and branch analyses.
>
> - **CI (`.github/workflows/ci.yml`)**:
> - Inject PR number into `coverage.xml` only when `matrix.tests.env !=
'check'` and file exists.
> - Upload coverage artifact per env as `coverage-${{ matrix.tests.env
}}` (instead of single `coverage`).
> - **SonarCloud (`.github/workflows/sonar-pr.yml`)**:
> - Download all coverage artifacts with pattern `coverage-*` for both
PR and branch analyses.
> - Discover all `coverage.xml` files, set `COVERAGE_PATHS`, and
validate presence for PR analysis.
> - Extract PR number from the first discovered `coverage.xml`.
> - Pass `-Dsonar.python.coverage.reportPaths=${{ env.COVERAGE_PATHS }}`
to SonarCloud (conditionally for branch analysis).
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
f7baba0. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent ddb69a1 commit eae6509
2 files changed
+37
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
| 47 | + | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
69 | | - | |
70 | | - | |
71 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
72 | 78 | | |
73 | 79 | | |
74 | 80 | | |
| |||
93 | 99 | | |
94 | 100 | | |
95 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
96 | 110 | | |
97 | 111 | | |
98 | 112 | | |
| |||
118 | 132 | | |
119 | 133 | | |
120 | 134 | | |
| 135 | + | |
121 | 136 | | |
122 | 137 | | |
123 | 138 | | |
| |||
132 | 147 | | |
133 | 148 | | |
134 | 149 | | |
135 | | - | |
136 | | - | |
| 150 | + | |
| 151 | + | |
137 | 152 | | |
138 | 153 | | |
139 | 154 | | |
140 | 155 | | |
141 | 156 | | |
142 | 157 | | |
143 | | - | |
| 158 | + | |
144 | 159 | | |
145 | 160 | | |
146 | 161 | | |
147 | 162 | | |
148 | 163 | | |
149 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
150 | 170 | | |
151 | 171 | | |
152 | 172 | | |
153 | 173 | | |
154 | 174 | | |
155 | | - | |
156 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
157 | 178 | | |
158 | 179 | | |
159 | 180 | | |
160 | 181 | | |
161 | | - | |
| 182 | + | |
162 | 183 | | |
163 | 184 | | |
164 | 185 | | |
| |||
170 | 191 | | |
171 | 192 | | |
172 | 193 | | |
| 194 | + | |
0 commit comments