Skip to content

feat: add the stable FTW app (ftw-0x); the beta app follows the beta channel - #57

Merged
frahlg merged 3 commits into
mainfrom
ha-stable
Nov 28, 2026
Merged

frahlg merged 3 commits into
mainfrom
ha-stable

Conversation

@frahlg

@frahlg frahlg commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

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

  • New app ftw-0x, named "FTW", in ftw-0x/. It takes only stable tags (v0.X.Y, v0.131.0 or later). Existing beta installs keep slug ftw-0x-beta and their data.
  • The old slugs stay retired. ftw was listed as 0.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.yaml lists ftw and ftw-beta under native.retired_slugs, and validate.py refuses any manifest that uses one.
  • The beta app follows Core's beta channel: it takes the highest release, beta or stable. tag_order orders across channels (v0.X.Y-beta.N < v0.X.Y < v0.X.(Y+1)-beta.1), and latest_tag picks the highest of either. A stable that outranks the beta pin moves both apps; a stable below it moves only the stable app.
  • Same recipe. Dockerfile (bar the three pin lines), run.sh, healthcheck.sh, mqtt-service.sh, and every manifest setting except name, slug, url, description and pins match ftw-0x-beta. validate.py refuses drift.
  • Not in the store before the first 0.x stable. The manifest is ftw-0x/unlisted.yaml with empty pins; Supervisor (and validate.py) read only config.yaml. The first stable pin writes ftw-0x/config.yaml, drops the unlisted note and removes unlisted.yaml; that merge lists the app. validate.py allows ftw-0x/config.yaml only beside a real stable pin.
  • Pinned only by native releases, one PR per release.
    • native_pin.py bump TAG moves every app that takes the tag. A receipt must name the tag's channel.
    • The bot branch is bot/pin-ftw-0x-beta-<tag> for a beta and bot/pin-ftw-0x-<tag> for a stable; a stable PR carries both apps when it moves both.
    • native_publish.py recreates 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.yml resolves the tag first, stages both app folders (commit -a would miss the new config.yaml), and names the moved apps in the title. A beta pin's branch and title are unchanged.
  • Check lints, builds and smokes the stable app as extra steps in the existing jobs, once it is listed. Steps, not a job: a skipped job would block every beta pin from publishing.
  • The old 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.
  • The pin rehearsal now also pins a stable above the beta in its copy, so a test that assumes the stable app is unlisted, or the beta app holds a beta, fails here first.

How a stable reaches Home Assistant

  1. Core promotes a tested beta with native-release.yml (channel: stable).
  2. With ci(release): hand a published stable to the Home Assistant app too ftw#2101, that run sends ftw-native-release with 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.
  3. The bot opens 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.py passes. Unit tests: 213 OK, including the rehearsal.
  • New tests cover:
    • the cross-channel order and the newest release;
    • a stable above every beta moving both apps, and a beta of the same version being ignored after it;
    • a stable below the beta moving only the stable app;
    • the first listing and its exact diff, a two-app pin diff, tampering, and a pin that moves nothing;
    • the stable app refusing a beta;
    • the retired slugs;
    • one branch per release and titles that name the apps.
  • A copy pinned to a fake v0.170.0 above the beta pin: both apps at 0.170.0, slug ftw-0x, validate.py passes, linter v2.21.3 exit 0 on both apps. The beta changelog folds the ## Unreleased notes into ## 0.170.0.
  • The stable recipe, filled with the v0.169.0-beta.1 package pins, built for aarch64 and passed scripts/smoke_native.sh (before the slug change, which touches only the manifest).
  • ShellCheck 0.11.0 clean.
  • Rebased onto feat(ftw-0x-beta): open FTW inside Home Assistant, find its MQTT broker, name it FTW (beta) #56 after its smoke fix. The stable manifest drops homeassistant: as the beta did; the recipe check refused the drift until it matched.

Not tested

  • No real stable release exists, so no real stable receipt went through native_pin.py check, and no workflow ran (I dispatched none).
  • No real Home Assistant OS, Supervisor or store listing.

Open points for the owner

  • For 3.x, stable required a passed Home Assistant OS pilot (qualification in compatibility.yaml). The 0.x stable app is not gated on it. Say if it should be.
  • Each app keeps its own /data, so moving from FTW (beta) to FTW is a new setup.
  • A beta user on a stable pin sees version 0.X.Y until the next beta.

Refs #25, Refs srcfl/ftw#2096, Refs srcfl/ftw#2101

🤖 Generated with Claude Code

@frahlg frahlg changed the title feat: add the stable FTW app, listed with the first 0.x stable feat: add the stable FTW app (ftw-0x); the beta app follows the beta channel Nov 28, 2026
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]>
@frahlg
frahlg changed the base branch from ha-simple to main November 28, 2026 06:08
frahlg and others added 3 commits November 28, 2026 07:09
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]>
@frahlg
frahlg marked this pull request as ready for review November 28, 2026 06:12
@frahlg
frahlg merged commit e4b5789 into main Nov 28, 2026
7 checks passed
@frahlg
frahlg deleted the ha-stable branch November 28, 2026 06:12
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T06:14:28.793250Z 67dcc62 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

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]>
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.

1 participant