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

Add a YAML test for reading/writing a struct-typed attribute. #13558

Merged

Conversation

bzbarsky-apple
Copy link
Contributor

Problem

No test coverage for struct-typed attributes.

Change overview

Add some.

Testing

This is all testing.

@boring-cyborg boring-cyborg bot added the app label Jan 13, 2022
@github-actions
Copy link

PR #13558: Size comparison from 502963f to 5bf789e

Increases above 0.2%:

platform target config section 502963f 5bf789e change % change
linux chip-tool-ipv6only arm64 .text 6819220 6833796 14576 0.2
Increases (1 build for linux)
platform target config section 502963f 5bf789e change % change
linux chip-tool-ipv6only arm64 (read only) 8024884 8040532 15648 0.2
(read/write) 370241 370513 272 0.1
.data.rel.ro 245760 245920 160 0.1
.got 64472 64576 104 0.2
.rodata 417772 418236 464 0.1
.text 6819220 6833796 14576 0.2
Full report (3 builds for linux, telink)
platform target config section 502963f 5bf789e change % change
linux chip-tool-ipv6only arm64 (read only) 8024884 8040532 15648 0.2
(read/write) 370241 370513 272 0.1
.bss 55217 55217 0 0.0
.data 1096 1096 0 0.0
.data.rel.ro 245760 245920 160 0.1
.dynamic 560 560 0 0.0
.got 64472 64576 104 0.2
.init 24 24 0 0.0
.init_array 168 168 0 0.0
.rodata 417772 418236 464 0.1
.text 6819220 6833796 14576 0.2
thermostat-no-ble arm64 (read only) 2042140 2042140 0 0.0
(read/write) 145969 145969 0 0.0
.bss 65089 65089 0 0.0
.data 880 880 0 0.0
.data.rel.ro 73016 73016 0 0.0
.dynamic 560 560 0 0.0
.got 4048 4048 0 0.0
.init 24 24 0 0.0
.init_array 304 304 0 0.0
.rodata 129868 129868 0 0.0
.text 1697680 1697680 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 838494 838494 0 0.0
bss 87312 87312 0 0.0
noinit 37160 37160 0 0.0
text 585654 585654 0 0.0

@github-actions
Copy link

github-actions bot commented Jan 14, 2022

PR #13558: Size comparison from 9c016d4 to 6768c96

Increases (3 builds for linux, mbed, p6)
platform target config section 9c016d4 6768c96 change % change
linux chip-tool-ipv6only arm64 (read only) 8024788 8040436 15648 0.2
(read/write) 370241 370513 272 0.1
.data.rel.ro 245760 245920 160 0.1
.got 64472 64576 104 0.2
.rodata 417772 418236 464 0.1
.text 6819124 6833700 14576 0.2
mbed all-clusters-app CY8CPROTO_062_4343W+release .bss 189204 189220 16 0.0
p6 all-clusters-app default .bss 117484 117500 16 0.0
Decreases (1 build for p6)
platform target config section 9c016d4 6768c96 change % change
p6 all-clusters-app default (read/write) 2402296 2402152 -144 -0.0
.text 1360560 1360416 -144 -0.0
Full report (19 builds for efr32, k32w, linux, mbed, p6, qpg, telink)
platform target config section 9c016d4 6768c96 change % change
efr32 lighting-app BRD4161A (read only) 832756 832756 0 0.0
(read/write) 127628 127628 0 0.0
.bss 125744 125744 0 0.0
.data 1884 1884 0 0.0
.text 832748 832748 0 0.0
BRD4161A+rpc (read only) 820160 820160 0 0.0
(read/write) 144288 144288 0 0.0
.bss 142304 142304 0 0.0
.data 1984 1984 0 0.0
.text 820152 820152 0 0.0
window-app BRD4161A (read only) 805400 805400 0 0.0
(read/write) 126320 126320 0 0.0
.bss 124480 124480 0 0.0
.data 1836 1836 0 0.0
.text 805392 805392 0 0.0
k32w light k32w061+release (read/write) 657896 657896 0 0.0
.bss 77136 77136 0 0.0
.data 1852 1852 0 0.0
.text 573108 573108 0 0.0
lock k32w061+release (read/write) 661596 661596 0 0.0
.bss 77432 77432 0 0.0
.data 1872 1872 0 0.0
.text 576492 576492 0 0.0
linux chip-tool-ipv6only arm64 (read only) 8024788 8040436 15648 0.2
(read/write) 370241 370513 272 0.1
.bss 55217 55217 0 0.0
.data 1096 1096 0 0.0
.data.rel.ro 245760 245920 160 0.1
.dynamic 560 560 0 0.0
.got 64472 64576 104 0.2
.init 24 24 0 0.0
.init_array 168 168 0 0.0
.rodata 417772 418236 464 0.1
.text 6819124 6833700 14576 0.2
thermostat-no-ble arm64 (read only) 2041964 2041964 0 0.0
(read/write) 145969 145969 0 0.0
.bss 65089 65089 0 0.0
.data 880 880 0 0.0
.data.rel.ro 73016 73016 0 0.0
.dynamic 560 560 0 0.0
.got 4048 4048 0 0.0
.init 24 24 0 0.0
.init_array 304 304 0 0.0
.rodata 129868 129868 0 0.0
.text 1697504 1697504 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2347824 2347824 0 0.0
.bss 189204 189220 16 0.0
.data 5320 5320 0 0.0
.text 1310400 1310400 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2332408 2332408 0 0.0
.bss 180752 180752 0 0.0
.data 5560 5560 0 0.0
.text 1295008 1295008 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2304528 2304528 0 0.0
.bss 179768 179768 0 0.0
.data 5544 5544 0 0.0
.text 1267128 1267128 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139712 1139712 0 0.0
.bss 11756 11756 0 0.0
.data 4368 4368 0 0.0
.text 103096 103096 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2054456 2054456 0 0.0
.bss 156876 156876 0 0.0
.data 4864 4864 0 0.0
.text 1017056 1017056 0 0.0
p6 all-clusters-app default (read/write) 2402296 2402152 -144 -0.0
.bss 117484 117500 16 0.0
.data 2592 2592 0 0.0
.text 1360560 1360416 -144 -0.0
light-app default (read/write) 2327536 2327536 0 0.0
.bss 106064 106064 0 0.0
.data 2392 2392 0 0.0
.text 1285800 1285800 0 0.0
lock-app default (read/write) 2298448 2298448 0 0.0
.bss 104920 104920 0 0.0
.data 2344 2344 0 0.0
.text 1256712 1256712 0 0.0
qpg lighting-app qpg6105+debug (read only) 561976 561976 0 0.0
(read/write) 146936 146936 0 0.0
.bss 89952 89952 0 0.0
.data 1044 1044 0 0.0
.text 556656 556656 0 0.0
lock-app qpg6105+debug (read only) 515292 515292 0 0.0
(read/write) 146936 146936 0 0.0
.bss 88584 88584 0 0.0
.data 972 972 0 0.0
.text 509972 509972 0 0.0
persistent-storage-app qpg6105+debug (read only) 106848 106848 0 0.0
(read/write) 146940 146940 0 0.0
.bss 38512 38512 0 0.0
.data 288 288 0 0.0
.text 101528 101528 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 838454 838454 0 0.0
bss 87312 87312 0 0.0
noinit 37160 37160 0 0.0
text 585616 585616 0 0.0

@bzbarsky-apple bzbarsky-apple force-pushed the add-struct-attr-yaml-test branch from 6768c96 to c5a8871 Compare January 20, 2022 04:49
@github-actions
Copy link

github-actions bot commented Jan 20, 2022

PR #13558: Size comparison from 3853608 to c5a8871

Increases (5 builds for esp32, linux, mbed, p6)
platform target config section 3853608 c5a8871 change % change
esp32 all-clusters-app c3devkit (read only) 912576 912974 398 0.0
(read/write) 1316658 1316674 16 0.0
.dram0.bss 70568 70584 16 0.0
.flash.text 912576 912974 398 0.0
m5stack (read only) 961391 961727 336 0.0
(read/write) 448800 448816 16 0.0
.dram0.bss 75024 75040 16 0.0
.flash.text 956007 956343 336 0.0
linux chip-tool-ipv6only arm64 (read only) 8144124 8159740 15616 0.2
(read/write) 374513 374769 256 0.1
.data.rel.ro 248800 248960 160 0.1
.got 65520 65624 104 0.2
.rodata 422724 423172 448 0.1
.text 6923108 6937684 14576 0.2
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2350304 2350368 64 0.0
.bss 189260 189276 16 0.0
.text 1312880 1312944 64 0.0
p6 all-clusters-app default (read/write) 2405904 2406080 176 0.0
.bss 117596 117612 16 0.0
.text 1364168 1364344 176 0.0
Full report (32 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 3853608 c5a8871 change % change
efr32 lighting-app BRD4161A (read only) 834948 834948 0 0.0
(read/write) 127640 127640 0 0.0
.bss 125744 125744 0 0.0
.data 1896 1896 0 0.0
.text 834940 834940 0 0.0
BRD4161A+rpc (read only) 822352 822352 0 0.0
(read/write) 144304 144304 0 0.0
.bss 142304 142304 0 0.0
.data 1996 1996 0 0.0
.text 822344 822344 0 0.0
window-app BRD4161A (read only) 805536 805536 0 0.0
(read/write) 126328 126328 0 0.0
.bss 124480 124480 0 0.0
.data 1848 1848 0 0.0
.text 805528 805528 0 0.0
esp32 all-clusters-app c3devkit (read only) 912576 912974 398 0.0
(read/write) 1316658 1316674 16 0.0
.dram0.bss 70568 70584 16 0.0
.dram0.data 14244 14244 0 0.0
.flash.rodata 178344 178344 0 0.0
.flash.text 912576 912974 398 0.0
.iram0.text 62056 62056 0 0.0
m5stack (read only) 961391 961727 336 0.0
(read/write) 448800 448816 16 0.0
.dram0.bss 75024 75040 16 0.0
.dram0.data 34032 34032 0 0.0
.flash.rodata 207616 207616 0 0.0
.flash.text 956007 956343 336 0.0
.iram0.text 123399 123399 0 0.0
k32w light k32w061+release (read/write) 659096 659096 0 0.0
.bss 77136 77136 0 0.0
.data 1864 1864 0 0.0
.text 574296 574296 0 0.0
lock k32w061+release (read/write) 661860 661860 0 0.0
.bss 77432 77432 0 0.0
.data 1884 1884 0 0.0
.text 576744 576744 0 0.0
linux chip-tool-ipv6only arm64 (read only) 8144124 8159740 15616 0.2
(read/write) 374513 374769 256 0.1
.bss 55345 55345 0 0.0
.data 1128 1128 0 0.0
.data.rel.ro 248800 248960 160 0.1
.dynamic 560 560 0 0.0
.got 65520 65624 104 0.2
.init 24 24 0 0.0
.init_array 184 184 0 0.0
.rodata 422724 423172 448 0.1
.text 6923108 6937684 14576 0.2
thermostat-no-ble arm64 (read only) 2044108 2044108 0 0.0
(read/write) 145921 145921 0 0.0
.bss 65089 65089 0 0.0
.data 904 904 0 0.0
.data.rel.ro 72952 72952 0 0.0
.dynamic 560 560 0 0.0
.got 4040 4040 0 0.0
.init 24 24 0 0.0
.init_array 304 304 0 0.0
.rodata 129916 129916 0 0.0
.text 1699792 1699792 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2350304 2350368 64 0.0
.bss 189260 189276 16 0.0
.data 5296 5296 0 0.0
.text 1312880 1312944 64 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2334568 2334568 0 0.0
.bss 180760 180760 0 0.0
.data 5576 5576 0 0.0
.text 1297168 1297168 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2304920 2304920 0 0.0
.bss 179768 179768 0 0.0
.data 5552 5552 0 0.0
.text 1267520 1267520 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139712 1139712 0 0.0
.bss 11756 11756 0 0.0
.data 4368 4368 0 0.0
.text 103096 103096 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2054256 2054256 0 0.0
.bss 156876 156876 0 0.0
.data 4864 4864 0 0.0
.text 1016856 1016856 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 943427 943427 0 0.0
bss 119628 119628 0 0.0
rodata 108760 108760 0 0.0
text 637456 637456 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 928911 928911 0 0.0
bss 116672 116672 0 0.0
rodata 101212 101212 0 0.0
text 632848 632848 0 0.0
nrf52840dongle_nrf52840 (read/write) 994107 994107 0 0.0
bss 122472 122472 0 0.0
rodata 113516 113516 0 0.0
text 669652 669652 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 853254 853254 0 0.0
bss 116416 116416 0 0.0
rodata 101936 101936 0 0.0
text 554376 554376 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 912787 912787 0 0.0
bss 118784 118784 0 0.0
rodata 103728 103728 0 0.0
text 612904 612904 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 822858 822858 0 0.0
bss 115600 115600 0 0.0
rodata 96956 96956 0 0.0
text 529860 529860 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 541835 541835 0 0.0
bss 52588 52588 0 0.0
rodata 50104 50104 0 0.0
text 376940 376940 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 915647 915647 0 0.0
bss 118548 118548 0 0.0
rodata 104092 104092 0 0.0
text 615552 615552 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 910723 910723 0 0.0
bss 118572 118572 0 0.0
rodata 103200 103200 0 0.0
text 611480 611480 0 0.0
shell nrf52840dk_nrf52840 (read/write) 798479 798479 0 0.0
bss 109776 109776 0 0.0
rodata 78324 78324 0 0.0
text 533872 533872 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 711278 711278 0 0.0
bss 107664 107664 0 0.0
rodata 72624 72624 0 0.0
text 451548 451548 0 0.0
p6 all-clusters-app default (read/write) 2405904 2406080 176 0.0
.bss 117596 117612 16 0.0
.data 2568 2568 0 0.0
.text 1364168 1364344 176 0.0
light-app default (read/write) 2330040 2330040 0 0.0
.bss 106128 106128 0 0.0
.data 2408 2408 0 0.0
.text 1288304 1288304 0 0.0
lock-app default (read/write) 2299048 2299048 0 0.0
.bss 104976 104976 0 0.0
.data 2352 2352 0 0.0
.text 1257312 1257312 0 0.0
qpg lighting-app qpg6105+debug (read only) 565136 565136 0 0.0
(read/write) 146936 146936 0 0.0
.bss 89960 89960 0 0.0
.data 1060 1060 0 0.0
.text 559816 559816 0 0.0
lock-app qpg6105+debug (read only) 515548 515548 0 0.0
(read/write) 146940 146940 0 0.0
.bss 88584 88584 0 0.0
.data 984 984 0 0.0
.text 510228 510228 0 0.0
persistent-storage-app qpg6105+debug (read only) 106848 106848 0 0.0
(read/write) 146940 146940 0 0.0
.bss 38512 38512 0 0.0
.data 288 288 0 0.0
.text 101528 101528 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 840794 840794 0 0.0
bss 87316 87316 0 0.0
noinit 37160 37160 0 0.0
text 587820 587820 0 0.0

@bzbarsky-apple bzbarsky-apple merged commit 5227f3e into project-chip:master Jan 24, 2022
@bzbarsky-apple bzbarsky-apple deleted the add-struct-attr-yaml-test branch January 24, 2022 04:49
selissia pushed a commit to selissia/connectedhomeip that referenced this pull request Jan 28, 2022
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