Repository navigation
ci(release): hand a published stable to the Home Assistant app too - #2101
Merged
Merged
Conversation
The ha-addon job in native-release.yml sent only betas to srcfl/home-assistant-addons. Its stable app (srcfl/home-assistant-addons#57) must take every stable, and its beta app follows the beta channel, so a stable that outranks every beta reaches it as well. The job now runs for both channels. It checks the tag form and the release's prerelease flag per channel, requires the receipt to name the same channel, and sends {tag, channel} in the same ftw-native-release event. ha-app-pin.yml names the renamed job. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Fredrik Ahlgren <fredrik@sourceful-labs.com>
ha_app_pin.py read only `0.X.Y-beta.N`. Once a stable outranks the beta pin, srcfl/home-assistant-addons' beta app holds `0.X.Y` and every run would have failed with "pins no 0.x beta". rank() now orders across channels (v0.X.Y-beta.N < v0.X.Y < v0.X.(Y+1)-beta.1), pinned() accepts a stable, and the check compares the pin with the newest release of either channel. The report says "release" where it said "beta"; the issue title, its search key, is unchanged. The issue text names the app repo's renamed pin workflow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Fredrik Ahlgren <fredrik@sourceful-labs.com>
frahlg
force-pushed
the
onboarding-ha-stable-pin
branch
from
November 28, 2026 06:07
4e98087 to
dc4c870
Compare
frahlg
marked this pull request as ready for review
November 28, 2026 06:12
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Paired with srcfl/home-assistant-addons#57 (the stable app,
ftw-0x). CI only, so no changeset.Problem
native-release.ymlhands only a published beta to srcfl/home-assistant-addons (if: inputs.channel == 'beta'). The new stable app there must take every 0.x stable, and the beta app follows Core's beta channel, so a stable that outranks every beta should reach it too. Today a stable would need someone to dispatch the pin by hand.Change
The
ha-addonjob now runs for both channels:v0.X.Y-beta.N, release marked prerelease, receipt channelbeta(as before);v0.X.Y, release not marked prerelease (the publish job sets--prereleaseonly for a beta), receipt channelstable;ftw-native-release, now withchannelfrom the run (betaorstable). The app repo'ssync-native.ymlalready reads onlyclient_payload.tag; Add EV Charger settings tab #57 routes a stable tag to its apps.The job is renamed "Offer the published release to the Home Assistant app", and
ha-app-pin.ymlnames it so.The watch in
ha-app-pin.ymlfollows the same rule..github/scripts/ha_app_pin.pyread only0.X.Y-beta.N, so once a stable outranks the beta pin (the beta app then holds0.X.Y), every run would have failed.rank()now orders across channels (v0.X.Y-beta.N<v0.X.Y<v0.X.(Y+1)-beta.1),pinned()accepts a stable, and the check compares the pin with the newest release of either channel. The report says "release" where it said "beta". The issue title, which is its search key, is unchanged. A dry run still sends nothing, and a missingHA_ADDON_DISPATCH_TOKENstill only logs a notice.#1798 (draft) adds a gate step to the
publishjob andstatuses: read. This PR touches only theha-addonjob, so the two should not conflict.Evidence
scripts/test_ha_addon_dispatch.pyruns the job's script against fakeghanswers: 7 tests OK, 3 of them new. A published stable sends{tag: v0.154.1, channel: stable}with the dispatch token. A beta tag on the stable channel, a stable release marked prerelease, a stable receipt that saysbeta, and an unknown channel send nothing..github/scripts/test_ha_app_pin.py: 18 tests OK, 3 of them new. They cover a stable above every beta (behind until pinned, quiet once pinned), a stable below the beta pin, and the order across channels. Old-line stables,drivers-stableand drafts never count.make release-workflow-testpasses locally. Both workflows parse as YAML.origin/master(d43e80d9).Not tested
if:and env wiring only run on a real dispatch.sync-native.ymlthat refuses stable tags. It fails with "not a 0.x beta tag" and changes nothing.Refs srcfl/home-assistant-addons#57
🤖 Generated with Claude Code