You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(e2e): drop redundant lifecycle roundtrips, keep only Matter Server (#1414) (#1419)
Closes#1414.
The HAOS addon-lifecycle tier had four near-identical
``test_<addon>_start_stop_restart_roundtrip`` tests (Node-RED, ESPHome,
Matter Server, AppDaemon). All four used the same ``_addon_action``
helper hitting the same MCP wire path —
``ha_call_service(hassio.addon_{start,stop,restart}, data={"addon": slug})`` —
so they were four instances of one test parametrised by addon. From a
code-coverage standpoint one is sufficient to guard the wire path.
Node-RED's roundtrip in particular produced a recurring Supervisor 500
``Server got itself in trouble`` flake on the first ``addon_stop`` call
— four reproductions in <90 min across unrelated PRs, with reruns of
the same commit consistently passing. Node-RED's container teardown
(full Node.js runtime) is slow enough that Supervisor's addon_stop
handler races to a 500 before the response body is built.
Dropping three of the four roundtrips:
* Removes the recurring Node-RED flake at source
* Saves ~37-50s per HAOS lane (Node-RED ~25s, AppDaemon ~14s, ESPHome
<13s) — based on pytest's slowest-10 across 15 recent runs
* Preserves full addon-lifecycle wire coverage via the Matter Server
roundtrip, which has never been observed flaking and runs <13s
Matter Server kept because it's the lightest addon to cycle in the
bake; AppDaemon (~14s, sometimes slowest-10) dropped along with the
others.
Addon-specific surface coverage is unchanged for every addon:
``ha_get_addon`` info/options, ``ha_manage_addon`` options writes,
``ha_get_logs`` Supervisor logs, and Node-RED's proxy/ingress tests
(``test_manage_addon_modes.py``) all continue to run against the four
running addons.
Co-authored-by: kingpanther13 <kingpanther13@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments