Remove the deprecated ups-hat plugin #113
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "remove/ups-hat"
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
Removes the deprecated
ups-hatplugin, as planned indeferred.md.ups-wsreplaced it in 1.0.10 (the same code under the board's name), and 1.0.11 is reflash-class anyway.plugins/ups-hat.py.[plugins.ups-hat]table inconfig.tomlto[plugins.ups-ws](same keys and defaults).ups-wsloses the hooks that existed only for the deprecated pair (DEPRECATED, theyields/noticearguments, the deprecation log line). Theupslibrary keeps its genericyields/noticeAPI.test_reference_plugins.pynow run againstups-ws;test_ups_lib.pyloads the libraries through it and checks the yielding rule with a stand-in name;test_ups_ws.pydrops the same-code and deprecation checks and gainstest_ups_hat_is_gone(no plugin, no shipped table, noups-hatin the user-facing plugin lists, noups-hat-setup.md);test_plugins_apply.pyandtest_web.pyupdated.docs/user-guide/ups-hat-setup.md;ups-ws-setup.md's "Switching fromups-hat" becomes "Coming fromups-hat" (enableups-wsafter reflashing with the sameshutdown_percent); README,managing-plugins.md,user-guides.md,config-reference.md,plugin-libraries.md,GUIDE_MD, CLAUDE.md and two library comments updated; the plugin count goes from nineteen to eighteen.ups-hatplugin" entry fromdeferred.md.Left as is on purpose: the ghost-guide fixture's
UPS_NAMESfallback (it rendersups-hatfor a stable release from before 1.0.11),tools/beta-check/(itsups-hatitem goes in the 1.0.11 beta-check update), andassets/branding/web-ui-iphone-preview.html, a static snapshot of older sample pages.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
config.tomlchanges: only a reflash puts the[plugins.ups-ws]table on a device. An in-place update would deleteups-hat.py(the engine removes plugins a release no longer ships) and leave a device that hadups-haton without its battery readout and auto-shutdown, so this must not go out app-layer. Like #112,update_kind=autowon't catch it; 1.0.11-beta.1 needsupdate_kind=reflash.ups-ws(andeink-ws27) after reflashing ifups-hat(oreink) was in use.test_gps_serial_reader_recovers_from_a_stalled_linkfails on my machine onmaintoo and passes in CI; unrelated.🤖 Generated with Claude Code