feat(hassfest): build the image natively for arm64 and prefer it #6
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/hassfest-arm64"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The official
ghcr.io/home-assistant/hassfestimage is amd64 only, so on the arm64 runner every validation runs under emulation (about 70 seconds each, measured in thetest hassfestrun: 2m56s for two validations).What changes
build-hassfest.ymlbuilds the same image from the latest stable Home Assistant release with core's ownscript/hassfest/docker/Dockerfile(the build context is the core source tree) and publishes<registry>/<owner>/hassfest:<release>and:latest. It runs weekly (releases are monthly), skips when the release is already built, and can be dispatched withforceor another platform list. Onlylinux/arm64by default: that is the runner.hassfestaction prefers that image (registry derived from the server URL, no hardcoded host) and falls back to the official image with a warning when it cannot be pulled, so a missing or private image never breaks a check. Tested locally.Trade-offs
image:input for the official one.Checks
test hassfest(this MR) exercises the action with the new image preference and the fallback, and must pass the valid fixture and reject the invalid one.build-hassfest.ymlon this branch; the result is in the comments / next push.Claude-Session: https://claude.ai/code/session_013jL41LP9srdcUDYggNpC98
🤖 Generated with Claude Code