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 CI tests for fake platform #12870

Merged
merged 1 commit into from
Jan 4, 2022
Merged

Conversation

kghost
Copy link
Contributor

@kghost kghost commented Dec 10, 2021

Problem

Fake platform is not verified by GitHub CI.

Change overview

Run CI tests for fake platform on GitHub Action

Testing

Verified using unit-tests

@kghost
Copy link
Contributor Author

kghost commented Dec 10, 2021

What is fake platform adding over Linux?

I think it is platform independent. All its implementation functions are just returning unsupported.

@woody-apple
Copy link
Contributor

What is fake platform adding over Linux?

I think it is platform independent. All its implementation functions are just returning unsupported.

This will add CI cost and time. Can we get this same value using Linux?

@github-actions
Copy link

github-actions bot commented Dec 10, 2021

PR #12870: Size comparison from 586aca7 to f430c24

Full report (32 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 586aca7 f430c248 change % change
efr32 lighting-app BRD4161A (read only) 809204 809204 0 0.0
(read/write) 123148 123148 0 0.0
.bss 121288 121288 0 0.0
.data 1860 1860 0 0.0
.text 809196 809196 0 0.0
BRD4161A+rpc (read only) 796824 796824 0 0.0
(read/write) 139824 139824 0 0.0
.bss 137864 137864 0 0.0
.data 1960 1960 0 0.0
.text 796816 796816 0 0.0
window-app BRD4161A (read only) 786180 786180 0 0.0
(read/write) 121280 121280 0 0.0
.bss 119456 119456 0 0.0
.data 1824 1824 0 0.0
.text 786172 786172 0 0.0
esp32 all-clusters-app c3devkit (read only) 862792 862792 0 0.0
(read/write) 1306058 1306058 0 0.0
.dram0.bss 65832 65832 0 0.0
.dram0.data 14124 14124 0 0.0
.flash.rodata 173064 173064 0 0.0
.flash.text 862792 862792 0 0.0
.iram0.text 62076 62076 0 0.0
m5stack (read only) 966015 966015 0 0.0
(read/write) 451744 451744 0 0.0
.dram0.bss 75128 75128 0 0.0
.dram0.data 34056 34056 0 0.0
.flash.rodata 210772 210772 0 0.0
.flash.text 960631 960631 0 0.0
.iram0.text 123451 123451 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 669560 669560 0 0.0
.bss 73872 73872 0 0.0
.data 1892 1892 0 0.0
.text 587996 587996 0 0.0
lock-app k32w061+debug (read/write) 619508 619508 0 0.0
.bss 72024 72024 0 0.0
.data 1852 1852 0 0.0
.text 539832 539832 0 0.0
shell k32w061+debug (read/write) 624608 624608 0 0.0
.bss 74252 74252 0 0.0
.data 1832 1832 0 0.0
.text 542724 542724 0 0.0
linux chip-tool-ipv6only arm64 (read only) 6864988 6864988 0 0.0
(read/write) 318785 318785 0 0.0
.bss 51985 51985 0 0.0
.data 1192 1192 0 0.0
.data.rel.ro 208776 208776 0 0.0
.dynamic 560 560 0 0.0
.got 53096 53096 0 0.0
.init 24 24 0 0.0
.init_array 176 176 0 0.0
.rodata 364764 364764 0 0.0
.text 5820564 5820564 0 0.0
thermostat-no-ble arm64 (read only) 1947444 1947444 0 0.0
(read/write) 137201 137201 0 0.0
.bss 59601 59601 0 0.0
.data 832 832 0 0.0
.data.rel.ro 70304 70304 0 0.0
.dynamic 560 560 0 0.0
.got 3592 3592 0 0.0
.init 24 24 0 0.0
.init_array 272 272 0 0.0
.rodata 125508 125508 0 0.0
.text 1614432 1614432 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2324328 2324328 0 0.0
.bss 185108 185108 0 0.0
.data 5240 5240 0 0.0
.heap 846096 846096 0 0.0
.text 1286904 1286904 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2308944 2308944 0 0.0
.bss 175824 175824 0 0.0
.data 5528 5528 0 0.0
.heap 855096 855096 0 0.0
.text 1271544 1271544 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2282064 2282064 0 0.0
.bss 174864 174864 0 0.0
.data 5520 5520 0 0.0
.heap 856064 856064 0 0.0
.text 1244664 1244664 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1140008 1140008 0 0.0
.bss 11756 11756 0 0.0
.data 4376 4376 0 0.0
.heap 1020312 1020312 0 0.0
.text 103392 103392 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2053336 2053336 0 0.0
.bss 156900 156900 0 0.0
.data 4864 4864 0 0.0
.heap 874680 874680 0 0.0
.text 1015936 1015936 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 906747 906747 0 0.0
bss 116296 116296 0 0.0
rodata 101980 101980 0 0.0
text 612876 612876 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 869795 869795 0 0.0
bss 112644 112644 0 0.0
rodata 93276 93276 0 0.0
text 587604 587604 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 832762 832762 0 0.0
bss 117672 117672 0 0.0
rodata 97236 97236 0 0.0
text 543304 543304 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 879375 879375 0 0.0
bss 113560 113560 0 0.0
rodata 98096 98096 0 0.0
text 592320 592320 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 805634 805634 0 0.0
bss 114968 114968 0 0.0
rodata 93388 93388 0 0.0
text 522840 522840 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 497463 497463 0 0.0
bss 51820 51820 0 0.0
rodata 45852 45852 0 0.0
text 339492 339492 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 884315 884315 0 0.0
bss 113472 113472 0 0.0
rodata 99452 99452 0 0.0
text 595912 595912 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 877555 877555 0 0.0
bss 113348 113348 0 0.0
rodata 97588 97588 0 0.0
text 591108 591108 0 0.0
shell nrf52840dk_nrf52840 (read/write) 781927 781927 0 0.0
bss 109544 109544 0 0.0
rodata 74276 74276 0 0.0
text 523588 523588 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 696974 696974 0 0.0
bss 110524 110524 0 0.0
rodata 68920 68920 0 0.0
text 444228 444228 0 0.0
p6 all-clusters-app default (read/write) 2361904 2361904 0 0.0
.bss 113244 113244 0 0.0
.data 2520 2520 0 0.0
.heap 917576 917576 0 0.0
.text 1320168 1320168 0 0.0
light-app default (read/write) 2294704 2294704 0 0.0
.bss 101016 101016 0 0.0
.data 2360 2360 0 0.0
.heap 929968 929968 0 0.0
.text 1252968 1252968 0 0.0
lock-app default (read/write) 2270784 2270784 0 0.0
.bss 99896 99896 0 0.0
.data 2328 2328 0 0.0
.heap 931120 931120 0 0.0
.text 1229048 1229048 0 0.0
qpg lighting-app qpg6100+debug (read only) 521320 521320 0 0.0
(read/write) 122336 122336 0 0.0
.bss 82712 82712 0 0.0
.data 992 992 0 0.0
.text 516000 516000 0 0.0
lock-app qpg6100+debug (read only) 495688 495688 0 0.0
(read/write) 122332 122332 0 0.0
.bss 81848 81848 0 0.0
.data 948 948 0 0.0
.text 490368 490368 0 0.0
persistent-storage-app qpg6100+debug (read only) 108104 108104 0 0.0
(read/write) 122336 122336 0 0.0
.bss 36160 36160 0 0.0
.data 288 288 0 0.0
.text 102784 102784 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 810954 810954 0 0.0
bss 82864 82864 0 0.0
noinit 37160 37160 0 0.0
text 566006 566006 0 0.0

@kghost
Copy link
Contributor Author

kghost commented Dec 10, 2021

This will add CI cost and time. Can we get this same value using Linux?

Not sure about the potential of the fake platform. Its implementation is much more pure and simple than Linux. Sometime it can help us analysis whether a unit-tests failure is platform dependent or not.

The discussion may be outside the scope of this PR. We already got the code, and lots of scripts are using it, then we should introduce CI to cover it.

@kghost
Copy link
Contributor Author

kghost commented Dec 10, 2021

@github-actions
Copy link

github-actions bot commented Dec 10, 2021

PR #12870: Size comparison from de0af9a to d03b13c

Full report (30 builds for efr32, esp32, k32w, mbed, nrfconnect, p6, qpg, telink)
platform target config section de0af9a d03b13c change % change
efr32 lighting-app BRD4161A (read only) 809188 809188 0 0.0
(read/write) 123148 123148 0 0.0
.bss 121288 121288 0 0.0
.data 1860 1860 0 0.0
.text 809180 809180 0 0.0
BRD4161A+rpc (read only) 796824 796824 0 0.0
(read/write) 139824 139824 0 0.0
.bss 137864 137864 0 0.0
.data 1960 1960 0 0.0
.text 796816 796816 0 0.0
window-app BRD4161A (read only) 786164 786164 0 0.0
(read/write) 121280 121280 0 0.0
.bss 119456 119456 0 0.0
.data 1824 1824 0 0.0
.text 786156 786156 0 0.0
esp32 all-clusters-app c3devkit (read only) 856018 856018 0 0.0
(read/write) 1305050 1305050 0 0.0
.dram0.bss 65032 65032 0 0.0
.dram0.data 14124 14124 0 0.0
.flash.rodata 172856 172856 0 0.0
.flash.text 856018 856018 0 0.0
.iram0.text 62076 62076 0 0.0
m5stack (read only) 959935 959935 0 0.0
(read/write) 450776 450776 0 0.0
.dram0.bss 74320 74320 0 0.0
.dram0.data 34048 34048 0 0.0
.flash.rodata 210620 210620 0 0.0
.flash.text 954551 954551 0 0.0
.iram0.text 123451 123451 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 669576 669576 0 0.0
.bss 73872 73872 0 0.0
.data 1892 1892 0 0.0
.text 588012 588012 0 0.0
lock-app k32w061+debug (read/write) 619524 619524 0 0.0
.bss 72024 72024 0 0.0
.data 1852 1852 0 0.0
.text 539848 539848 0 0.0
shell k32w061+debug (read/write) 624624 624624 0 0.0
.bss 74252 74252 0 0.0
.data 1832 1832 0 0.0
.text 542740 542740 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2313768 2313768 0 0.0
.bss 184300 184300 0 0.0
.data 5232 5232 0 0.0
.heap 846912 846912 0 0.0
.text 1276344 1276344 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2308944 2308944 0 0.0
.bss 175824 175824 0 0.0
.data 5528 5528 0 0.0
.heap 855096 855096 0 0.0
.text 1271544 1271544 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2282064 2282064 0 0.0
.bss 174864 174864 0 0.0
.data 5520 5520 0 0.0
.heap 856064 856064 0 0.0
.text 1244664 1244664 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1140008 1140008 0 0.0
.bss 11756 11756 0 0.0
.data 4376 4376 0 0.0
.heap 1020312 1020312 0 0.0
.text 103392 103392 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2053336 2053336 0 0.0
.bss 156900 156900 0 0.0
.data 4864 4864 0 0.0
.heap 874680 874680 0 0.0
.text 1015936 1015936 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 906795 906795 0 0.0
bss 116296 116296 0 0.0
rodata 101980 101980 0 0.0
text 612912 612912 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 869827 869827 0 0.0
bss 112644 112644 0 0.0
rodata 93276 93276 0 0.0
text 587640 587640 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 832794 832794 0 0.0
bss 117672 117672 0 0.0
rodata 97236 97236 0 0.0
text 543340 543340 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 879407 879407 0 0.0
bss 113560 113560 0 0.0
rodata 98096 98096 0 0.0
text 592356 592356 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 805666 805666 0 0.0
bss 114968 114968 0 0.0
rodata 93388 93388 0 0.0
text 522876 522876 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 497463 497463 0 0.0
bss 51820 51820 0 0.0
rodata 45852 45852 0 0.0
text 339492 339492 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 884347 884347 0 0.0
bss 113472 113472 0 0.0
rodata 99452 99452 0 0.0
text 595948 595948 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 877587 877587 0 0.0
bss 113348 113348 0 0.0
rodata 97588 97588 0 0.0
text 591144 591144 0 0.0
shell nrf52840dk_nrf52840 (read/write) 781927 781927 0 0.0
bss 109544 109544 0 0.0
rodata 74276 74276 0 0.0
text 523588 523588 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 696974 696974 0 0.0
bss 110524 110524 0 0.0
rodata 68920 68920 0 0.0
text 444228 444228 0 0.0
p6 all-clusters-app default (read/write) 2354544 2354544 0 0.0
.bss 112436 112436 0 0.0
.data 2520 2520 0 0.0
.heap 918384 918384 0 0.0
.text 1312808 1312808 0 0.0
light-app default (read/write) 2294720 2294720 0 0.0
.bss 101016 101016 0 0.0
.data 2360 2360 0 0.0
.heap 929968 929968 0 0.0
.text 1252984 1252984 0 0.0
lock-app default (read/write) 2270784 2270784 0 0.0
.bss 99896 99896 0 0.0
.data 2328 2328 0 0.0
.heap 931120 931120 0 0.0
.text 1229048 1229048 0 0.0
qpg lighting-app qpg6100+debug (read only) 521328 521328 0 0.0
(read/write) 122336 122336 0 0.0
.bss 82712 82712 0 0.0
.data 992 992 0 0.0
.text 516008 516008 0 0.0
lock-app qpg6100+debug (read only) 495696 495696 0 0.0
(read/write) 122332 122332 0 0.0
.bss 81848 81848 0 0.0
.data 948 948 0 0.0
.text 490376 490376 0 0.0
persistent-storage-app qpg6100+debug (read only) 108104 108104 0 0.0
(read/write) 122336 122336 0 0.0
.bss 36160 36160 0 0.0
.data 288 288 0 0.0
.text 102784 102784 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 810978 810978 0 0.0
bss 82864 82864 0 0.0
noinit 37160 37160 0 0.0
text 566032 566032 0 0.0

@andy31415
Copy link
Contributor

@woody-apple I believe fake platform was primarely used to test mdns, so that it provides some abstractions that are not a real underlying system in #8946

Generally it is intended to test that calls to platform code occur as expected.Realistically I believe it is to be considered a 'validate that mdns works'.

@andy31415
Copy link
Contributor

In #12887 I also enabled build_examples to be able to build and run tests for both current platform and fake.

@woody-apple
Copy link
Contributor

We should pick a better name than fake if it’s for mdns, I’m still curious why Linux doesn’t cover this…

@github-actions
Copy link

github-actions bot commented Dec 13, 2021

PR #12870: Size comparison from 20d5ede to eefbc91

Full report (32 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 20d5ede eefbc91 change % change
efr32 lighting-app BRD4161A (read only) 815948 815948 0 0.0
(read/write) 123152 123152 0 0.0
.bss 121288 121288 0 0.0
.data 1864 1864 0 0.0
.text 815940 815940 0 0.0
BRD4161A+rpc (read only) 803580 803580 0 0.0
(read/write) 139828 139828 0 0.0
.bss 137864 137864 0 0.0
.data 1964 1964 0 0.0
.text 803572 803572 0 0.0
window-app BRD4161A (read only) 793008 793008 0 0.0
(read/write) 122104 122104 0 0.0
.bss 120272 120272 0 0.0
.data 1828 1828 0 0.0
.text 793000 793000 0 0.0
esp32 all-clusters-app c3devkit (read only) 857182 857182 0 0.0
(read/write) 1304434 1304434 0 0.0
.dram0.bss 64696 64696 0 0.0
.dram0.data 14156 14156 0 0.0
.flash.rodata 172544 172544 0 0.0
.flash.text 857182 857182 0 0.0
.iram0.text 62076 62076 0 0.0
m5stack (read only) 961243 961243 0 0.0
(read/write) 450260 450260 0 0.0
.dram0.bss 73984 73984 0 0.0
.dram0.data 34048 34048 0 0.0
.flash.rodata 210440 210440 0 0.0
.flash.text 955859 955859 0 0.0
.iram0.text 123451 123451 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 670408 670408 0 0.0
.bss 73872 73872 0 0.0
.data 1896 1896 0 0.0
.text 588840 588840 0 0.0
lock-app k32w061+debug (read/write) 620344 620344 0 0.0
.bss 72024 72024 0 0.0
.data 1856 1856 0 0.0
.text 540664 540664 0 0.0
shell k32w061+debug (read/write) 625712 625712 0 0.0
.bss 74332 74332 0 0.0
.data 1836 1836 0 0.0
.text 543744 543744 0 0.0
linux chip-tool-ipv6only arm64 (read only) 6873564 6873564 0 0.0
(read/write) 319201 319201 0 0.0
.bss 51921 51921 0 0.0
.data 1192 1192 0 0.0
.data.rel.ro 208784 208784 0 0.0
.dynamic 560 560 0 0.0
.got 53576 53576 0 0.0
.init 24 24 0 0.0
.init_array 176 176 0 0.0
.rodata 365692 365692 0 0.0
.text 5826788 5826788 0 0.0
thermostat-no-ble arm64 (read only) 1954372 1954372 0 0.0
(read/write) 137521 137521 0 0.0
.bss 59537 59537 0 0.0
.data 832 832 0 0.0
.data.rel.ro 70592 70592 0 0.0
.dynamic 560 560 0 0.0
.got 3680 3680 0 0.0
.init 24 24 0 0.0
.init_array 280 280 0 0.0
.rodata 125796 125796 0 0.0
.text 1620272 1620272 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2314024 2314024 0 0.0
.bss 183964 183964 0 0.0
.data 5240 5240 0 0.0
.heap 847240 847240 0 0.0
.text 1276600 1276600 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2309888 2309888 0 0.0
.bss 175824 175824 0 0.0
.data 5536 5536 0 0.0
.heap 855088 855088 0 0.0
.text 1272488 1272488 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2283000 2283000 0 0.0
.bss 174864 174864 0 0.0
.data 5528 5528 0 0.0
.heap 856056 856056 0 0.0
.text 1245600 1245600 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1140008 1140008 0 0.0
.bss 11756 11756 0 0.0
.data 4376 4376 0 0.0
.heap 1020312 1020312 0 0.0
.text 103392 103392 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2053944 2053944 0 0.0
.bss 156980 156980 0 0.0
.data 4864 4864 0 0.0
.heap 874600 874600 0 0.0
.text 1016544 1016544 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 907723 907723 0 0.0
bss 116300 116300 0 0.0
rodata 102060 102060 0 0.0
text 613756 613756 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 870775 870775 0 0.0
bss 112648 112648 0 0.0
rodata 93360 93360 0 0.0
text 588500 588500 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 833726 833726 0 0.0
bss 117672 117672 0 0.0
rodata 97320 97320 0 0.0
text 544184 544184 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 880339 880339 0 0.0
bss 113560 113560 0 0.0
rodata 98180 98180 0 0.0
text 593192 593192 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 806578 806578 0 0.0
bss 114972 114972 0 0.0
rodata 93468 93468 0 0.0
text 523712 523712 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 497463 497463 0 0.0
bss 51820 51820 0 0.0
rodata 45852 45852 0 0.0
text 339492 339492 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 885291 885291 0 0.0
bss 113472 113472 0 0.0
rodata 99532 99532 0 0.0
text 596796 596796 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 878515 878515 0 0.0
bss 113352 113352 0 0.0
rodata 97668 97668 0 0.0
text 591992 591992 0 0.0
shell nrf52840dk_nrf52840 (read/write) 782427 782427 0 0.0
bss 109624 109624 0 0.0
rodata 74296 74296 0 0.0
text 523996 523996 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 697506 697506 0 0.0
bss 110604 110604 0 0.0
rodata 68940 68940 0 0.0
text 444636 444636 0 0.0
p6 all-clusters-app default (read/write) 2360968 2360968 0 0.0
.bss 112164 112164 0 0.0
.data 2528 2528 0 0.0
.heap 918648 918648 0 0.0
.text 1319232 1319232 0 0.0
light-app default (read/write) 2301568 2301568 0 0.0
.bss 101080 101080 0 0.0
.data 2368 2368 0 0.0
.heap 929896 929896 0 0.0
.text 1259832 1259832 0 0.0
lock-app default (read/write) 2277640 2277640 0 0.0
.bss 99960 99960 0 0.0
.data 2328 2328 0 0.0
.heap 931056 931056 0 0.0
.text 1235904 1235904 0 0.0
qpg lighting-app qpg6100+debug (read only) 522160 522160 0 0.0
(read/write) 122332 122332 0 0.0
.bss 82712 82712 0 0.0
.data 996 996 0 0.0
.text 516840 516840 0 0.0
lock-app qpg6100+debug (read only) 496532 496532 0 0.0
(read/write) 122336 122336 0 0.0
.bss 81848 81848 0 0.0
.data 952 952 0 0.0
.text 491212 491212 0 0.0
persistent-storage-app qpg6100+debug (read only) 108104 108104 0 0.0
(read/write) 122336 122336 0 0.0
.bss 36160 36160 0 0.0
.data 288 288 0 0.0
.text 102784 102784 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 812262 812262 0 0.0
bss 82864 82864 0 0.0
noinit 37160 37160 0 0.0
text 567218 567218 0 0.0

@kpschoedel
Copy link
Contributor

What is fake platform adding over Linux?

One difference is that it uses the config defaults, from which every actual platform diverges. This caught a mistake in a test I added last week.

@kghost kghost force-pushed the fake-platform branch 2 times, most recently from ced4419 to ec0ecb1 Compare December 16, 2021 09:33
@github-actions
Copy link

github-actions bot commented Dec 16, 2021

PR #12870: Size comparison from 41700bd to ec0ecb1

Full report (32 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 41700bd ec0ecb1 change % change
efr32 lighting-app BRD4161A (read only) 829740 829740 0 0.0
(read/write) 127356 127356 0 0.0
.bss 125480 125480 0 0.0
.data 1876 1876 0 0.0
.text 829732 829732 0 0.0
BRD4161A+rpc (read only) 817360 817360 0 0.0
(read/write) 144024 144024 0 0.0
.bss 142048 142048 0 0.0
.data 1976 1976 0 0.0
.text 817352 817352 0 0.0
window-app BRD4161A (read only) 803116 803116 0 0.0
(read/write) 126296 126296 0 0.0
.bss 124464 124464 0 0.0
.data 1832 1832 0 0.0
.text 803108 803108 0 0.0
esp32 all-clusters-app c3devkit (read only) 875850 875850 0 0.0
(read/write) 1313090 1313090 0 0.0
.dram0.bss 69808 69808 0 0.0
.dram0.data 14204 14204 0 0.0
.flash.rodata 176024 176024 0 0.0
.flash.text 875850 875850 0 0.0
.iram0.text 62076 62076 0 0.0
m5stack (read only) 938879 938879 0 0.0
(read/write) 442588 442588 0 0.0
.dram0.bss 74272 74272 0 0.0
.dram0.data 34056 34056 0 0.0
.flash.rodata 202752 202752 0 0.0
.flash.text 933495 933495 0 0.0
.iram0.text 123171 123171 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 685556 685556 0 0.0
.bss 78056 78056 0 0.0
.data 1908 1908 0 0.0
.text 599792 599792 0 0.0
lock-app k32w061+debug (read/write) 633120 633120 0 0.0
.bss 76208 76208 0 0.0
.data 1860 1860 0 0.0
.text 549252 549252 0 0.0
shell k32w061+debug (read/write) 638704 638704 0 0.0
.bss 78716 78716 0 0.0
.data 1840 1840 0 0.0
.text 552348 552348 0 0.0
linux chip-tool-ipv6only arm64 (read only) 6917764 6917764 0 0.0
(read/write) 323377 323377 0 0.0
.bss 54577 54577 0 0.0
.data 1096 1096 0 0.0
.data.rel.ro 208016 208016 0 0.0
.dynamic 560 560 0 0.0
.got 55992 55992 0 0.0
.init 24 24 0 0.0
.init_array 168 168 0 0.0
.rodata 378324 378324 0 0.0
.text 5852564 5852564 0 0.0
thermostat-no-ble arm64 (read only) 1993508 1993508 0 0.0
(read/write) 143937 143937 0 0.0
.bss 64321 64321 0 0.0
.data 880 880 0 0.0
.data.rel.ro 72000 72000 0 0.0
.dynamic 560 560 0 0.0
.got 3840 3840 0 0.0
.init 24 24 0 0.0
.init_array 288 288 0 0.0
.rodata 128004 128004 0 0.0
.text 1654032 1654032 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2333912 2333912 0 0.0
.bss 189076 189076 0 0.0
.data 5264 5264 0 0.0
.text 1296488 1296488 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2328488 2328488 0 0.0
.bss 180904 180904 0 0.0
.data 5544 5544 0 0.0
.text 1291088 1291088 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2301584 2301584 0 0.0
.bss 179952 179952 0 0.0
.data 5536 5536 0 0.0
.text 1264184 1264184 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1140008 1140008 0 0.0
.bss 11756 11756 0 0.0
.data 4368 4368 0 0.0
.text 103392 103392 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2053688 2053688 0 0.0
.bss 156980 156980 0 0.0
.data 4864 4864 0 0.0
.text 1016288 1016288 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 935803 935803 0 0.0
bss 118408 118408 0 0.0
rodata 108056 108056 0 0.0
text 631756 631756 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 917723 917723 0 0.0
bss 114740 114740 0 0.0
rodata 99968 99968 0 0.0
text 624872 624872 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 859522 859522 0 0.0
bss 116692 116692 0 0.0
rodata 102984 102984 0 0.0
text 559196 559196 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 907903 907903 0 0.0
bss 117596 117596 0 0.0
rodata 103364 103364 0 0.0
text 609584 609584 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 831862 831862 0 0.0
bss 115908 115908 0 0.0
rodata 98324 98324 0 0.0
text 537060 537060 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 542351 542351 0 0.0
bss 52588 52588 0 0.0
rodata 50668 50668 0 0.0
text 376892 376892 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 912779 912779 0 0.0
bss 117504 117504 0 0.0
rodata 104704 104704 0 0.0
text 613132 613132 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 906015 906015 0 0.0
bss 117384 117384 0 0.0
rodata 102836 102836 0 0.0
text 608332 608332 0 0.0
shell nrf52840dk_nrf52840 (read/write) 796383 796383 0 0.0
bss 109472 109472 0 0.0
rodata 78032 78032 0 0.0
text 532420 532420 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 709018 709018 0 0.0
bss 107360 107360 0 0.0
rodata 72336 72336 0 0.0
text 449912 449912 0 0.0
p6 all-clusters-app default (read/write) 2384656 2384656 0 0.0
.bss 117268 117268 0 0.0
.data 2544 2544 0 0.0
.text 1342920 1342920 0 0.0
light-app default (read/write) 2324024 2324024 0 0.0
.bss 106160 106160 0 0.0
.data 2384 2384 0 0.0
.text 1282288 1282288 0 0.0
lock-app default (read/write) 2296232 2296232 0 0.0
.bss 105040 105040 0 0.0
.data 2336 2336 0 0.0
.text 1254496 1254496 0 0.0
qpg lighting-app qpg6105+debug (read only) 531960 531960 0 0.0
(read/write) 146936 146936 0 0.0
.bss 86824 86824 0 0.0
.data 1004 1004 0 0.0
.text 526640 526640 0 0.0
lock-app qpg6105+debug (read only) 503656 503656 0 0.0
(read/write) 146940 146940 0 0.0
.bss 85960 85960 0 0.0
.data 952 952 0 0.0
.text 498336 498336 0 0.0
persistent-storage-app qpg6105+debug (read only) 106448 106448 0 0.0
(read/write) 146938 146938 0 0.0
.bss 36146 36146 0 0.0
.data 288 288 0 0.0
.text 101128 101128 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 830342 830342 0 0.0
bss 87048 87048 0 0.0
noinit 37160 37160 0 0.0
text 578516 578516 0 0.0

@github-actions
Copy link

github-actions bot commented Dec 21, 2021

PR #12870: Size comparison from bf7feea to 9f1c6f8

Full report (29 builds for efr32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section bf7feea 9f1c6f8 change % change
efr32 lighting-app BRD4161A (read only) 830568 830568 0 0.0
(read/write) 127384 127384 0 0.0
.bss 125504 125504 0 0.0
.data 1876 1876 0 0.0
.text 830560 830560 0 0.0
BRD4161A+rpc (read only) 818196 818196 0 0.0
(read/write) 144048 144048 0 0.0
.bss 142072 142072 0 0.0
.data 1976 1976 0 0.0
.text 818188 818188 0 0.0
window-app BRD4161A (read only) 803944 803944 0 0.0
(read/write) 126320 126320 0 0.0
.bss 124488 124488 0 0.0
.data 1832 1832 0 0.0
.text 803936 803936 0 0.0
k32w light k32w061+release (read/write) 648764 648764 0 0.0
.bss 76512 76512 0 0.0
.data 1904 1904 0 0.0
.text 564548 564548 0 0.0
lock k32w061+release (read/write) 633472 633472 0 0.0
.bss 76224 76224 0 0.0
.data 1860 1860 0 0.0
.text 549588 549588 0 0.0
linux chip-tool-ipv6only arm64 (read only) 7006076 7006076 0 0.0
(read/write) 326289 326289 0 0.0
.bss 54641 54641 0 0.0
.data 1096 1096 0 0.0
.data.rel.ro 210144 210144 0 0.0
.dynamic 560 560 0 0.0
.got 56712 56712 0 0.0
.init 24 24 0 0.0
.init_array 168 168 0 0.0
.rodata 384228 384228 0 0.0
.text 5928548 5928548 0 0.0
thermostat-no-ble arm64 (read only) 2017908 2017908 0 0.0
(read/write) 144497 144497 0 0.0
.bss 64417 64417 0 0.0
.data 880 880 0 0.0
.data.rel.ro 72376 72376 0 0.0
.dynamic 560 560 0 0.0
.got 3888 3888 0 0.0
.init 24 24 0 0.0
.init_array 296 296 0 0.0
.rodata 128932 128932 0 0.0
.text 1676304 1676304 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2340104 2340104 0 0.0
.bss 188660 188660 0 0.0
.data 5272 5272 0 0.0
.text 1302680 1302680 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2330576 2330576 0 0.0
.bss 180936 180936 0 0.0
.data 5552 5552 0 0.0
.text 1293176 1293176 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2303672 2303672 0 0.0
.bss 179984 179984 0 0.0
.data 5544 5544 0 0.0
.text 1266272 1266272 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1140008 1140008 0 0.0
.bss 11756 11756 0 0.0
.data 4368 4368 0 0.0
.text 103392 103392 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2053688 2053688 0 0.0
.bss 156972 156972 0 0.0
.data 4864 4864 0 0.0
.text 1016288 1016288 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 935967 935967 0 0.0
bss 118428 118428 0 0.0
rodata 108124 108124 0 0.0
text 631864 631864 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 922367 922367 0 0.0
bss 115472 115472 0 0.0
rodata 101540 101540 0 0.0
text 627176 627176 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 859730 859730 0 0.0
bss 116712 116712 0 0.0
rodata 103048 103048 0 0.0
text 559308 559308 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 908111 908111 0 0.0
bss 117616 117616 0 0.0
rodata 103428 103428 0 0.0
text 609692 609692 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 832042 832042 0 0.0
bss 115928 115928 0 0.0
rodata 98392 98392 0 0.0
text 537172 537172 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 542351 542351 0 0.0
bss 52588 52588 0 0.0
rodata 50668 50668 0 0.0
text 376892 376892 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 909375 909375 0 0.0
bss 117376 117376 0 0.0
rodata 103644 103644 0 0.0
text 610928 610928 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 906191 906191 0 0.0
bss 117404 117404 0 0.0
rodata 102900 102900 0 0.0
text 608440 608440 0 0.0
shell nrf52840dk_nrf52840 (read/write) 796079 796079 0 0.0
bss 109464 109464 0 0.0
rodata 78096 78096 0 0.0
text 532048 532048 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 708710 708710 0 0.0
bss 107352 107352 0 0.0
rodata 72396 72396 0 0.0
text 449544 449544 0 0.0
p6 all-clusters-app default (read/write) 2392056 2392056 0 0.0
.bss 116860 116860 0 0.0
.data 2552 2552 0 0.0
.text 1350320 1350320 0 0.0
light-app default (read/write) 2325104 2325104 0 0.0
.bss 106184 106184 0 0.0
.data 2384 2384 0 0.0
.text 1283368 1283368 0 0.0
lock-app default (read/write) 2297312 2297312 0 0.0
.bss 105064 105064 0 0.0
.data 2336 2336 0 0.0
.text 1255576 1255576 0 0.0
qpg lighting-app qpg6105+debug (read only) 532232 532232 0 0.0
(read/write) 146936 146936 0 0.0
.bss 86840 86840 0 0.0
.data 1004 1004 0 0.0
.text 526912 526912 0 0.0
lock-app qpg6105+debug (read only) 503912 503912 0 0.0
(read/write) 146940 146940 0 0.0
.bss 85976 85976 0 0.0
.data 952 952 0 0.0
.text 498592 498592 0 0.0
persistent-storage-app qpg6105+debug (read only) 106448 106448 0 0.0
(read/write) 146938 146938 0 0.0
.bss 36146 36146 0 0.0
.data 288 288 0 0.0
.text 101128 101128 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 832258 832258 0 0.0
bss 87088 87088 0 0.0
noinit 37160 37160 0 0.0
text 580366 580366 0 0.0

@stale
Copy link

stale bot commented Dec 28, 2021

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale Stale issue or PR label Dec 28, 2021
@cecille
Copy link
Contributor

cecille commented Jan 4, 2022

Apologies all - missed this before I went on vacation. Fake platform is for unit testing - it's a stub platform that can catch and check data that's sent to the platform layer. Right now the only test implemented is mdns, but it's not mdns specific. It is used to test that the data / commands etc. sent to the platform layer are correct.

@stale stale bot removed the stale Stale issue or PR label Jan 4, 2022
@andy31415 andy31415 merged commit a0a932a into project-chip:master Jan 4, 2022
@kghost kghost deleted the fake-platform branch January 5, 2022 01:28
step0035 pushed a commit to hank820/connectedhomeip that referenced this pull request Feb 8, 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.

8 participants