Stop sharing a GPS fix once it is lost or old; run the whole test suite #174
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "gps-stale-fix"
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
GPS: the
gpsplugin'spositionservice now returns nothing once the receiver reports no fix, or once no fix has arrived for 30 s (FIX_MAX_AGE_S, the same span as the card's "no signal"). Before, it kept returning the last fix, so a handshake captured after the fix was lost, or after the receiver was unplugged, was tagged with an earlier position, andwigleand the e-ink face read it as current. They now see no fix, as before a first lock.Tests:
test_main_ignores_sighupcallsdaemon.main(), which since40a3e89ends withos._exit(0). pytest stopped at that test with status 0, somake testand the Test workflow ran only the first quarter or so of the suite. The test now stubs the exit and the logging shutdown. One test that this had hidden,test_gps_serial_reader_recovers_from_a_stalled_link, still faked the built-inopen()after the reader moved toos.open(); it now fakesos.open/os.close.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, the Release workflow (.forgejo/workflows/main.yml), a shipped config default (config.toml/default.conf), or a brand-new lib script.Notes for review
make testnow runs the whole suite: 1693 passed, 11 skipped, in about 75 s. The Test workflow's run should take about that long too, instead of a few seconds of tests; that's the sign it's running everything.docs/user-guide/gps-setup.mdsay that captures are tagged only with a current fix.🤖 Generated with Claude Code