Commit Graph

12 Commits

Author SHA1 Message Date
Robert McMahon a7759317f1 docs: refresh pytest examples, SSH notes, and default.ini paths
- README: whole-suite example (27 passed, 1 skipped), single-test id example,
  python3 -m pytest throughout, remote power -v transcript, clarify
  FIWI_VERIFY_POWER_INI skip behavior, fix commands bootstrap wording.
- install.md: table step 5/6 wording (no section symbols), full-suite note,
  python3 -m pytest in verify steps.
- node-control-asyncio-design.md: FIWI_SSH_CONFIG / conftest note, python3
  in examples, replace obsolete --setup-remote checklist wording.
- power-control-and-inventory.md: default.ini in verify transcript and
  live pytest INI; FIWI_SSH_CONFIG first for ssh_config.d noise; python3
  pytest commands; checklist expected remote test result.

Made-with: Cursor
2026-04-10 18:51:17 -07:00
Robert McMahon 14ba9783fe fix(ssh): FIWI_SSH_CONFIG -F for tests; skip remote tests without pubkey auth
- node_control: honor FIWI_SSH_CONFIG (insert -F after ssh) so clients skip
  broken /etc/ssh/ssh_config.d drop-ins; use same argv for clean/pkill helpers.
- tests/conftest.py: setdefault FIWI_SSH_CONFIG to tests/fixtures/ssh_config_minimal.
- Fixture: writable UserKnownHostsFile, BatchMode, accept-new.
- test_remote_power_dependencies: skipUnless passwordless root@FIWI_REMOTE_IP;
  setdefault fixture path for unittest runs; FIWI_FORCE_REMOTE_TESTS to always run.
- docs/install.md: document FIWI_SSH_CONFIG for Fedora-style ssh_config.d errors.

Made-with: Cursor
2026-04-10 18:45:18 -07:00
Robert McMahon 4ad0b4b249 refactor: move lab discovery to fiwicontrol.lab; remote setup to commands
- Add fiwicontrol.lab package (discovery, inventory_config, inventory_verify)
  with default lab INI configs/default.ini (FIWI_LAB_INI override).
- Move remote_setup to fiwicontrol.commands; add python -m fiwicontrol.commands.
- Power CLI keeps --discovery-json, --list-power-devices, --verify-inventory;
  add -c/--config for inventory paths; drop --setup-remote (use commands module).
- Re-export lab symbols from fiwicontrol.power for compatibility.
- Update docs, scripts, and tests.

Made-with: Cursor
2026-04-10 18:39:43 -07:00
Robert McMahon 72048e8a62 docs: real verify-inventory OK transcript and ssh_config.d fix hint
Made-with: Cursor
2026-04-10 18:29:22 -07:00
Robert McMahon c50aa5dced docs: verify-inventory success example; align clubhouse.ini with Pi discovery
- Document successful vs MISMATCH output, exit codes, ssh_config stderr pitfall
- Pi inventory acroname multiset matches documented discovery (2x USBHub3p:8 + USBHub2x4:4)
- Update test_load_clubhouse_ini expectations

Made-with: Cursor
2026-04-10 18:27:58 -07:00
Robert McMahon cf166350f5 docs: example discovery JSON for Pi (Acroname + sysfs Monsoon)
Made-with: Cursor
2026-04-10 18:26:19 -07:00
Robert McMahon 3244f68d67 Monsoon discovery via Linux sysfs; lab INI docs and --list-power-devices
- discovery: count Monsoon HVPM from /sys/bus/usb/devices when pyserial has no TTY
  (matches lsusb 2ab9:0001; official stack uses libusb/HID not ttyACM)
- power CLI: --list-power-devices INI; inventory_verify dump helpers
- docs: lab INI reference, verification checklist, Monsoon note; README/install pointers
- tests: sysfs monsoon unit test, dump_inventory local-only test

Made-with: Cursor
2026-04-10 18:22:33 -07:00
Robert McMahon c3df0145ea Document bring-up; fix SSH as root; remote power setup tweaks
- docs/install.md: add Bring up systems checklist; generic clone URL; keep remote/PEP668 notes
- README and power design doc: point new operators at the checklist
- node_control: always use root@host for sshtype ssh (not bare host / local username)
- power: FIWI_REMOTE_PYTHON and --remote-python for setup-remote and discovery; tests honor env
- remote_setup: apply pip flags to both pip lines; optional remote python in script

Made-with: Cursor
2026-04-10 17:33:31 -07:00
Robert McMahon be9cc4c7b5 major work 2026-04-10 17:14:15 -07:00
Robert McMahon e5b5010aaa Rename remote_nodes module to node_control
- Move remote_nodes.py to node_control.py; update commands __init__
- Rename design doc and test file; refresh README references

Made-with: Cursor
2026-04-10 16:26:36 -07:00
Robert McMahon 1f3803c75a Use orchestrator package layout; docs and tests for remote_nodes
- Move src/fiwicontrol to src/orchestrator; imports orchestrator.*
- Remove REFACTOR-REVIEW.md; expand Running tests in design doc
- README: distribution fiwicontrol, link to test instructions

Made-with: Cursor
2026-04-10 11:37:34 -07:00
Robert McMahon 5874253359 Initial import: fiwicontrol package (commands + power scaffold)
Made-with: Cursor
2026-04-10 11:36:23 -07:00