Show the device's release version on the dashboard #123
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/show-release-version"
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
Makes the dashboard show the device's release version. Before, it showed "plugin host · v0.3.0" on every release.
The header and
/status.json'sversioncame fromkestrel_pi.__version__, a hard-coded"0.3.0"that nothing updates. (The Release workflow syncspyproject.tomlto the release for the image and PyPI, but not that string, and an in-place update reinstalls the package from the tagged commit, wherepyproject.tomlstill holds its dev value.)kestrel_pi.device_version()reads/etc/kestrel/version(VERSION_FILE, patchable as theeink-ws27info screen's already is). The image build stamps that file and every in-place update rewrites it. It's a read-only device fact, in core likewebtls.fingerprint()./status.jsonversionis that release version (falling back to the package version off a device), with a newpackage_versionbeside it. The start-up log line names both.v1.0.11-beta.2for a release anddev build (master)for a build with no release version.kestrel_pi.__version__: now comes from the installed package's metadata (importlib.metadata), so it's the release on an imaged device, with0.0.0+devfor a source checkout that was never installed.VERSION_FILEat the tag it renders, so guide screenshots show the documented release. Older releases withoutVERSION_FILErender as before.device_version(), the status fields, and the header for a release and a dev build.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
version: the dashboard header, and the beta-check and diagnostics scripts, which only print it. Theupdatesplugin reads/etc/kestrel/versionitself, unchanged.make lintis clean; 1460 tests pass (the GPS stalled-link test fails only on my machine, onmaintoo); the ghost-guide tests pass.🤖 Generated with Claude Code