Count an up tether with unknown state in beta check 3.8 #137
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "beta-check-tether-state"
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
Fixes beta-check item 3.8, which skipped on a device whose tether was working. A Bluetooth PAN interface (
bnep0) has no carrier state, so itsoperstatereadsunknowneven while the tether is up, and the check accepted onlyup. It now also countsunknownas up when the interface'sIFF_UPflag is set (read from/sys/class/net/bnep0/flags; still read-only, noipcall). The census plugin itself isn't affected: it gates on the daemon's active paths, not onoperstate.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
up→ up;unknownwithIFF_UP→ up;unknownwithout it → unknown;down→ down; missing → absent), the config harness (11 PASS, and 2 FAILs against a weakenedplugins-ctlcopy), and the redactor against an invented report (MACs, IPs, coordinates, a capture file name with a space, the login user and a fingerprint all masked). No pytest file covers this script, somake testis unchanged by it.🤖 Generated with Claude Code