-
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
[Build] Darwin test failed -[MTRXPCListenerSampleTests test900_SubscribeClusterStateCache] #27507
Comments
Failing bit:
This looks like a racy test to me. It sends an "on" command and then once we get the response to that command it fulfills the expectation we are waiting on. Once that happens we try to read the cached data. In this case you can see in the log that this read is happening interleaved with (on a different thread) us getting the actual data report that would update said cached data. This is actually quite easy to reproduce if I change the min-interval for the subscription to 10. |
I guess the test has a sleep(1) to try to make it pass...but that's still racy. |
And it looks like the XPC subscribe API does not report attribute bits, so there is no way to wait until we actually get the report. |
We used a 1s min-interval and a 1s sleep to wait for reports. Those could race very easily. Better to use a sleep longer than the min-interval. Fixes project-chip#27507
We used a 1s min-interval and a 1s sleep to wait for reports. Those could race very easily. Better to use a sleep longer than the min-interval. Fixes #27507
Build issue(s)
https://github.com/project-chip/connectedhomeip/actions/runs/5385718043/jobs/9775015395
Platform
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: