Remove the deprecated eink plugin #112

Merged
aluminum-ice merged 1 commit from remove/eink into main 2026-10-31 04:16:47 +00:00
Owner

What this PR does

Removes the deprecated eink plugin, as planned in deferred.md. eink-ws27 replaced it in 1.0.10 (the same code under the HAT's name), and this is the reflash-class release that can drop it.

  • Deletes plugins/eink.py and its three driver helpers (_eink_epdconfig.py, _eink_epd2in7.py, _eink_epd2in7_V2.py); eink-ws27 keeps its own byte-identical copies.
  • Renames the shipped [plugins.eink] table in config.toml to [plugins.eink-ws27] and points its comment at eink-ws27-setup.md.
  • eink-ws27 loses the hooks that existed only for the deprecated pair: no DEPRECATED, a plain claim_panel, a plain health note. The eink_face library keeps its yields API (it is generic, and ups has the same rule).
  • Tests: test_eink.py and test_eink_keys.py now test eink-ws27; the library tests load through it; test_eink_ws27.py drops the same-code, helper-digest and deprecation checks and gains test_eink_is_gone (no plugin, no helpers, no shipped table, no eink in the user-facing plugin lists, no eink-setup.md); the one-panel test checks the yielding rule with a stand-in claim.
  • Docs: deletes docs/user-guide/eink-setup.md; eink-ws27-setup.md's "Switching from eink" becomes "Coming from eink" (enable eink-ws27 after reflashing, move face and voice overrides); README, managing-plugins.md, user-guides.md, config-reference.md, eink-ws213-setup.md, plugin-libraries.md, vendored-code.md, user-guide-publishing.md, GUIDE_MD and CLAUDE.md updated; the plugin count goes from twenty to nineteen.
  • pull-eink-diagnostics.sh defaults to --plugin eink-ws27 (eink still works for a device on 1.0.10 or older).
  • Removes the "Remove the deprecated eink plugin" entry from deferred.md.

Left as is on purpose: the ghost-guide fixture's EINK_NAMES fallback (it renders eink for a stable release from before 1.0.11, until a stable without it is the latest), and tools/beta-check/ (its eink checks go in the 1.0.11 beta-check update).

Checklist

  • Lint passes — make lint (ansible --syntax-check, yamllint, shellcheck --severity=error, and the real-data check). The Lint workflow runs this on the PR.
  • Tests pass — make test (the kestrel_pi pytest suite and the real-data check's tests). The Test workflow runs this on the PR.
  • Nothing real: no secrets, no personal information, no real data. This is a public repository. The diff contains no real account passwords or hashes, Wi-Fi passphrases, private keys, API tokens, .env files, 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.
  • Consent gates intact. Capture and network plugins still ship disabled, enabling them still takes the authorized-use acknowledgment (never pre-ticked or given by code), and the capture whitelist is still enforced.
  • Docs updated in the same PR, if this changes something an operator sees or configures: the README package table, the relevant page under docs/, and the on-device operator guide (GUIDE_MD in kestrel_pi/userguide.py) where it applies.
  • Commit messages are short and imperative.

Release impact

  • App-layer-safe — changes only files the in-place update engine carries: the kestrel_pi package, plugins/*.py, systemd units, the journald drop-in, a lib script already in the engine's LIB_SCRIPTS, or the CLI.
  • Reflash-class — touches a build input the engine does not carry onto a running device: apt or pip packages, boot options / config.txt / cmdline, kernel modules, the base image or partition size, builder/config.json, builder/config.yml, the Makefile, .forgejo/workflows/, a shipped config default (config.toml / default.conf), or a brand-new lib script.

Notes for review

  • Reflash-class because the shipped config.toml changes: only a reflash puts the [plugins.eink-ws27] table on a device. An in-place update would delete eink.py (the engine removes plugins a release no longer ships) and leave a device that had eink on without its face, so this must not go out app-layer. update_kind=auto won't catch it (no config.yml/config.json/Makefile/workflow change), so the release carrying this needs update_kind=reflash, as planned for 1.0.11-beta.1.
  • Part of the 1.0.11 reflash batch, with the AngryOxide v0.9.4 pin (#111).
  • Lint is clean and 1441 tests pass locally. test_gps_serial_reader_recovers_from_a_stalled_link fails on my machine on a clean origin/main checkout too, and passes in CI, so it's unrelated to this change.

🤖 Generated with Claude Code

## What this PR does Removes the deprecated `eink` plugin, as planned in `deferred.md`. `eink-ws27` replaced it in 1.0.10 (the same code under the HAT's name), and this is the reflash-class release that can drop it. - Deletes `plugins/eink.py` and its three driver helpers (`_eink_epdconfig.py`, `_eink_epd2in7.py`, `_eink_epd2in7_V2.py`); `eink-ws27` keeps its own byte-identical copies. - Renames the shipped `[plugins.eink]` table in `config.toml` to `[plugins.eink-ws27]` and points its comment at `eink-ws27-setup.md`. - `eink-ws27` loses the hooks that existed only for the deprecated pair: no `DEPRECATED`, a plain `claim_panel`, a plain health note. The `eink_face` library keeps its `yields` API (it is generic, and `ups` has the same rule). - Tests: `test_eink.py` and `test_eink_keys.py` now test `eink-ws27`; the library tests load through it; `test_eink_ws27.py` drops the same-code, helper-digest and deprecation checks and gains `test_eink_is_gone` (no plugin, no helpers, no shipped table, no `eink` in the user-facing plugin lists, no `eink-setup.md`); the one-panel test checks the yielding rule with a stand-in claim. - Docs: deletes `docs/user-guide/eink-setup.md`; `eink-ws27-setup.md`'s "Switching from `eink`" becomes "Coming from `eink`" (enable `eink-ws27` after reflashing, move face and voice overrides); README, `managing-plugins.md`, `user-guides.md`, `config-reference.md`, `eink-ws213-setup.md`, `plugin-libraries.md`, `vendored-code.md`, `user-guide-publishing.md`, `GUIDE_MD` and CLAUDE.md updated; the plugin count goes from twenty to nineteen. - `pull-eink-diagnostics.sh` defaults to `--plugin eink-ws27` (`eink` still works for a device on 1.0.10 or older). - Removes the "Remove the deprecated `eink` plugin" entry from `deferred.md`. Left as is on purpose: the ghost-guide fixture's `EINK_NAMES` fallback (it renders `eink` for a stable release from before 1.0.11, until a stable without it is the latest), and `tools/beta-check/` (its `eink` checks go in the 1.0.11 beta-check update). ## Checklist - [x] **Lint passes** — `make lint` (ansible `--syntax-check`, `yamllint`, `shellcheck --severity=error`, and the real-data check). The **Lint** workflow runs this on the PR. - [x] **Tests pass** — `make test` (the `kestrel_pi` pytest suite and the real-data check's tests). The **Test** workflow runs this on the PR. - [x] **Nothing real: no secrets, no personal information, no real data.** This is a public repository. The diff contains no real account passwords or hashes, Wi-Fi passphrases, private keys, API tokens, `.env` files, 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. - [x] **Consent gates intact.** Capture and network plugins still ship disabled, enabling them still takes the authorized-use acknowledgment (never pre-ticked or given by code), and the capture whitelist is still enforced. - [x] **Docs updated in the same PR**, if this changes something an operator sees or configures: the README package table, the relevant page under `docs/`, and the on-device operator guide (`GUIDE_MD` in `kestrel_pi/userguide.py`) where it applies. - [x] Commit messages are short and imperative. ## Release impact - [ ] **App-layer-safe** — changes only files the in-place update engine carries: the `kestrel_pi` package, `plugins/*.py`, systemd units, the journald drop-in, a lib script already in the engine's `LIB_SCRIPTS`, or the CLI. - [x] **Reflash-class** — touches a build input the engine does not carry onto a running device: apt or pip packages, boot options / `config.txt` / `cmdline`, kernel modules, the base image or partition size, `builder/config.json`, `builder/config.yml`, the `Makefile`, `.forgejo/workflows/`, a shipped config default (`config.toml` / `default.conf`), or a brand-new lib script. ## Notes for review - **Reflash-class** because the shipped `config.toml` changes: only a reflash puts the `[plugins.eink-ws27]` table on a device. An in-place update would delete `eink.py` (the engine removes plugins a release no longer ships) and leave a device that had `eink` on without its face, so this must not go out app-layer. `update_kind=auto` won't catch it (no `config.yml`/`config.json`/Makefile/workflow change), so the release carrying this needs `update_kind=reflash`, as planned for 1.0.11-beta.1. - Part of the 1.0.11 reflash batch, with the AngryOxide v0.9.4 pin (#111). - Lint is clean and 1441 tests pass locally. `test_gps_serial_reader_recovers_from_a_stalled_link` fails on my machine on a clean `origin/main` checkout too, and passes in CI, so it's unrelated to this change. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Remove the deprecated eink plugin
All checks were successful
Test / test (push) Successful in 22s
Lint / lint (push) Successful in 32s
Lint / lint (pull_request) Successful in 32s
Test / test (pull_request) Successful in 20s
a677915d85
eink-ws27 replaced it in 1.0.10 as the same code under the HAT's name.
Remove eink.py and its three driver helpers, rename the shipped
[plugins.eink] table to [plugins.eink-ws27], drop eink-ws27's deprecation
hooks, move the e-ink tests onto eink-ws27, and update the docs, the
on-device guide, the diagnostics script's default and the plugin counts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
aluminum-ice deleted branch remove/eink 2026-10-31 04:16:47 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aluminum-ice/kestrel!112
No description provided.