feat(hassfest): build the image natively for arm64 and prefer it #6

Merged
tim merged 1 commit from feat/hassfest-arm64 into main 2026-10-12 12:32:51 +00:00
Owner

The official ghcr.io/home-assistant/hassfest image is amd64 only, so on the arm64 runner every validation runs under emulation (about 70 seconds each, measured in the test hassfest run: 2m56s for two validations).

What changes

  • build-hassfest.yml builds the same image from the latest stable Home Assistant release with core's own script/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 with force or another platform list. Only linux/arm64 by default: that is the runner.
  • hassfest action 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

  • A pipeline we own and an image that follows Home Assistant. The weekly schedule handles that; if it breaks, the fallback returns to the slow path with a warning.
  • arm64 only: an amd64 machine runs it under emulation, or uses the 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.
  • The image build itself is verified by dispatching build-hassfest.yml on this branch; the result is in the comments / next push.

Claude-Session: https://claude.ai/code/session_013jL41LP9srdcUDYggNpC98

🤖 Generated with Claude Code

The official `ghcr.io/home-assistant/hassfest` image is amd64 only, so on the arm64 runner every validation runs under emulation (about 70 seconds each, measured in the `test hassfest` run: 2m56s for two validations). ## What changes - **`build-hassfest.yml`** builds the same image from the latest stable Home Assistant release with core's own `script/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 with `force` or another platform list. Only `linux/arm64` by default: that is the runner. - **`hassfest` action** 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 - A pipeline we own and an image that follows Home Assistant. The weekly schedule handles that; if it breaks, the fallback returns to the slow path with a warning. - arm64 only: an amd64 machine runs it under emulation, or uses the `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. - The image build itself is verified by dispatching `build-hassfest.yml` on this branch; the result is in the comments / next push. Claude-Session: https://claude.ai/code/session_013jL41LP9srdcUDYggNpC98 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(hassfest): build the image natively for arm64 and prefer it
All checks were successful
test auto-tag / test (pull_request) Successful in 3s
test docker-publish / test (pull_request) Successful in 3s
test hassfest / test (pull_request) Successful in 30s
test python-test / test (pull_request) Successful in 15s
test security-scan / test (pull_request) Successful in 29s
088ba405ee
The official ghcr.io/home-assistant/hassfest image is amd64 only, so on
the arm64 runner every validation ran under emulation (about 70 seconds).

- build-hassfest.yml builds the same image from the latest stable Home
  Assistant release with its own script/hassfest/docker/Dockerfile 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 with another platform list or force
- the hassfest action prefers that image (registry derived from the
  server URL, no hardcoded host) and falls back to the official image
  when it cannot be pulled

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013jL41LP9srdcUDYggNpC98
tim merged commit 2d5e8e6698 into main 2026-10-12 12:32:51 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
tim/workflow-basics!6
No description provided.