-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop-off fabric sensitive event when fabric is undefined #21942
Drop-off fabric sensitive event when fabric is undefined #21942
Conversation
PR #21942: Size comparison from 0691bbc to 66a8249 Increases (15 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, mbed, nrfconnect, p6, telink)
Decreases (3 builds for cc13x2_26x2, cyw30739)
Full report (30 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, mbed, nrfconnect, p6, telink)
|
66a8249
to
95577c2
Compare
PR #21942: Size comparison from a3cb409 to 95577c2 Increases (16 builds for bl602, cc13x2_26x2, cyw30739, esp32, linux, mbed, nrfconnect, p6, telink)
Decreases (4 builds for cc13x2_26x2, cyw30739)
Full report (32 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
4f89fce
to
00375e0
Compare
PR #21942: Size comparison from 866e7ee to 00375e0 Increases (27 builds for bl602, cc13x2_26x2, cyw30739, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
Decreases (2 builds for cc13x2_26x2)
Full report (43 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
@@ -72,6 +72,8 @@ CHIP_ERROR LogEvent(const T & aEventData, EndpointId aEndpoint, EventNumber & aE | |||
eventOptions.mPath = path; | |||
eventOptions.mPriority = aEventData.GetPriorityLevel(); | |||
eventOptions.mFabricIndex = aEventData.GetFabricIndex(); | |||
// this skips logging the event if it's fabric-scoped but no fabric association exists yet. | |||
VerifyOrReturnError(eventOptions.mFabricIndex != kUndefinedFabricIndex, CHIP_NO_ERROR); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we not returning an error here?
await devCtrl.SendCommand(nodeid=NODE_ID, endpoint=1, payload=Clusters.TestCluster.Commands.TestEmitTestFabricScopedEventRequest(arg1=0)) | ||
res = await devCtrl.ReadEvent(nodeid=NODE_ID, events=[ | ||
(1, Clusters.TestCluster.Events.TestEvent, 0), | ||
]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this actually testing? If it isn't testing anything meaningful, we shouldn't have it here.
Problem
#14366
Change overview
Drop-off fabric sensitive event when fabric is undefined
Testing
Add python testing for it