training_extensions
training_extensions copied to clipboard
Sources and sinks validation
Objective
Detect issues with the configuration of sources and sinks in the inference pipeline and report them to the client in a user-friendly way.
Motivation
Currently, sources and sinks can be configured without much validation being performed on the server side. Misconfigurations are frequent, and the application doesn't provide valuable feedback to help the users resolve the issues; it simply fails. Common problems include (but not limited to):
- USB camera can't be opened due to missing drivers or invalid settings
- IP camera can't be opened because the address is unreachable (due to network configuration or other reasons)
- Video / folder path does not exist
- MQTT broker is not available
- Webhook address is not reachable
Requirements
- When the user configures a source or a sink in the inference pipeline, the server should validate the configuration and possibly assess the status of the underlying physical resource, as reasonably practical.
- If the configuration is invalid or the resource is in an unhealthy state at the time it is configured or enabled in the pipeline, the application should display an informative error message to the user.
Link to UX design: https://www.figma.com/design/75tPOrtAyA5zUAKaDF2GKl/Geti?node-id=4629-8240&p=f&t=mR5dHXOHadPwp1k4-0
UX: https://github.com/open-edge-platform/geti/pull/6899#issuecomment-4786520636