Skip to content

ci: let the test harness drive the Home Assistant core version#95

Merged
deviantintegral merged 1 commit into
mainfrom
claude/pr-94-ci-failures-so8dzp
Jun 9, 2026
Merged

ci: let the test harness drive the Home Assistant core version#95
deviantintegral merged 1 commit into
mainfrom
claude/pr-94-ci-failures-so8dzp

Conversation

@deviantintegral

Copy link
Copy Markdown
Owner

The bootstrap script derived the Home Assistant core version from
hacs.json's "homeassistant" field and installed it as an exact pin
(homeassistant==). That field is a minimum supported version,
not an exact pin.

pytest-homeassistant-custom-component locks each release to one exact
Home Assistant version and its fixtures call core internals that must
match it. When Renovate bumped phacc, it pulled in the matching newer
core, but bootstrap then downgraded core back to the hacs.json minimum,
leaving the newer harness running against an older core
(e.g. device_registry.async_setup, added in 2026.4.0, missing on
2026.3.0). The test run failed in fixture setup before any of our code
ran.

Read the version the harness already installed instead of re-pinning,
and only install core explicitly when HA_VERSION is set as an override
(e.g. for matrix builds). This keeps the harness and core in sync and
removes this whole class of Renovate test failure.

https://claude.ai/code/session_01XsZWJtA1Q1wW2C84VTsoQg

The bootstrap script derived the Home Assistant core version from
hacs.json's "homeassistant" field and installed it as an exact pin
(homeassistant==<version>). That field is a *minimum* supported version,
not an exact pin.

pytest-homeassistant-custom-component locks each release to one exact
Home Assistant version and its fixtures call core internals that must
match it. When Renovate bumped phacc, it pulled in the matching newer
core, but bootstrap then downgraded core back to the hacs.json minimum,
leaving the newer harness running against an older core
(e.g. device_registry.async_setup, added in 2026.4.0, missing on
2026.3.0). The test run failed in fixture setup before any of our code
ran.

Read the version the harness already installed instead of re-pinning,
and only install core explicitly when HA_VERSION is set as an override
(e.g. for matrix builds). This keeps the harness and core in sync and
removes this whole class of Renovate test failure.

https://claude.ai/code/session_01XsZWJtA1Q1wW2C84VTsoQg
@deviantintegral deviantintegral merged commit c214fd5 into main Jun 9, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants