-
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
[Python] Eliminate ZCLSubscribeAttribute #33337
[Python] Eliminate ZCLSubscribeAttribute #33337
Conversation
Use asyncio Event and wait_for to wait for the change and continue immediately when received.
PR #33337: Size comparison from b791b75 to c049dcd Full report (14 builds for cc13x4_26x4, cc32xx, mbed, nrfconnect, qpg, stm32)
|
The current test implementation starves the asyncio event loop by synchronously waiting for the threading.Condition. This prevents making the SubscriptionTransaction fully leveraging the async paradigm. It probably would be possible to mix asyncio.sleep() and threading, but instead embrace the async pradigm for this test.
c049dcd
to
b046a7b
Compare
PR #33337: Size comparison from 242accd to 61c21d5 Decreases (2 builds for efr32)
Full report (77 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink)
|
PR #33337: Size comparison from 242accd to a4c38a9 Decreases (2 builds for efr32)
Full report (77 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink)
|
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.
I would like to take another look after CI Cirque is passing, so just ping me when that is passing
479b23a
to
26c1270
Compare
PR #33337: Size comparison from 8edcecd to 26c1270 Decreases (2 builds for efr32)
Full report (80 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink)
|
26c1270
to
887a8e7
Compare
PR #33337: Size comparison from 1dd9495 to 887a8e7 Decreases (2 builds for efr32)
Full report (80 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink)
|
The current test implementation starves the asyncio event loop by synchronously waiting for the threading.Condition. This prevents making the SubscriptionTransaction fully leveraging the async paradigm. It probably would be possible to mix asyncio.sleep() and threading, but instead embrace the async pradigm for this test.
Eliminate use of ZCLSubscribeAttribute and embrace asyncio.
Eliminate use of ZCLSubscribeAttribute and embrace asyncio.
Use ReadAttribute with asyncio in subscription_resumption_timeout_test as well.
887a8e7
to
8d4914f
Compare
PR #33337: Size comparison from 0d67568 to 8d4914f Decreases (2 builds for efr32)
Full report (80 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink)
|
This eliminates use of ZCLSubscribeAttribute and improves some tests using asyncio.