Commit d749ee9
committed
fix: remove coverage context table to fix xdist worker crash
- Remove --cov-context=test from CI pytest command
- Remove context = test from pyproject.toml [tool.coverage.run]
- Fix signed_approval.py conditional import for mypy pre-commit
The SQLite 'context' table created by coverage's per-test context
feature races under xdist parallel workers, producing:
sqlite3.OperationalError: no such table: context
This kills the xdist worker, cascading into 800+ test errors.
Constraint: coverage --cov-context=test is incompatible with xdist -n auto
Tested: ruff, bandit, mypy (source+tests), audit_test_quality, audit_config_access, smoke test tier
Confidence: high1 parent 06809d8 commit d749ee9
3 files changed
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | 239 | | |
243 | 240 | | |
244 | 241 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
0 commit comments