Commit 527cd0f
committed
Clean up marshmallow warnings + count pytest tests in perf report
Three layered cleanups on the now-green perf-test workflow:
1. vfb_queries.py: migrate marshmallow 3→4 deprecations in our own
code so RemovedInMarshmallow4Warning / ChangedInMarshmallow4Warning
stop firing for lines 138, 308, 309.
- `missing=` → `load_default=` on four schema fields at
preview_columns, preview_results, output_format, count (136-139).
- `fields.Field()` → `fields.Raw()` on Publications and Synonyms
(308-309).
No behavioural change; both renames are marshmallow's recommended
migration path.
2. pyproject.toml [tool.pytest.ini_options]: filterwarnings to silence
the marshmallow library-internal deprecation warnings
(marshmallow/fields.py:582,776,986,1218) that bubble up from
transitive deps (vfb_connect, dataclasses-json) using legacy
patterns. Our own code's warnings remain visible because they live
in our source tree, not marshmallow's.
3. performance-test.yml step #9: report counts now sum both unittest-
and pytest-format test lines. Was previously showing "Total
Tests: 1" — only the legacy term_info_performance unittest line —
because grep "^test_" doesn't match pytest's
`src/test/...::TestX::test_y PASSED`. Parser now sums:
unittest: ^test_ AND ^(FAIL|ERROR):
pytest: " (PASSED|FAILED|ERROR)( |$)"
Totals reflect every test the workflow actually ran across all
three test steps.1 parent 4fecde7 commit 527cd0f
3 files changed
Lines changed: 40 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
281 | 289 | | |
282 | 290 | | |
283 | 291 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
15 | 27 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
309 | | - | |
| 308 | + | |
| 309 | + | |
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| |||
0 commit comments