Pin the device's pip packages and drop pytest from the image #115
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "build/pin-device-pip"
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 image install a known set of Python packages instead of whatever is newest on build day, and stops shipping
pyteston the device.pip.local.constraints(inbuilder/config.ymlvars:) holds an exact version for each of the 35 packagespip.local.installbrings in. A new task writes them to/home/pi/.venv/kestrel-constraints.txt, and the background venv install passes it with-c. The versions are a 1.0.10 device'spip freeze --local, so 1.0.11 installs the set that has already run on hardware.torch==2.10.0stays pinned in the install list as before.pytestis dropped frompip.local.install, along with what only it needed (iniconfig,pluggy,packaging,Pygments). Nothing shipped imports them; the tests run on the build host and in CI.testcomment.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
make lintpasses and the constraints render one per line.--dry-runin a throwaway venv): it would install exactly the 35 pinned packages at their pinned versions. The 1.0.11-beta.1 build is the first real install.copytask adds about 3 s under QEMU; it runs before the background install, so nothing waits on the venv in between.pip.local.constraints, and check the set still resolves for Python 3.11 on aarch64 (CLAUDE.md says how).🤖 Generated with Claude Code