Commit 65e6d89
committed
fix(test): move #1389 measurement hooks to root e2e conftest
The prior fold placed the ``pytest_sessionfinish`` / ``pytest_testnodedown``
/ ``pytest_terminal_summary`` hooks at
``tests/src/e2e/workflows/automation/conftest.py``. CI re-ran cleanly,
test passed, but the measurement section still didn't surface — the
xdist master only loads conftests up to where tests are collected, and
``pytest_terminal_summary`` (which writes to the visible terminal) is a
master-only hook. Deep subdir conftests don't get their hooks invoked
on the master.
The Readiness gate timings pattern works because its hooks live at
``tests/src/e2e/conftest.py`` (the root e2e conftest the master always
loads). Same fix here: move the storage, the
``record_poll_cadence_measurement`` helper, and the three hook
extensions to the root conftest alongside the readiness ones. The deep
``workflows/automation/conftest.py`` is removed; the measurement test
imports the helper from the root.1 parent fba9dbd commit 65e6d89
3 files changed
Lines changed: 44 additions & 85 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
92 | 111 | | |
93 | 112 | | |
94 | 113 | | |
| |||
178 | 197 | | |
179 | 198 | | |
180 | 199 | | |
| 200 | + | |
| 201 | + | |
181 | 202 | | |
182 | 203 | | |
183 | 204 | | |
| |||
187 | 208 | | |
188 | 209 | | |
189 | 210 | | |
190 | | - | |
191 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
192 | 216 | | |
193 | 217 | | |
194 | 218 | | |
| |||
231 | 255 | | |
232 | 256 | | |
233 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
234 | 275 | | |
235 | 276 | | |
236 | 277 | | |
| |||
This file was deleted.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | | - | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments