Skip to content
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

Switch yaml tests to use ClusterBase::WriteAttribute for attribute write. #11460

Merged

Conversation

bzbarsky-apple
Copy link
Contributor

The changes to test_cluster.zapt are the actual change we care about.

The change to WriteClient.h is to fix a pre-existing bug: it calls
Encode() without including all the headers that declare various
signatures of Encode().

The change to ClusterTestGeneration.js fixes a bug with the signature
of the success callback for writes: it had an extra arg with the type
of the attribute, whereas it should have no arg at all.

The change to CHIPClusters-src.zapt is to instantiate WriteAttribute
for all the non-writable attributes when compiling tests, because we
actually issue writes for those non-writable attributes (and test that
they fail).

Problem

We are using CHIPClusters APIs that don't support our full range of types.

Change overview

See above.

Testing

Read generated code to make sure it made sense. Ran tests job locally for TestClusterComplexTypes and it passed.

@github-actions
Copy link

github-actions bot commented Nov 5, 2021

PR #11460: Size comparison from 39ff9bf to 645f948

Increases above 0.2%:

platform target config section 39ff9bf 645f948 change % change
linux chip-tool debug (read only) 4508277 4913421 405144 9.0
.rodata 231824 232784 960 0.4
.text 4007989 4412053 404064 10.1
Increases (1 build for linux)
platform target config section 39ff9bf 645f948 change % change
linux chip-tool debug (read only) 4508277 4913421 405144 9.0
(read/write) 125864 125928 64 0.1
.data.rel.ro 100096 100144 48 0.0
.rodata 231824 232784 960 0.4
.text 4007989 4412053 404064 10.1
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 39ff9bf 645f948 change % change
efr32 lighting-app BRD4161A (read only) 744756 744756 0 0.0
(read/write) 115704 115704 0 0.0
.bss 113932 113932 0 0.0
.data 1772 1772 0 0.0
.text 744748 744748 0 0.0
BRD4161A+rpc (read only) 732304 732304 0 0.0
(read/write) 132324 132324 0 0.0
.bss 130436 130436 0 0.0
.data 1888 1888 0 0.0
.text 732296 732296 0 0.0
lock-app BRD4161A (read only) 724056 724056 0 0.0
(read/write) 113524 113524 0 0.0
.bss 111788 111788 0 0.0
.data 1732 1732 0 0.0
.text 724048 724048 0 0.0
window-app BRD4161A (read only) 724952 724952 0 0.0
(read/write) 113844 113844 0 0.0
.bss 112108 112108 0 0.0
.data 1736 1736 0 0.0
.text 724944 724944 0 0.0
esp32 all-clusters-app c3devkit (read only) 882498 882498 0 0.0
(read/write) 1305960 1305960 0 0.0
.dram0.bss 57576 57576 0 0.0
.dram0.data 16472 16472 0 0.0
.flash.rodata 198664 198664 0 0.0
.flash.text 882498 882498 0 0.0
.iram0.text 57624 57624 0 0.0
m5stack (read only) 913375 913375 0 0.0
(read/write) 423268 423268 0 0.0
.dram0.bss 60088 60088 0 0.0
.dram0.data 32108 32108 0 0.0
.flash.rodata 204908 204908 0 0.0
.flash.text 913375 913375 0 0.0
.iram0.text 125115 125115 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 699136 699136 0 0.0
.bss 77784 77784 0 0.0
.data 1904 1904 0 0.0
.text 613648 613648 0 0.0
lock-app k32w061+debug (read/write) 591956 591956 0 0.0
.bss 68316 68316 0 0.0
.data 1872 1872 0 0.0
.text 515968 515968 0 0.0
shell k32w061+debug (read/write) 657448 657448 0 0.0
.bss 78952 78952 0 0.0
.data 1840 1840 0 0.0
.text 570856 570856 0 0.0
linux all-clusters-app debug (read only) 1702737 1702737 0 0.0
(read/write) 118656 118656 0 0.0
.bss 50000 50000 0 0.0
.data 1042 1042 0 0.0
.data.rel.ro 62336 62336 0 0.0
.dynamic 592 592 0 0.0
.got 4088 4088 0 0.0
.init 27 27 0 0.0
.init_array 552 552 0 0.0
.rodata 139157 139157 0 0.0
.text 1430114 1430114 0 0.0
bridge-app debug+rpc (read only) 1290757 1290757 0 0.0
(read/write) 69232 69232 0 0.0
.bss 34928 34928 0 0.0
.data 1568 1568 0 0.0
.data.rel.ro 27768 27768 0 0.0
.dynamic 592 592 0 0.0
.got 3952 3952 0 0.0
.init 27 27 0 0.0
.init_array 408 408 0 0.0
.rodata 110948 110948 0 0.0
.text 1083893 1083893 0 0.0
chip-tool debug (read only) 4508277 4913421 405144 9.0
(read/write) 125864 125928 64 0.1
.bss 18128 18128 0 0.0
.data 2224 2224 0 0.0
.data.rel.ro 100096 100144 48 0.0
.dynamic 592 592 0 0.0
.got 4368 4368 0 0.0
.init 27 27 0 0.0
.init_array 432 432 0 0.0
.rodata 231824 232784 960 0.4
.text 4007989 4412053 404064 10.1
lighting-app debug+rpc (read only) 1551753 1551753 0 0.0
(read/write) 102200 102200 0 0.0
.bss 40568 40568 0 0.0
.data 1170 1170 0 0.0
.data.rel.ro 55168 55168 0 0.0
.dynamic 608 608 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 536 536 0 0.0
.rodata 129585 129585 0 0.0
.text 1288562 1288562 0 0.0
ota-provider-app debug (read only) 1249993 1249993 0 0.0
(read/write) 67400 67400 0 0.0
.bss 36992 36992 0 0.0
.data 752 752 0 0.0
.data.rel.ro 24568 24568 0 0.0
.dynamic 592 592 0 0.0
.got 4016 4016 0 0.0
.init 27 27 0 0.0
.init_array 448 448 0 0.0
.rodata 112168 112168 0 0.0
.text 1041698 1041698 0 0.0
ota-requestor-app debug (read only) 1328321 1328321 0 0.0
(read/write) 76656 76656 0 0.0
.bss 45120 45120 0 0.0
.data 816 816 0 0.0
.data.rel.ro 25576 25576 0 0.0
.dynamic 592 592 0 0.0
.got 3992 3992 0 0.0
.init 27 27 0 0.0
.init_array 520 520 0 0.0
.rodata 124176 124176 0 0.0
.text 1106066 1106066 0 0.0
shell debug (read only) 786921 786921 0 0.0
(read/write) 57608 57608 0 0.0
.bss 16040 16040 0 0.0
.data 242 242 0 0.0
.data.rel.ro 36816 36816 0 0.0
.dynamic 592 592 0 0.0
.got 3528 3528 0 0.0
.init 27 27 0 0.0
.init_array 344 344 0 0.0
.rodata 77903 77903 0 0.0
.text 607506 607506 0 0.0
tv-app debug (read only) 1815393 1815393 0 0.0
(read/write) 289824 289824 0 0.0
.bss 222640 222640 0 0.0
.data 2704 2704 0 0.0
.data.rel.ro 58824 58824 0 0.0
.dynamic 592 592 0 0.0
.got 4408 4408 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 155208 155208 0 0.0
.text 1517874 1517874 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2291344 2291344 0 0.0
.bss 178892 178892 0 0.0
.data 5224 5224 0 0.0
.heap 852328 852328 0 0.0
.text 1253944 1253944 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2271504 2271504 0 0.0
.bss 171948 171948 0 0.0
.data 5568 5568 0 0.0
.heap 858928 858928 0 0.0
.text 1234104 1234104 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2249160 2249160 0 0.0
.bss 170844 170844 0 0.0
.data 5560 5560 0 0.0
.heap 860040 860040 0 0.0
.text 1211760 1211760 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139744 1139744 0 0.0
.bss 11752 11752 0 0.0
.data 4368 4368 0 0.0
.heap 1020328 1020328 0 0.0
.text 103128 103128 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2048400 2048400 0 0.0
.bss 156224 156224 0 0.0
.data 4960 4960 0 0.0
.heap 875264 875264 0 0.0
.text 1011000 1011000 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 861223 861223 0 0.0
bss 111256 111256 0 0.0
rodata 96872 96872 0 0.0
text 577480 577480 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 823567 823567 0 0.0
bss 107608 107608 0 0.0
rodata 88048 88048 0 0.0
text 551628 551628 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 786246 786246 0 0.0
bss 112632 112632 0 0.0
rodata 92128 92128 0 0.0
text 506936 506936 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 837927 837927 0 0.0
bss 110292 110292 0 0.0
rodata 93240 93240 0 0.0
text 558960 558960 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 763226 763226 0 0.0
bss 111700 111700 0 0.0
rodata 88548 88548 0 0.0
text 488508 488508 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 497323 497323 0 0.0
bss 51824 51824 0 0.0
rodata 45776 45776 0 0.0
text 339436 339436 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 844023 844023 0 0.0
bss 110428 110428 0 0.0
rodata 94952 94952 0 0.0
text 563124 563124 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 837783 837783 0 0.0
bss 110328 110328 0 0.0
rodata 93240 93240 0 0.0
text 558696 558696 0 0.0
shell nrf52840dk_nrf52840 (read/write) 775899 775899 0 0.0
bss 109080 109080 0 0.0
rodata 72496 72496 0 0.0
text 519736 519736 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 690938 690938 0 0.0
bss 110060 110060 0 0.0
rodata 67140 67140 0 0.0
text 440328 440328 0 0.0
p6 all-clusters-app default (read/write) 2300072 2300072 0 0.0
.bss 106840 106840 0 0.0
.data 2520 2520 0 0.0
.heap 923984 923984 0 0.0
.text 1258336 1258336 0 0.0
lock-app default (read/write) 2212784 2212784 0 0.0
.bss 95648 95648 0 0.0
.data 2392 2392 0 0.0
.heap 935304 935304 0 0.0
.text 1171048 1171048 0 0.0
qpg lighting-app qpg6100+debug (read only) 490532 490532 0 0.0
(read/write) 114140 114140 0 0.0
.bss 50944 50944 0 0.0
.data 1004 1004 0 0.0
.text 485212 485212 0 0.0
lock-app qpg6100+debug (read only) 466872 466872 0 0.0
(read/write) 114144 114144 0 0.0
.bss 49888 49888 0 0.0
.data 960 960 0 0.0
.text 461552 461552 0 0.0
persistent-storage-app qpg6100+debug (read only) 153212 153212 0 0.0
(read/write) 114140 114140 0 0.0
.bss 18912 18912 0 0.0
.data 356 356 0 0.0
.text 147892 147892 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 662870 662870 0 0.0
bss 69072 69072 0 0.0
noinit 33216 33216 0 0.0
text 457962 457962 0 0.0

@bzbarsky-apple bzbarsky-apple force-pushed the use-template-for-writes branch from 645f948 to f59184d Compare November 5, 2021 07:19
@boring-cyborg boring-cyborg bot added the darwin label Nov 5, 2021
@github-actions
Copy link

github-actions bot commented Nov 5, 2021

PR #11460: Size comparison from 7b71fb2 to f59184d

Increases above 0.2%:

platform target config section 7b71fb2 f59184d change % change
linux chip-tool debug (read only) 4508517 4913661 405144 9.0
.rodata 231824 232784 960 0.4
.text 4008229 4412293 404064 10.1
Increases (1 build for linux)
platform target config section 7b71fb2 f59184d change % change
linux chip-tool debug (read only) 4508517 4913661 405144 9.0
(read/write) 125864 125928 64 0.1
.data.rel.ro 100096 100144 48 0.0
.rodata 231824 232784 960 0.4
.text 4008229 4412293 404064 10.1
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 7b71fb2 f59184d change % change
efr32 lighting-app BRD4161A (read only) 744756 744756 0 0.0
(read/write) 115704 115704 0 0.0
.bss 113932 113932 0 0.0
.data 1772 1772 0 0.0
.text 744748 744748 0 0.0
BRD4161A+rpc (read only) 732304 732304 0 0.0
(read/write) 132324 132324 0 0.0
.bss 130436 130436 0 0.0
.data 1888 1888 0 0.0
.text 732296 732296 0 0.0
lock-app BRD4161A (read only) 724056 724056 0 0.0
(read/write) 113524 113524 0 0.0
.bss 111788 111788 0 0.0
.data 1732 1732 0 0.0
.text 724048 724048 0 0.0
window-app BRD4161A (read only) 724952 724952 0 0.0
(read/write) 113844 113844 0 0.0
.bss 112108 112108 0 0.0
.data 1736 1736 0 0.0
.text 724944 724944 0 0.0
esp32 all-clusters-app c3devkit (read only) 882498 882498 0 0.0
(read/write) 1305960 1305960 0 0.0
.dram0.bss 57576 57576 0 0.0
.dram0.data 16472 16472 0 0.0
.flash.rodata 198664 198664 0 0.0
.flash.text 882498 882498 0 0.0
.iram0.text 57624 57624 0 0.0
m5stack (read only) 913359 913359 0 0.0
(read/write) 423268 423268 0 0.0
.dram0.bss 60088 60088 0 0.0
.dram0.data 32108 32108 0 0.0
.flash.rodata 204908 204908 0 0.0
.flash.text 913359 913359 0 0.0
.iram0.text 125115 125115 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 699136 699136 0 0.0
.bss 77784 77784 0 0.0
.data 1904 1904 0 0.0
.text 613648 613648 0 0.0
lock-app k32w061+debug (read/write) 591956 591956 0 0.0
.bss 68316 68316 0 0.0
.data 1872 1872 0 0.0
.text 515968 515968 0 0.0
shell k32w061+debug (read/write) 657448 657448 0 0.0
.bss 78952 78952 0 0.0
.data 1840 1840 0 0.0
.text 570856 570856 0 0.0
linux all-clusters-app debug (read only) 1702977 1702977 0 0.0
(read/write) 118656 118656 0 0.0
.bss 50000 50000 0 0.0
.data 1042 1042 0 0.0
.data.rel.ro 62336 62336 0 0.0
.dynamic 592 592 0 0.0
.got 4088 4088 0 0.0
.init 27 27 0 0.0
.init_array 552 552 0 0.0
.rodata 139157 139157 0 0.0
.text 1430354 1430354 0 0.0
bridge-app debug+rpc (read only) 1290981 1290981 0 0.0
(read/write) 69232 69232 0 0.0
.bss 34928 34928 0 0.0
.data 1568 1568 0 0.0
.data.rel.ro 27768 27768 0 0.0
.dynamic 592 592 0 0.0
.got 3952 3952 0 0.0
.init 27 27 0 0.0
.init_array 408 408 0 0.0
.rodata 110948 110948 0 0.0
.text 1084117 1084117 0 0.0
chip-tool debug (read only) 4508517 4913661 405144 9.0
(read/write) 125864 125928 64 0.1
.bss 18128 18128 0 0.0
.data 2224 2224 0 0.0
.data.rel.ro 100096 100144 48 0.0
.dynamic 592 592 0 0.0
.got 4368 4368 0 0.0
.init 27 27 0 0.0
.init_array 432 432 0 0.0
.rodata 231824 232784 960 0.4
.text 4008229 4412293 404064 10.1
lighting-app debug+rpc (read only) 1551977 1551977 0 0.0
(read/write) 102200 102200 0 0.0
.bss 40568 40568 0 0.0
.data 1170 1170 0 0.0
.data.rel.ro 55168 55168 0 0.0
.dynamic 608 608 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 536 536 0 0.0
.rodata 129585 129585 0 0.0
.text 1288786 1288786 0 0.0
ota-provider-app debug (read only) 1250217 1250217 0 0.0
(read/write) 67400 67400 0 0.0
.bss 36992 36992 0 0.0
.data 752 752 0 0.0
.data.rel.ro 24568 24568 0 0.0
.dynamic 592 592 0 0.0
.got 4016 4016 0 0.0
.init 27 27 0 0.0
.init_array 448 448 0 0.0
.rodata 112168 112168 0 0.0
.text 1041922 1041922 0 0.0
ota-requestor-app debug (read only) 1328561 1328561 0 0.0
(read/write) 76656 76656 0 0.0
.bss 45120 45120 0 0.0
.data 816 816 0 0.0
.data.rel.ro 25576 25576 0 0.0
.dynamic 592 592 0 0.0
.got 3992 3992 0 0.0
.init 27 27 0 0.0
.init_array 520 520 0 0.0
.rodata 124176 124176 0 0.0
.text 1106306 1106306 0 0.0
shell debug (read only) 787145 787145 0 0.0
(read/write) 57608 57608 0 0.0
.bss 16040 16040 0 0.0
.data 242 242 0 0.0
.data.rel.ro 36816 36816 0 0.0
.dynamic 592 592 0 0.0
.got 3528 3528 0 0.0
.init 27 27 0 0.0
.init_array 344 344 0 0.0
.rodata 77903 77903 0 0.0
.text 607730 607730 0 0.0
tv-app debug (read only) 1815617 1815617 0 0.0
(read/write) 289824 289824 0 0.0
.bss 222640 222640 0 0.0
.data 2704 2704 0 0.0
.data.rel.ro 58824 58824 0 0.0
.dynamic 592 592 0 0.0
.got 4408 4408 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 155208 155208 0 0.0
.text 1518098 1518098 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2291344 2291344 0 0.0
.bss 178892 178892 0 0.0
.data 5224 5224 0 0.0
.heap 852328 852328 0 0.0
.text 1253944 1253944 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2271504 2271504 0 0.0
.bss 171948 171948 0 0.0
.data 5568 5568 0 0.0
.heap 858928 858928 0 0.0
.text 1234104 1234104 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2249160 2249160 0 0.0
.bss 170844 170844 0 0.0
.data 5560 5560 0 0.0
.heap 860040 860040 0 0.0
.text 1211760 1211760 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139744 1139744 0 0.0
.bss 11752 11752 0 0.0
.data 4368 4368 0 0.0
.heap 1020328 1020328 0 0.0
.text 103128 103128 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2048400 2048400 0 0.0
.bss 156224 156224 0 0.0
.data 4960 4960 0 0.0
.heap 875264 875264 0 0.0
.text 1011000 1011000 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 861223 861223 0 0.0
bss 111256 111256 0 0.0
rodata 96872 96872 0 0.0
text 577480 577480 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 823567 823567 0 0.0
bss 107608 107608 0 0.0
rodata 88048 88048 0 0.0
text 551628 551628 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 786246 786246 0 0.0
bss 112632 112632 0 0.0
rodata 92128 92128 0 0.0
text 506936 506936 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 837927 837927 0 0.0
bss 110292 110292 0 0.0
rodata 93240 93240 0 0.0
text 558960 558960 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 763226 763226 0 0.0
bss 111700 111700 0 0.0
rodata 88548 88548 0 0.0
text 488508 488508 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 497323 497323 0 0.0
bss 51824 51824 0 0.0
rodata 45776 45776 0 0.0
text 339436 339436 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 844023 844023 0 0.0
bss 110428 110428 0 0.0
rodata 94952 94952 0 0.0
text 563124 563124 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 837783 837783 0 0.0
bss 110328 110328 0 0.0
rodata 93240 93240 0 0.0
text 558696 558696 0 0.0
shell nrf52840dk_nrf52840 (read/write) 775899 775899 0 0.0
bss 109080 109080 0 0.0
rodata 72496 72496 0 0.0
text 519736 519736 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 690938 690938 0 0.0
bss 110060 110060 0 0.0
rodata 67140 67140 0 0.0
text 440328 440328 0 0.0
p6 all-clusters-app default (read/write) 2300072 2300072 0 0.0
.bss 106840 106840 0 0.0
.data 2520 2520 0 0.0
.heap 923984 923984 0 0.0
.text 1258336 1258336 0 0.0
lock-app default (read/write) 2212784 2212784 0 0.0
.bss 95648 95648 0 0.0
.data 2392 2392 0 0.0
.heap 935304 935304 0 0.0
.text 1171048 1171048 0 0.0
qpg lighting-app qpg6100+debug (read only) 490532 490532 0 0.0
(read/write) 114140 114140 0 0.0
.bss 50944 50944 0 0.0
.data 1004 1004 0 0.0
.text 485212 485212 0 0.0
lock-app qpg6100+debug (read only) 466872 466872 0 0.0
(read/write) 114144 114144 0 0.0
.bss 49888 49888 0 0.0
.data 960 960 0 0.0
.text 461552 461552 0 0.0
persistent-storage-app qpg6100+debug (read only) 153212 153212 0 0.0
(read/write) 114140 114140 0 0.0
.bss 18912 18912 0 0.0
.data 356 356 0 0.0
.text 147892 147892 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 662870 662870 0 0.0
bss 69072 69072 0 0.0
noinit 33216 33216 0 0.0
text 457962 457962 0 0.0

@github-actions
Copy link

github-actions bot commented Nov 5, 2021

PR #11460: Size comparison from 11c32e8 to 2eb3e53

Increases above 0.2%:

platform target config section 11c32e8 2eb3e53 change % change
linux chip-tool debug (read only) 4508293 4913437 405144 9.0
.rodata 231824 232784 960 0.4
.text 4008053 4412117 404064 10.1
Increases (2 builds for esp32, linux)
platform target config section 11c32e8 2eb3e53 change % change
esp32 all-clusters-app m5stack (read only) 913363 913379 16 0.0
.flash.text 913363 913379 16 0.0
linux chip-tool debug (read only) 4508293 4913437 405144 9.0
(read/write) 125864 125896 32 0.0
.data.rel.ro 100080 100128 48 0.0
.rodata 231824 232784 960 0.4
.text 4008053 4412117 404064 10.1
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 11c32e8 2eb3e53 change % change
efr32 lighting-app BRD4161A (read only) 744776 744776 0 0.0
(read/write) 115708 115708 0 0.0
.bss 113932 113932 0 0.0
.data 1772 1772 0 0.0
.text 744768 744768 0 0.0
BRD4161A+rpc (read only) 732320 732320 0 0.0
(read/write) 132324 132324 0 0.0
.bss 130436 130436 0 0.0
.data 1888 1888 0 0.0
.text 732312 732312 0 0.0
lock-app BRD4161A (read only) 724072 724072 0 0.0
(read/write) 113524 113524 0 0.0
.bss 111788 111788 0 0.0
.data 1732 1732 0 0.0
.text 724064 724064 0 0.0
window-app BRD4161A (read only) 724968 724968 0 0.0
(read/write) 113844 113844 0 0.0
.bss 112108 112108 0 0.0
.data 1736 1736 0 0.0
.text 724960 724960 0 0.0
esp32 all-clusters-app c3devkit (read only) 882482 882482 0 0.0
(read/write) 1305952 1305952 0 0.0
.dram0.bss 57576 57576 0 0.0
.dram0.data 16472 16472 0 0.0
.flash.rodata 198656 198656 0 0.0
.flash.text 882482 882482 0 0.0
.iram0.text 57624 57624 0 0.0
m5stack (read only) 913363 913379 16 0.0
(read/write) 423260 423260 0 0.0
.dram0.bss 60088 60088 0 0.0
.dram0.data 32108 32108 0 0.0
.flash.rodata 204900 204900 0 0.0
.flash.text 913363 913379 16 0.0
.iram0.text 125115 125115 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 699180 699180 0 0.0
.bss 77784 77784 0 0.0
.data 1904 1904 0 0.0
.text 613692 613692 0 0.0
lock-app k32w061+debug (read/write) 591984 591984 0 0.0
.bss 68316 68316 0 0.0
.data 1872 1872 0 0.0
.text 515996 515996 0 0.0
shell k32w061+debug (read/write) 657476 657476 0 0.0
.bss 78952 78952 0 0.0
.data 1840 1840 0 0.0
.text 570884 570884 0 0.0
linux all-clusters-app debug (read only) 1702769 1702769 0 0.0
(read/write) 118624 118624 0 0.0
.bss 50000 50000 0 0.0
.data 1042 1042 0 0.0
.data.rel.ro 62320 62320 0 0.0
.dynamic 592 592 0 0.0
.got 4088 4088 0 0.0
.init 27 27 0 0.0
.init_array 552 552 0 0.0
.rodata 139189 139189 0 0.0
.text 1430162 1430162 0 0.0
bridge-app debug+rpc (read only) 1290757 1290757 0 0.0
(read/write) 69232 69232 0 0.0
.bss 34928 34928 0 0.0
.data 1568 1568 0 0.0
.data.rel.ro 27752 27752 0 0.0
.dynamic 592 592 0 0.0
.got 3952 3952 0 0.0
.init 27 27 0 0.0
.init_array 408 408 0 0.0
.rodata 110964 110964 0 0.0
.text 1083925 1083925 0 0.0
chip-tool debug (read only) 4508293 4913437 405144 9.0
(read/write) 125864 125896 32 0.0
.bss 18128 18128 0 0.0
.data 2224 2224 0 0.0
.data.rel.ro 100080 100128 48 0.0
.dynamic 592 592 0 0.0
.got 4368 4368 0 0.0
.init 27 27 0 0.0
.init_array 432 432 0 0.0
.rodata 231824 232784 960 0.4
.text 4008053 4412117 404064 10.1
lighting-app debug+rpc (read only) 1551769 1551769 0 0.0
(read/write) 102168 102168 0 0.0
.bss 40568 40568 0 0.0
.data 1170 1170 0 0.0
.data.rel.ro 55152 55152 0 0.0
.dynamic 608 608 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 536 536 0 0.0
.rodata 129585 129585 0 0.0
.text 1288626 1288626 0 0.0
ota-provider-app debug (read only) 1249993 1249993 0 0.0
(read/write) 67400 67400 0 0.0
.bss 36992 36992 0 0.0
.data 752 752 0 0.0
.data.rel.ro 24552 24552 0 0.0
.dynamic 592 592 0 0.0
.got 4016 4016 0 0.0
.init 27 27 0 0.0
.init_array 448 448 0 0.0
.rodata 112200 112200 0 0.0
.text 1041714 1041714 0 0.0
ota-requestor-app debug (read only) 1328289 1328289 0 0.0
(read/write) 76624 76624 0 0.0
.bss 45120 45120 0 0.0
.data 816 816 0 0.0
.data.rel.ro 25560 25560 0 0.0
.dynamic 592 592 0 0.0
.got 3992 3992 0 0.0
.init 27 27 0 0.0
.init_array 520 520 0 0.0
.rodata 124176 124176 0 0.0
.text 1106082 1106082 0 0.0
shell debug (read only) 786905 786905 0 0.0
(read/write) 57576 57576 0 0.0
.bss 16040 16040 0 0.0
.data 242 242 0 0.0
.data.rel.ro 36800 36800 0 0.0
.dynamic 592 592 0 0.0
.got 3528 3528 0 0.0
.init 27 27 0 0.0
.init_array 344 344 0 0.0
.rodata 77903 77903 0 0.0
.text 607538 607538 0 0.0
tv-app debug (read only) 1815729 1815729 0 0.0
(read/write) 289792 289792 0 0.0
.bss 222640 222640 0 0.0
.data 2704 2704 0 0.0
.data.rel.ro 58808 58808 0 0.0
.dynamic 592 592 0 0.0
.got 4408 4408 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 155240 155240 0 0.0
.text 1518226 1518226 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2291336 2291336 0 0.0
.bss 178892 178892 0 0.0
.data 5224 5224 0 0.0
.heap 852328 852328 0 0.0
.text 1253936 1253936 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2271496 2271496 0 0.0
.bss 171948 171948 0 0.0
.data 5568 5568 0 0.0
.heap 858928 858928 0 0.0
.text 1234096 1234096 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2249216 2249216 0 0.0
.bss 170844 170844 0 0.0
.data 5560 5560 0 0.0
.heap 860040 860040 0 0.0
.text 1211816 1211816 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139744 1139744 0 0.0
.bss 11752 11752 0 0.0
.data 4368 4368 0 0.0
.heap 1020328 1020328 0 0.0
.text 103128 103128 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2048456 2048456 0 0.0
.bss 156224 156224 0 0.0
.data 4960 4960 0 0.0
.heap 875264 875264 0 0.0
.text 1011056 1011056 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 861251 861251 0 0.0
bss 111256 111256 0 0.0
rodata 96868 96868 0 0.0
text 577508 577508 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 823579 823579 0 0.0
bss 107608 107608 0 0.0
rodata 88044 88044 0 0.0
text 551656 551656 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 786274 786274 0 0.0
bss 112632 112632 0 0.0
rodata 92124 92124 0 0.0
text 506964 506964 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 837955 837955 0 0.0
bss 110292 110292 0 0.0
rodata 93236 93236 0 0.0
text 558988 558988 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 763254 763254 0 0.0
bss 111700 111700 0 0.0
rodata 88544 88544 0 0.0
text 488536 488536 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 497323 497323 0 0.0
bss 51824 51824 0 0.0
rodata 45776 45776 0 0.0
text 339436 339436 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 844051 844051 0 0.0
bss 110428 110428 0 0.0
rodata 94948 94948 0 0.0
text 563152 563152 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 837811 837811 0 0.0
bss 110328 110328 0 0.0
rodata 93236 93236 0 0.0
text 558724 558724 0 0.0
shell nrf52840dk_nrf52840 (read/write) 775895 775895 0 0.0
bss 109080 109080 0 0.0
rodata 72492 72492 0 0.0
text 519744 519744 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 690934 690934 0 0.0
bss 110060 110060 0 0.0
rodata 67136 67136 0 0.0
text 440336 440336 0 0.0
p6 all-clusters-app default (read/write) 2300096 2300096 0 0.0
.bss 106840 106840 0 0.0
.data 2520 2520 0 0.0
.heap 923984 923984 0 0.0
.text 1258360 1258360 0 0.0
lock-app default (read/write) 2212800 2212800 0 0.0
.bss 95648 95648 0 0.0
.data 2392 2392 0 0.0
.heap 935304 935304 0 0.0
.text 1171064 1171064 0 0.0
qpg lighting-app qpg6100+debug (read only) 490560 490560 0 0.0
(read/write) 114140 114140 0 0.0
.bss 50944 50944 0 0.0
.data 1004 1004 0 0.0
.text 485240 485240 0 0.0
lock-app qpg6100+debug (read only) 466900 466900 0 0.0
(read/write) 114144 114144 0 0.0
.bss 49888 49888 0 0.0
.data 960 960 0 0.0
.text 461580 461580 0 0.0
persistent-storage-app qpg6100+debug (read only) 153168 153168 0 0.0
(read/write) 114140 114140 0 0.0
.bss 18912 18912 0 0.0
.data 356 356 0 0.0
.text 147848 147848 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 662834 662834 0 0.0
bss 69072 69072 0 0.0
noinit 33216 33216 0 0.0
text 457930 457930 0 0.0

…ite.

The changes to test_cluster.zapt are the actual change we care about.

The change to WriteClient.h is to fix a pre-existing bug: it calls
Encode() without including all the headers that declare various
signatures of Encode().

The change to ClusterTestGeneration.js fixes a bug with the signature
of the success callback for writes: it had an extra arg with the type
of the attribute, whereas it should have no arg at all.

The change to CHIPClusters-src.zapt is to instantiate WriteAttribute
for all the non-writable attributes when compiling tests, because we
actually issue writes for those non-writable attributes (and test that
they fail).

The change to controller/data_model/BUILD.gn is because the Android
compiler in CI blows up trying to compile CHIPClustersTestWrite.cpp.
@bzbarsky-apple bzbarsky-apple force-pushed the use-template-for-writes branch from 2eb3e53 to 555e6b6 Compare November 5, 2021 17:43
@github-actions
Copy link

github-actions bot commented Nov 5, 2021

PR #11460: Size comparison from 7addec8 to 555e6b6

Increases above 0.2%:

platform target config section 7addec8 555e6b6 change % change
linux chip-tool debug (read only) 4508917 4914061 405144 9.0
.rodata 231824 232784 960 0.4
.text 4008629 4412693 404064 10.1
Increases (2 builds for esp32, linux)
platform target config section 7addec8 555e6b6 change % change
esp32 all-clusters-app m5stack (read only) 913387 913403 16 0.0
.flash.text 913387 913403 16 0.0
linux chip-tool debug (read only) 4508917 4914061 405144 9.0
(read/write) 125864 125928 64 0.1
.data.rel.ro 100096 100144 48 0.0
.rodata 231824 232784 960 0.4
.text 4008629 4412693 404064 10.1
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 7addec8 555e6b6 change % change
efr32 lighting-app BRD4161A (read only) 744880 744880 0 0.0
(read/write) 115708 115708 0 0.0
.bss 113932 113932 0 0.0
.data 1772 1772 0 0.0
.text 744872 744872 0 0.0
BRD4161A+rpc (read only) 732408 732408 0 0.0
(read/write) 132324 132324 0 0.0
.bss 130436 130436 0 0.0
.data 1888 1888 0 0.0
.text 732400 732400 0 0.0
lock-app BRD4161A (read only) 724160 724160 0 0.0
(read/write) 113524 113524 0 0.0
.bss 111788 111788 0 0.0
.data 1732 1732 0 0.0
.text 724152 724152 0 0.0
window-app BRD4161A (read only) 725072 725072 0 0.0
(read/write) 113844 113844 0 0.0
.bss 112108 112108 0 0.0
.data 1736 1736 0 0.0
.text 725064 725064 0 0.0
esp32 all-clusters-app c3devkit (read only) 882530 882530 0 0.0
(read/write) 1305960 1305960 0 0.0
.dram0.bss 57576 57576 0 0.0
.dram0.data 16472 16472 0 0.0
.flash.rodata 198664 198664 0 0.0
.flash.text 882530 882530 0 0.0
.iram0.text 57624 57624 0 0.0
m5stack (read only) 913387 913403 16 0.0
(read/write) 423268 423268 0 0.0
.dram0.bss 60088 60088 0 0.0
.dram0.data 32108 32108 0 0.0
.flash.rodata 204908 204908 0 0.0
.flash.text 913387 913403 16 0.0
.iram0.text 125115 125115 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 699216 699216 0 0.0
.bss 77784 77784 0 0.0
.data 1904 1904 0 0.0
.text 613728 613728 0 0.0
lock-app k32w061+debug (read/write) 592036 592036 0 0.0
.bss 68316 68316 0 0.0
.data 1872 1872 0 0.0
.text 516048 516048 0 0.0
shell k32w061+debug (read/write) 657528 657528 0 0.0
.bss 78952 78952 0 0.0
.data 1840 1840 0 0.0
.text 570936 570936 0 0.0
linux all-clusters-app debug (read only) 1703617 1703617 0 0.0
(read/write) 118656 118656 0 0.0
.bss 50000 50000 0 0.0
.data 1042 1042 0 0.0
.data.rel.ro 62336 62336 0 0.0
.dynamic 592 592 0 0.0
.got 4088 4088 0 0.0
.init 27 27 0 0.0
.init_array 552 552 0 0.0
.rodata 139189 139189 0 0.0
.text 1430962 1430962 0 0.0
bridge-app debug+rpc (read only) 1291605 1291605 0 0.0
(read/write) 69232 69232 0 0.0
.bss 34928 34928 0 0.0
.data 1568 1568 0 0.0
.data.rel.ro 27768 27768 0 0.0
.dynamic 592 592 0 0.0
.got 3952 3952 0 0.0
.init 27 27 0 0.0
.init_array 408 408 0 0.0
.rodata 110964 110964 0 0.0
.text 1084725 1084725 0 0.0
chip-tool debug (read only) 4508917 4914061 405144 9.0
(read/write) 125864 125928 64 0.1
.bss 18128 18128 0 0.0
.data 2224 2224 0 0.0
.data.rel.ro 100096 100144 48 0.0
.dynamic 592 592 0 0.0
.got 4368 4368 0 0.0
.init 27 27 0 0.0
.init_array 432 432 0 0.0
.rodata 231824 232784 960 0.4
.text 4008629 4412693 404064 10.1
lighting-app debug+rpc (read only) 1552617 1552617 0 0.0
(read/write) 102200 102200 0 0.0
.bss 40568 40568 0 0.0
.data 1170 1170 0 0.0
.data.rel.ro 55168 55168 0 0.0
.dynamic 608 608 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 536 536 0 0.0
.rodata 129585 129585 0 0.0
.text 1289426 1289426 0 0.0
ota-provider-app debug (read only) 1250841 1250841 0 0.0
(read/write) 67400 67400 0 0.0
.bss 36992 36992 0 0.0
.data 752 752 0 0.0
.data.rel.ro 24568 24568 0 0.0
.dynamic 592 592 0 0.0
.got 4016 4016 0 0.0
.init 27 27 0 0.0
.init_array 448 448 0 0.0
.rodata 112200 112200 0 0.0
.text 1042514 1042514 0 0.0
ota-requestor-app debug (read only) 1329137 1329137 0 0.0
(read/write) 76656 76656 0 0.0
.bss 45120 45120 0 0.0
.data 816 816 0 0.0
.data.rel.ro 25576 25576 0 0.0
.dynamic 592 592 0 0.0
.got 3992 3992 0 0.0
.init 27 27 0 0.0
.init_array 520 520 0 0.0
.rodata 124176 124176 0 0.0
.text 1106882 1106882 0 0.0
shell debug (read only) 787529 787529 0 0.0
(read/write) 57608 57608 0 0.0
.bss 16040 16040 0 0.0
.data 242 242 0 0.0
.data.rel.ro 36816 36816 0 0.0
.dynamic 592 592 0 0.0
.got 3528 3528 0 0.0
.init 27 27 0 0.0
.init_array 344 344 0 0.0
.rodata 77903 77903 0 0.0
.text 608114 608114 0 0.0
tv-app debug (read only) 1816577 1816577 0 0.0
(read/write) 289824 289824 0 0.0
.bss 222640 222640 0 0.0
.data 2704 2704 0 0.0
.data.rel.ro 58824 58824 0 0.0
.dynamic 592 592 0 0.0
.got 4408 4408 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 155240 155240 0 0.0
.text 1519026 1519026 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2291408 2291408 0 0.0
.bss 178892 178892 0 0.0
.data 5224 5224 0 0.0
.heap 852328 852328 0 0.0
.text 1254008 1254008 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2271568 2271568 0 0.0
.bss 171948 171948 0 0.0
.data 5568 5568 0 0.0
.heap 858928 858928 0 0.0
.text 1234168 1234168 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2249224 2249224 0 0.0
.bss 170844 170844 0 0.0
.data 5560 5560 0 0.0
.heap 860040 860040 0 0.0
.text 1211824 1211824 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139744 1139744 0 0.0
.bss 11752 11752 0 0.0
.data 4368 4368 0 0.0
.heap 1020328 1020328 0 0.0
.text 103128 103128 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2048464 2048464 0 0.0
.bss 156224 156224 0 0.0
.data 4960 4960 0 0.0
.heap 875264 875264 0 0.0
.text 1011064 1011064 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 861303 861303 0 0.0
bss 111256 111256 0 0.0
rodata 96872 96872 0 0.0
text 577556 577556 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 823631 823631 0 0.0
bss 107608 107608 0 0.0
rodata 88048 88048 0 0.0
text 551704 551704 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 786326 786326 0 0.0
bss 112632 112632 0 0.0
rodata 92128 92128 0 0.0
text 507012 507012 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 838007 838007 0 0.0
bss 110292 110292 0 0.0
rodata 93240 93240 0 0.0
text 559040 559040 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 763306 763306 0 0.0
bss 111700 111700 0 0.0
rodata 88548 88548 0 0.0
text 488588 488588 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 497323 497323 0 0.0
bss 51824 51824 0 0.0
rodata 45776 45776 0 0.0
text 339436 339436 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 844103 844103 0 0.0
bss 110428 110428 0 0.0
rodata 94952 94952 0 0.0
text 563200 563200 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 837863 837863 0 0.0
bss 110328 110328 0 0.0
rodata 93240 93240 0 0.0
text 558776 558776 0 0.0
shell nrf52840dk_nrf52840 (read/write) 775963 775963 0 0.0
bss 109080 109080 0 0.0
rodata 72496 72496 0 0.0
text 519796 519796 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 690986 690986 0 0.0
bss 110060 110060 0 0.0
rodata 67140 67140 0 0.0
text 440388 440388 0 0.0
p6 all-clusters-app default (read/write) 2300168 2300168 0 0.0
.bss 106840 106840 0 0.0
.data 2520 2520 0 0.0
.heap 923984 923984 0 0.0
.text 1258432 1258432 0 0.0
lock-app default (read/write) 2212872 2212872 0 0.0
.bss 95648 95648 0 0.0
.data 2392 2392 0 0.0
.heap 935304 935304 0 0.0
.text 1171136 1171136 0 0.0
qpg lighting-app qpg6100+debug (read only) 490604 490604 0 0.0
(read/write) 114140 114140 0 0.0
.bss 50944 50944 0 0.0
.data 1004 1004 0 0.0
.text 485284 485284 0 0.0
lock-app qpg6100+debug (read only) 466944 466944 0 0.0
(read/write) 114144 114144 0 0.0
.bss 49888 49888 0 0.0
.data 960 960 0 0.0
.text 461624 461624 0 0.0
persistent-storage-app qpg6100+debug (read only) 153212 153212 0 0.0
(read/write) 114140 114140 0 0.0
.bss 18912 18912 0 0.0
.data 356 356 0 0.0
.text 147892 147892 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 662902 662902 0 0.0
bss 69072 69072 0 0.0
noinit 33216 33216 0 0.0
text 457992 457992 0 0.0

@bzbarsky-apple bzbarsky-apple merged commit 55c933e into project-chip:master Nov 5, 2021
@bzbarsky-apple bzbarsky-apple deleted the use-template-for-writes branch November 5, 2021 19:53
PSONALl pushed a commit to PSONALl/connectedhomeip that referenced this pull request Dec 3, 2021
…ite. (project-chip#11460)

The changes to test_cluster.zapt are the actual change we care about.

The change to WriteClient.h is to fix a pre-existing bug: it calls
Encode() without including all the headers that declare various
signatures of Encode().

The change to ClusterTestGeneration.js fixes a bug with the signature
of the success callback for writes: it had an extra arg with the type
of the attribute, whereas it should have no arg at all.

The change to CHIPClusters-src.zapt is to instantiate WriteAttribute
for all the non-writable attributes when compiling tests, because we
actually issue writes for those non-writable attributes (and test that
they fail).

The change to controller/data_model/BUILD.gn is because the Android
compiler in CI blows up trying to compile CHIPClustersTestWrite.cpp.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants