Clarify connection parsing errors¶
uid: ISS-0008 status: BACKLOG priority: medium owner_role: REWORK estimate: TBD dependencies: [] risk: medium milestone: backlog
Category¶
REWORK
Evidence¶
src/filare/flows/build_harness.py:203raisesException(f\"{inp} - Found more than one separator ({separator})\")without pointing to the specific connection entry or designator.build_harness.py:215raisesException(f\"{inp} - Found unexpected characters, e.g. more than one separator\")with no indication of which connection set failed.build_harness.py:237raisesValueError(\"No connection count found in connection set\")without quoting the offending YAML snippet.- Template checks (
build_harness.py:379) emitException(f\"{template} is an unknown template/designator\")but do not list the available templates or the connection index.
Suggested Next Steps¶
- Include connection index and the offending connection entry in errors, e.g.,
connections[2]: entry 'X1:1-2-3' has multiple separators '-'. - Replace bare
ExceptionwithValueErrorand ensure messages are single-line, actionable strings. - For unknown templates, suggest valid options:
Unknown template/designator 'ABC' (known: X1, W1, templates: ['CONN_A', 'CABLE_A']). - Add a regression test that feeds malformed
connectionsintobuild_harness_from_filesand asserts the improved message content (do not change parsing behavior).