Let beta testers update to a stable release in place #117
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/min-update-from"
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?
What this PR does
Stops beta testers from flashing twice in a cycle. Today a stable release's manifest is built only against the previous stable release, so if any beta in the cycle needed a reflash, the stable release is reflash for everyone, including devices that already flashed that beta. Now, when a stable release comes out reflash that way, the workflow also diffs it against each beta of its own cycle, newest first. If nothing in the build changed after some beta B, the release is
app-layerwith"min_update_from": "B".updatesplugin andupdate-apply --verifyalready refuse an in-place update belowmin_update_from, and their gap check ignores betas for a stable target. New tests intest_updates.pyandtest_update_apply.pypin that down for this exact case: a reflash beta.1, an in-place beta.2, then a stable release floored at beta.1. It's offered on either beta and sends a device on the previous stable to reflash..forgejo/update_manifest.py: the manifest logic moves out of the workflow's inline shell and Python into a script..forgejo/test_update_manifest.py(15 tests, now part ofmake test) covers it: version order, previous release, cycle betas, everydecidebranch,build_changedagainst a real throwaway git repo, the manifest shape, and fetching.releasing.md,updates-setup.md, CLAUDE.md (beta-channel note, layout table), the README file tree, and the Makefile's test comment, which was stale: it said the tests weren't part of CI. Removes the deferred entry.Checklist
make lint(ansible--syntax-check,yamllint,shellcheck --severity=error, and the real-data check). The Lint workflow runs this on the PR.make test(thekestrel_pipytest suite and the real-data check's tests). The Test workflow runs this on the PR..envfiles, real names, personal emails, device serials, and no real captured or device data: SSIDs, MAC addresses, GPS coordinates, capture files, diagnostics bundles, logs, or screenshots of a real device — placeholders only. The real-data check catches MACs, emails, keys and capture files; real SSIDs, coordinates and screenshots are on you.docs/, and the on-device operator guide (GUIDE_MDinkestrel_pi/userguide.py) where it applies.Release impact
kestrel_pipackage,plugins/*.py, systemd units, the journald drop-in, a lib script already in the engine'sLIB_SCRIPTS, or the CLI.config.txt/cmdline, kernel modules, the base image or partition size,builder/config.json,builder/config.yml, theMakefile,.forgejo/workflows/, a shipped config default (config.toml/default.conf), or a brand-new lib script.Notes for review
automark the next release reflash, which 1.0.11-beta.1 is anyway.app-layer; 1.0.9 →app-layerwithmin_update_from: 1.0.9-beta.1(1.0.8 → 1.0.9 changed the build, all of it in beta.1); 1.0.11 today →reflash, as no 1.0.11 beta exists yet.config.yml,config.json, Makefile or workflow change moves the floor to the first beta after it. Forcingupdate_kindstill overrides everything.test_gps_serial_reader_recovers_from_a_stalled_linkfails only on my machine (onmaintoo) and passes in CI.🤖 Generated with Claude Code