Commit deff5ab
test(e2e): remove #1389 cadence-measurement infra retired by this refactor
The #1389/#1398 work added an e2e test
(``test_poll_cadence_measurement.py``) plus xdist plumbing in
``tests/src/e2e/conftest.py`` (``record_poll_cadence_measurement``,
``_POLL_CADENCE_MEASUREMENTS`` + xdist worker handoff, terminal-summary
section) to empirically validate ``_POLL_CADENCE``'s p50/p99/worst
percentiles. That test consumed the ``entity-registration-elapsed``
DEBUG log line emitted by ``_poll_for_automation_entity`` on each
successful registration.
This PR removes both ``_POLL_CADENCE`` and the elapsed-time
instrumentation: the cadence loop is replaced by the WS event-driven
discovery helper, which resolves sub-second on the happy path without
any cadence tuning needed. The measurement test is therefore consuming
a log signal that no longer exists — CI fail signature is "No
'entity-registration-elapsed' DEBUG records captured after 10
automation creations."
Deletes:
- ``tests/src/e2e/workflows/automation/test_poll_cadence_measurement.py``
(207 lines) — entire test file. The cadence tuple it validates is
gone.
- ``record_poll_cadence_measurement()`` + ``_POLL_CADENCE_MEASUREMENTS``
/ ``_ALL_POLL_CADENCE_MEASUREMENTS`` + xdist worker handoff in
``pytest_sessionfinish`` / ``pytest_testnodedown`` + the
``#1389 _POLL_CADENCE measurement`` terminal section in
``pytest_terminal_summary``.
Also updates the ``NOT_VERIFIED_WARNING_PREFIX`` comment in
``tools_config_automations.py`` from "exhausts ``_POLL_CADENCE``" to
"exhausts its budget (``_POLL_BUDGET_S``)" and drops the test-file
reference, since the test that consumed the export is gone.
Per Patch76's #1406 review note: "the deletion wins" — extending that
to the e2e measurement infra that consumed the deleted instrumentation.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 1381851 commit deff5ab
3 files changed
Lines changed: 4 additions & 250 deletions
File tree
- src/ha_mcp/tools
- tests/src/e2e
- workflows/automation
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
| |||
| 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 | 92 | | |
108 | 93 | | |
109 | 94 | | |
| |||
193 | 178 | | |
194 | 179 | | |
195 | 180 | | |
196 | | - | |
197 | | - | |
198 | 181 | | |
199 | 182 | | |
200 | 183 | | |
| |||
206 | 189 | | |
207 | 190 | | |
208 | 191 | | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | 192 | | |
213 | 193 | | |
214 | 194 | | |
| |||
251 | 231 | | |
252 | 232 | | |
253 | 233 | | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | 234 | | |
273 | 235 | | |
274 | 236 | | |
| |||
Lines changed: 0 additions & 207 deletions
This file was deleted.
0 commit comments