Commit 453a7b5
committed
perf-test: parallelise step #6 + register pytest integration marker
1. .github/workflows/performance-test.yml
- Run Performance Test (step #6): `python -m unittest …`
(single-threaded) → `pytest -v -n auto …`. pytest discovers
unittest.TestCase subclasses automatically and pytest-xdist
parallelises them across the runner's vCPUs. No test refactoring
needed. Expected ~3 min → ~1.5 min.
- Run Connectivity Tests (step #8): xdist `-n auto` (~4 workers on
ubuntu-latest) → `-n 8`. These tests are I/O-bound on Neo4j
round-trips; oversubscribing CPU cores fills network-wait time.
Upstream advertises max_concurrent=40 on /status — 8 workers
stays well within budget. Expected ~7 min → ~4 min.
2. pyproject.toml
- Add [tool.pytest.ini_options] markers = [...] declaring the
`integration` marker that the connectivity test files already
decorate with. Stops the `PytestUnknownMarkWarning` per-occurrence
log spam that was bloating performance.md (each unregistered mark
was emitting four-plus warning blocks per xdist worker per file).1 parent dae1ae3 commit 453a7b5
2 files changed
Lines changed: 24 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
| 61 | + | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
0 commit comments