Skip to content

resource/remote: handle unknown resource - #1959

Open
Svendsen991 wants to merge 1 commit into
labgrid-project:masterfrom
Svendsen991:remote/invalid-resource
Open

resource/remote: handle unknown resource#1959
Svendsen991 wants to merge 1 commit into
labgrid-project:masterfrom
Svendsen991:remote/invalid-resource

Conversation

@Svendsen991

Copy link
Copy Markdown

Description

Instead of failing to create a RemotePlaceManager print out a warning on unknown remote resources and continue.

This will allow use of standard tools like labgrid-client's console together with a remote place where some of its resources are unknown/custom.

This will add value for projects using not yet upstreamed resources or if they're simply too custom for upstream. So useful labgrid-client tools can still be used without any workarounds.

Current workaround is importing labgrid client main in custom project where the custom resources are registered and create custom command to run labgrid-client.

Checklist

  • PR has been tested locally

It was tested by adding an unknown resource to an exporter and adding it to a place with a serial connection like

# Exporter yaml
DUT-X:
  linux:
    cls: 'USBSerialPort'
    match:
      ID_PATH: 'X'
    speed: 115200
  wifi:
    cls: 'WifiService'
    address: 'x'
    username: 'root'
    ssid: 'ssidX'

Instead of failing to create a RemotePlaceManager print out a warning on
unknown remote resources and continue.

This will allow use of standard tools like labgrid-client's console
together with a remote place where some of its resources are
unknown/custom.

Signed-off-by: Emil Svendsen <emas@bang-olufsen.dk>
@Svendsen991
Svendsen991 force-pushed the remote/invalid-resource branch from 6d0df0a to a98a801 Compare August 21, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant