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): generalize readiness-gate diagnostics helper (closes#1267)
Rename _dump_ha_mcp_tools_diagnostics → _dump_ha_readiness_diagnostics and add
optional service_domain + config_entry_domain kwargs. Call from all five
readiness-gate failure/warning branches in ha_container_with_fresh_config so the
CI artifact carries HA-side context for any gate timeout, not just ha_mcp_tools.
Sites added (label):
* _wait_for_ha_api_ready fail → api-not-ready
* STABILIZATION_TIMEOUT pytest.fail → stabilization-timeout
* ENTITY_STABILIZATION_TIMEOUT pytest.fail → entity-registration-timeout
* INPUT_BOOLEAN_WAIT logger.warning → input-boolean-warn
* SUN_WAIT logger.warning → sun-wait-warn
Existing ha_mcp_tools site updated to pass service_domain + config_entry_domain
so its domain-specific presence-check output is preserved (label: ha-mcp-tools-timeout).
Without service_domain/config_entry_domain, the dump emits aggregate
/api/services domain list + config_entries total — enough context to
distinguish "HA never finished starting" from "HA started but a specific
domain regressed".
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix(tests): adopt Gemini review feedback for readiness diagnostics
* Config_entries dump emits domain list in both branches (G2 + G1 docstring follow-up).
* input_boolean gate passes service_domain="input_boolean" (G3, partial G4).
* sun gate passes config_entry_domain="sun" (partial G5).
Declined: G4 config_entry_domain="input_boolean" — input_boolean is a HA
built-in helper without a config entry; passing it would emit misleading
"NO entry visible" output. G4 + G5 label renames to *-debug — the label
is a call-site descriptor, not a log-level directive; #1270's styleguide
rule (debug-level inside polling try/except) applies to expected
transients mid-poll, not to post-timeout diagnostic dumps.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix(tests): correct config_entries endpoint path in docstring + log messages
The docstring and 3 log messages in _dump_ha_readiness_diagnostics referenced
/api/config/config_entries while the actual GET targets the more specific
/api/config/config_entries/entry endpoint. Inconsistency surfaced by Gemini
on the #1271 re-review. Sibling sweep added one more reference in the
ha_mcp_tools call-site comment block that had the same shorthand.
No behaviour change — cosmetic / accuracy only.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments