[CERT-TEST-FAILURE] [TC_AVANALY_2_5] Analysis streams are supposed to be established/activated against a camera node id

Author: suyambulingamrmCreated Sep 29, 2026Updated Sep 29, 2026
Labelsbugcert blockerneeds triage

Feature Area

Other

Test Case

TC_AVANALY_2_5

Reproduction steps

  1. Conflating the Analysis Node (DUT) with the Camera Node
  • Spec defines the standalone AV Analysis Node device type (0x0149). On this device type:

    • AV Analysis: Server (Mandatory)
    • Camera AV Stream Management: Client (Mandatory)
    • WebRTC Transport Provider: Client (Mandatory)
    • Push AV Stream Transport: Client (Mandatory)
    • Per spec:

      "This feature indicates that the device that performs the detection and identification of ambient contexts is a separate device from the camera that is the source of any analyzed video or audio stream..." "The Analysis Node SHALL NOT have an instance of the PushAVStreamTransportCluster [Server]."

    • EstablishAnalysisStream Command (Effect on Receipt):
  • Issue in TC_AVANALY_2_5.py:

    • In Step 5, Step 22, and Step 23:
   1     node_id = self.dut_node_id
   2     resp = await self.send_establish_analysis_stream_cmd(endpoint, node_id=node_id)
  • The test script supplies self.dut_node_id as the camera's Node ID. It assumes the DUT is both the Analysis Node and the Camera.
  • While this works in CI because the reference application (camera-app --camera-remote-analysis) is a simulated loopback mockup where both clusters coexist on the same node, it will fail against a real, specification-compliant AV Analysis Node device. A real Analysis Node does not host a CameraAVStreamManagement server on itself and cannot allocate a video stream to itself.

  1. Transport Endpoint Discovery Queries the DUT Instead of the Camera
    • What the Specification Mandates:

      • ActivateAnalysisStream:
        • WebRTCEndpointID: "This field SHALL represent the Endpoint Number on the previously provided NodeID [the camera] in which the WebRTCTransportProviderCluster cluster is located."
        • PushAVEndpointID: "This field SHALL represent the Endpoint Number on the previously provided NodeID [the camera] in which the PushAVStreamTransportCluster cluster is located."
      • On an AV Analysis Node, WebRTC and PushAV transports are Client clusters, not Server clusters.
    • Issue in TC_AVANALY_2_5.py:

      • Lines 217–236 scan the DUT’s descriptor server list:
    1     parts_list = await self.read_single_attribute_check_success(
    2         endpoint=0, cluster=Clusters.Descriptor, attribute=Clusters.Descriptor.Attributes.PartsList
    3     )
    4     all_endpoints = [0] + list(parts_list)
    5     for ep in all_endpoints:
    6         server_list = await self.read_single_attribute_check_success(
    7             endpoint=ep, cluster=Clusters.Descriptor, attribute=Clusters.Descriptor.Attributes.ServerList
    8         )
    9         has_webrtc = Clusters.WebRTCTransportProvider.id in server_list
   10         has_pushav = Clusters.PushAvStreamTransport.id in server_list
  • By omitting node_id, this query defaults to self.dut_node_id.
  • On a real Analysis Node, neither WebRTCTransportProvider nor PushAVStreamTransport will ever appear in ServerList on any endpoint of the DUT.
    • When neither is found, the test falls back to:
   1     if webrtc_endpoint is None and pushav_endpoint is None:
   2         webrtc_endpoint = endpoint  # e.g., endpoint 1 (AV Analysis endpoint)
  • Passing webrtc_endpoint = endpoint to ActivateAnalysisStream will cause the DUT to initiate WebRTC flow to look for WebRTCTransportProvider on endpoint 1 of the DUT itself.

Bug prevalence

Always

GitHub hash of the SDK that was being used

99a81bd32986c5292b0b1c9245c8e247c2ad717d

Platform

core

Anything else?

No response

Source: project-chip/connectedhomeip