[BUG] TC-DLOG-2.1 skips its BDX steps on MCORE.BDX.Initiator instead of checking the DUT against it

Author: raul-marquez-csaCreated Sep 28, 2026Updated Sep 28, 2026
Labelsbug

Reproduction steps

TC_DLOG_2_1.py reads MCORE.BDX.Initiator and uses it to skip steps rather than to judge the DUT's answer.

  1. Start the Linux all-clusters-app with an end user support log larger than 1024 bytes, for example --end_user_support_log /tmp/eusl.txt with 2048 random bytes in the file. The app initiates BDX for such a log.
  2. Run TC-DLOG-2.1 with a PICS file where MCORE.BDX.Initiator=0.

Result: steps 2 to 7 and 13 are skipped, step 10 fails because the DUT initiated BDX, and nothing else looks at the BDX path. Run the same with MCORE.BDX.Initiator=1 against a device that never initiates BDX: every BDX step accepts the inline answer, so a device whose PICS overstates it passes.

Expected: every BDX request is sent regardless of the PICS, and the PICS sets what the DUT must do. Unset, any SendInit is a failure. Set, a SendInit is required when the logs cannot fit in one response, which the test knows for EndUserSupport because it writes that log itself and the test plan makes it a pre-condition for a real DUT.

What the specification says

Diagnostic Logs cluster, RetrieveLogsRequest, Effect on Receipt: with RequestedProtocol BDX the Node SHOULD initiate a BDX transfer; when it does not support BDX, or cannot establish a session, it SHALL answer with as much of the logs as fit and Status Exhausted; when the whole log fits in the response it SHALL also answer Exhausted and SHALL NOT initiate BDX. Nothing in the cluster tells a client whether BDX is supported for logs, so a test can only send the request and hold the DUT to its PICS.

MCORE.BDX.Initiator is also the wrong shape for this cluster on its own: diagnostic logs need the DUT as initiator and sender, while an OTA requestor is an initiator and receiver, so a device that only does OTA sets the PICS and fails steps 2 to 7.

What the test does today

Eight of the fourteen steps are wrapped in pics_guard(supports_bdx) or pics_guard(not supports_bdx). The helpers already handle both outcomes of a request, a SendInit or an inline response, so the gate only removes coverage.

Bug prevalence

Every run of TC-DLOG-2.1 on a DUT whose PICS does not match its behaviour.

GitHub hash of the SDK that was being used

4231e67a092 (branch tc-dlog-2.1-automation, where the test lives)

Platform

core, python

Platform Version(s)

No response

Anything else?

No response

Source: project-chip/connectedhomeip