AB transport: pin libplctag width-mismatch health/warn-once and DefaultTransport registration with tests #585

Closed
opened 2026-10-07 21:51:03 -04:00 by dohertj2 · 1 comment
Owner

Found by the final re-review of the native AB transport work (branch feat/native-ab-transport). Minor test gaps:

  • No test pins the libplctag width-mismatch path's new behaviour (BadTypeMismatch, handle kept, no Degraded, warn once).
  • Deleting the Drivers:AbCip:DefaultTransport registration in Program.cs would silently ignore an operator's pin; no test would catch it — add a composition-root test.
  • Note: a driver left Degraded after an outage whose only remaining tags mismatch gets one extra watchdog reconnect after 90 s before settling (benign).
Found by the final re-review of the native AB transport work (branch `feat/native-ab-transport`). Minor test gaps: - [ ] No test pins the libplctag width-mismatch path's new behaviour (BadTypeMismatch, handle kept, no Degraded, warn once). - [ ] Deleting the `Drivers:AbCip:DefaultTransport` registration in `Program.cs` would silently ignore an operator's pin; no test would catch it — add a composition-root test. - [ ] Note: a driver left Degraded after an outage whose only remaining tags mismatch gets one extra watchdog reconnect after 90 s before settling (benign).
dohertj2 added the driver/abcip label 2026-10-07 21:51:03 -04:00
Author
Owner

Fixed: width-mismatch test (BadTypeMismatch, handle kept, no Degraded, warn once); AddAbCipDriverDefaults extracted and a composition-root test fails if Program.cs stops calling it; benign Degraded note documented. (merge 29cd25de on master, pushed 2026-10-08)

Fixed: width-mismatch test (BadTypeMismatch, handle kept, no Degraded, warn once); AddAbCipDriverDefaults extracted and a composition-root test fails if Program.cs stops calling it; benign Degraded note documented. (merge `29cd25de` on master, pushed 2026-10-08)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/lmxopcua#585