Repository navigation
Conversation
frahlg
added a commit
to srcfl/ftw
that referenced
this pull request
Nov 28, 2026
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 <[email protected]> Signed-off-by: Fredrik Ahlgren <[email protected]>
A new app `ftw`, named "FTW", in ftw-0x/. It takes only stable releases (v0.X.Y, v0.131.0 or later); the beta app takes only betas. - Same recipe as ftw-0x-beta: Dockerfile bar the three pin lines, run.sh, healthcheck.sh, mqtt-service.sh, and every manifest setting but name, slug, url, description and pins. validate.py refuses drift. - Out of the store until the first 0.x stable: the manifest is ftw-0x/unlisted.yaml with empty pins, and Supervisor reads only config.yaml. The first stable pin writes config.yaml and removes unlisted.yaml. validate.py allows ftw-0x/config.yaml only beside a real stable pin, and never a manifest in ftw/. - native_pin.py routes a tag to its app by channel and checks that the receipt names that channel. native_publish.py accepts bot/pin-ftw-v0.X.Y and recreates the whole diff, including the renamed manifest (with --no-renames, so the removal counts). - sync-native.yml takes a stable tag, names the branch and title after the app, and stages new files. Core sends no event for a stable yet, so the stable pin is a manual dispatch (RELEASING.md). - Check lints, builds and smokes the stable app as extra steps once it is listed. Steps, not a job: a skipped job would block every beta pin from publishing. - compatibility.yaml names both 0.x apps under `native`; the 3.x blocks stay as the record. ftw/ stays the retired 3.x build context, still built by CI, and says the slug now belongs to ftw-0x. - The pin rehearsal also lists the stable app, so a test that assumes it is unlisted fails before the first stable does. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Fredrik Ahlgren <[email protected]>
…eta channel Slug: the stable app is now `ftw-0x`, matching its folder; its name stays "FTW". The old slug `ftw` was listed as 0.1.0-beta.1 (Core v1.10.0-beta.1) until 18 September 2026, and an install that still holds it would have been offered 0.x as an update on its July data. `ftw` and `ftw-beta` are now retired slugs: compatibility.yaml lists them and validate.py refuses any manifest that uses one. Beta channel: like Core's beta channel, ftw-0x-beta takes the highest release, beta or stable. tag_order now orders across channels (v0.X.Y-beta.N < v0.X.Y < v0.X.(Y+1)-beta.1), latest_tag picks the highest of either, and a stable bump moves every app it outranks. One pin PR per release: a beta on bot/pin-ftw-0x-beta-<tag>, a stable on bot/pin-ftw-0x-<tag>, carrying both apps when it moves both. native_publish recreates the diff of every app the tag may move and refuses a pin that moves nothing. sync-native resolves the tag first, stages both app folders and names the moved apps in the title; a beta pin's title is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Fredrik Ahlgren <[email protected]>
The recipe check refused the stable manifest once the beta dropped `homeassistant: "2026.10.2"`; drop it here too. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Fredrik Ahlgren <[email protected]>
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. |
frahlg
added a commit
to srcfl/ftw
that referenced
this pull request
Nov 28, 2026
…2101) * ci(release): hand a published stable to the Home Assistant app too 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 <[email protected]> Signed-off-by: Fredrik Ahlgren <[email protected]> * ci(ha-app-pin): follow the newest release of either channel 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 <[email protected]> Signed-off-by: Fredrik Ahlgren <[email protected]> --------- Signed-off-by: Fredrik Ahlgren <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Builds on #56 (merged as 40ed932); the stable app copies its recipe. Rebased onto
main, so the diff holds only this PR's changes. Paired with srcfl/ftw#2101, which hands a published stable to this repository as betas are handed today.Problem
The owner decided that a stable channel comes now, and these changes may become the first 0.x stable. Home Assistant has only the beta app, which takes every beta. FTW has had no 0.x stable yet (the last stable is v0.130.4 from the old line).
Change
ftw-0x, named "FTW", inftw-0x/. It takes only stable tags (v0.X.Y,v0.131.0or later). Existing beta installs keep slugftw-0x-betaand their data.ftwwas listed as0.1.0-beta.1(Core v1.10.0-beta.1) until 18 September 2026. An install may still hold it with July data, and a listed app with that slug would offer it 0.x as an update.compatibility.yamllistsftwandftw-betaundernative.retired_slugs, andvalidate.pyrefuses any manifest that uses one.tag_orderorders across channels (v0.X.Y-beta.N<v0.X.Y<v0.X.(Y+1)-beta.1), andlatest_tagpicks the highest of either. A stable that outranks the beta pin moves both apps; a stable below it moves only the stable app.Dockerfile(bar the three pin lines),run.sh,healthcheck.sh,mqtt-service.sh, and every manifest setting except name, slug, url, description and pins matchftw-0x-beta.validate.pyrefuses drift.ftw-0x/unlisted.yamlwith empty pins; Supervisor (andvalidate.py) read onlyconfig.yaml. The first stable pin writesftw-0x/config.yaml, drops the unlisted note and removesunlisted.yaml; that merge lists the app.validate.pyallowsftw-0x/config.yamlonly beside a real stable pin.native_pin.py bump TAGmoves every app that takes the tag. A receipt must name the tag's channel.bot/pin-ftw-0x-beta-<tag>for a beta andbot/pin-ftw-0x-<tag>for a stable; a stable PR carries both apps when it moves both.native_publish.pyrecreates the diff of every app the tag may move with trusted code, refuses a pin that moves nothing, and uses--no-renames, so the removed manifest counts. The new test caught that.sync-native.ymlresolves the tag first, stages both app folders (commit -awould miss the newconfig.yaml), and names the moved apps in the title. A beta pin's branch and title are unchanged.ftw/folder is the retired 3.x build context. CI still builds and smokes it against a fixture, the 3.x validator reads its Dockerfile, and five refusing 3.x workflows name it. I left it in place; the validator refuses any manifest there or anywhere with its slug.How a stable reaches Home Assistant
native-release.yml(channel: stable).ftw-native-releasewith the stable tag, as for a beta. Without it:gh workflow run sync-native.yml --repo srcfl/home-assistant-addons --ref main -f tag=v0.X.Y.bot/pin-ftw-0x-v0.X.Y, Check runs (also on the stable app), and it merges. FTW appears in the store with the first one; FTW (beta) moves too if that stable outranks its beta.Evidence
python scripts/validate.pypasses. Unit tests: 213 OK, including the rehearsal.v0.170.0above the beta pin: both apps at0.170.0, slugftw-0x,validate.pypasses, linter v2.21.3 exit 0 on both apps. The beta changelog folds the## Unreleasednotes into## 0.170.0.scripts/smoke_native.sh(before the slug change, which touches only the manifest).homeassistant:as the beta did; the recipe check refused the drift until it matched.Not tested
native_pin.py check, and no workflow ran (I dispatched none).Open points for the owner
qualificationincompatibility.yaml). The 0.x stable app is not gated on it. Say if it should be./data, so moving from FTW (beta) to FTW is a new setup.0.X.Yuntil the next beta.Refs #25, Refs srcfl/ftw#2096, Refs srcfl/ftw#2101
🤖 Generated with Claude Code