Open mrjerryjohns opened 2 years ago
FYI @vivien-apple @woody-apple @bzbarsky-apple
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Think the problem is still happening...
Yes, https://github.com/project-chip/connectedhomeip/pull/28257 is not merged yet.
Problem
CI Tests have been failing a lot more on Darwin recently. One example of that is here.
In that test, there is CPU starvation/context switching happening that's exposing some racy test logic.
That test in particular does a few things:
OperationalStatus
value immediately to 0x21.This time jump of 10s happens right while it's parsing the data.
StopMotion
on the target. That results in a report being generated immediately containing a value of 0 for the status back to the client, because on the server, the minimum interval requirement of 4s had already been satisfied.This test only passes when there is no CPU starvation happening, because it relies on the min interval of 4s holding off the report generation till we've gotten to the right test stage. That is really racy.
Proposal
waitForReport
YAML command should really be checking for the report to have been received right from the previous call to subscribeAttribute, and not when the that test step is executed.