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

Python REPL: Persistent Storage, Multi Fabric, JupyterLab Support, #13715

Merged

Conversation

mrjerryjohns
Copy link
Contributor

This adds support for the following features in the Python REPL:

  • Added instructions for building the REPL
  • Creates a new "REPL Playground", which is a Jupyter Lab instance of the REPL for interactive development
  • Adds a number of Jupyter Notebooks that serve as both guides on using the various features of the REPL as well as being runnable within the playground interactively to streamline usage of its various features
  • Persistent storage support in the form of a JSON configuration file whose path can be over-riden at REPL initialization. JSON was chosen to make it easy to debug and read the configuration file.
  • Creation of a new FabricAdmin class that manages the fabric, while ChipDeviceController shifts away from being a singleton to encapsulating a controller instance on that fabric. We can now instantiate multiple fabrics in the REPL as well as commission a device onto multiple such fabrics.
  • Fix-ups to the chip-device-ctrl to work with this new model.

Testing:

  • Validated the various Notebooks to ensure all existing and newly added
    functionality work well. This includes commissioning a target onto
    multiple fabrics and ensuring IM interactions work.

@github-actions
Copy link

github-actions bot commented Jan 19, 2022

PR #13715: Size comparison from aa00176 to 896187f

Increases above 0.2%:

platform target config section aa00176 896187f change % change
efr32 lighting-app BRD4161A .data 1892 1896 4 0.2
BRD4161A+rpc .data 1992 1996 4 0.2
window-app BRD4161A .data 1844 1848 4 0.2
linux chip-tool-ipv6only arm64 .data 1112 1120 8 0.7
thermostat-no-ble arm64 .data 896 904 8 0.9
p6 all-clusters-app default .data 2608 2616 8 0.3
light-app default .data 2400 2408 8 0.3
qpg lighting-app qpg6105+debug .data 1056 1060 4 0.4
lock-app qpg6105+debug .data 980 984 4 0.4
Increases (13 builds for efr32, k32w, linux, p6, qpg, telink)
platform target config section aa00176 896187f change % change
efr32 lighting-app BRD4161A (read only) 834836 834852 16 0.0
(read/write) 127636 127640 4 0.0
.data 1892 1896 4 0.2
.text 834828 834844 16 0.0
BRD4161A+rpc (read only) 822224 822240 16 0.0
(read/write) 144296 144304 8 0.0
.data 1992 1996 4 0.2
.text 822216 822232 16 0.0
window-app BRD4161A (read only) 805408 805424 16 0.0
.data 1844 1848 4 0.2
.text 805400 805416 16 0.0
k32w light k32w061+release (read/write) 659060 659064 4 0.0
.data 1860 1864 4 0.2
lock k32w061+release (read/write) 661792 661812 20 0.0
.data 1880 1884 4 0.2
.text 576680 576696 16 0.0
linux chip-tool-ipv6only arm64 (read/write) 374145 374161 16 0.0
.data 1112 1120 8 0.7
.got 65488 65496 8 0.0
.rodata 422212 422276 64 0.0
thermostat-no-ble arm64 (read only) 2043580 2043612 32 0.0
(read/write) 145905 145921 16 0.0
.data 896 904 8 0.9
.got 4032 4040 8 0.2
p6 all-clusters-app default .data 2608 2616 8 0.3
light-app default (read/write) 2329976 2329992 16 0.0
.data 2400 2408 8 0.3
.text 1288240 1288256 16 0.0
lock-app default (read/write) 2299000 2299016 16 0.0
.text 1257264 1257280 16 0.0
qpg lighting-app qpg6105+debug (read only) 565064 565072 8 0.0
.data 1056 1060 4 0.4
.text 559744 559752 8 0.0
lock-app qpg6105+debug (read only) 515476 515492 16 0.0
(read/write) 146936 146940 4 0.0
.data 980 984 4 0.4
.text 510156 510172 16 0.0
telink lighting-app tlsr9518adk80d (read/write) 840698 840706 8 0.0
text 587724 587728 4 0.0
Decreases (2 builds for linux, qpg)
platform target config section aa00176 896187f change % change
linux chip-tool-ipv6only arm64 (read only) 8122444 8122428 -16 -0.0
.text 6902804 6902708 -96 -0.0
qpg lighting-app qpg6105+debug (read/write) 146940 146936 -4 -0.0
Full report (14 builds for efr32, k32w, linux, p6, qpg, telink)
platform target config section aa00176 896187f change % change
efr32 lighting-app BRD4161A (read only) 834836 834852 16 0.0
(read/write) 127636 127640 4 0.0
.bss 125744 125744 0 0.0
.data 1892 1896 4 0.2
.text 834828 834844 16 0.0
BRD4161A+rpc (read only) 822224 822240 16 0.0
(read/write) 144296 144304 8 0.0
.bss 142304 142304 0 0.0
.data 1992 1996 4 0.2
.text 822216 822232 16 0.0
window-app BRD4161A (read only) 805408 805424 16 0.0
(read/write) 126328 126328 0 0.0
.bss 124480 124480 0 0.0
.data 1844 1848 4 0.2
.text 805400 805416 16 0.0
k32w light k32w061+release (read/write) 659060 659064 4 0.0
.bss 77136 77136 0 0.0
.data 1860 1864 4 0.2
.text 574264 574264 0 0.0
lock k32w061+release (read/write) 661792 661812 20 0.0
.bss 77432 77432 0 0.0
.data 1880 1884 4 0.2
.text 576680 576696 16 0.0
linux chip-tool-ipv6only arm64 (read only) 8122444 8122428 -16 -0.0
(read/write) 374145 374161 16 0.0
.bss 55217 55217 0 0.0
.data 1112 1120 8 0.7
.data.rel.ro 248632 248632 0 0.0
.dynamic 560 560 0 0.0
.got 65488 65496 8 0.0
.init 24 24 0 0.0
.init_array 168 168 0 0.0
.rodata 422212 422276 64 0.0
.text 6902804 6902708 -96 -0.0
thermostat-no-ble arm64 (read only) 2043580 2043612 32 0.0
(read/write) 145905 145921 16 0.0
.bss 65089 65089 0 0.0
.data 896 904 8 0.9
.data.rel.ro 72952 72952 0 0.0
.dynamic 560 560 0 0.0
.got 4032 4040 8 0.2
.init 24 24 0 0.0
.init_array 304 304 0 0.0
.rodata 129916 129916 0 0.0
.text 1699296 1699296 0 0.0
p6 all-clusters-app default (read/write) 2405536 2405536 0 0.0
.bss 117556 117556 0 0.0
.data 2608 2616 8 0.3
.text 1363800 1363800 0 0.0
light-app default (read/write) 2329976 2329992 16 0.0
.bss 106128 106128 0 0.0
.data 2400 2408 8 0.3
.text 1288240 1288256 16 0.0
lock-app default (read/write) 2299000 2299016 16 0.0
.bss 104976 104976 0 0.0
.data 2352 2352 0 0.0
.text 1257264 1257280 16 0.0
qpg lighting-app qpg6105+debug (read only) 565064 565072 8 0.0
(read/write) 146940 146936 -4 -0.0
.bss 89960 89960 0 0.0
.data 1056 1060 4 0.4
.text 559744 559752 8 0.0
lock-app qpg6105+debug (read only) 515476 515492 16 0.0
(read/write) 146936 146940 4 0.0
.bss 88584 88584 0 0.0
.data 980 984 4 0.4
.text 510156 510172 16 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) 840698 840706 8 0.0
bss 87316 87316 0 0.0
noinit 37160 37160 0 0.0
text 587724 587728 4 0.0

scripts/build_python.sh Outdated Show resolved Hide resolved
scripts/build_python.sh Outdated Show resolved Hide resolved
src/controller/CHIPDeviceController.cpp Outdated Show resolved Hide resolved
src/controller/CHIPDeviceController.cpp Outdated Show resolved Hide resolved
@github-actions
Copy link

github-actions bot commented Jan 19, 2022

PR #13715: Size comparison from ffd25d8 to 36b7a6f

Increases above 0.2%:

platform target config section ffd25d8 36b7a6f change % change
linux chip-tool-ipv6only arm64 .data 1112 1120 8 0.7
thermostat-no-ble arm64 .data 896 904 8 0.9
p6 all-clusters-app default .data 2608 2616 8 0.3
light-app default .data 2400 2408 8 0.3
qpg lighting-app qpg6105+debug .data 1056 1060 4 0.4
lock-app qpg6105+debug .data 980 984 4 0.4
Increases (14 builds for efr32, k32w, linux, mbed, p6, qpg, telink)
platform target config section ffd25d8 36b7a6f change % change
efr32 lighting-app BRD4161A (read only) 834836 834852 16 0.0
(read/write) 127636 127640 4 0.0
.data 1892 1896 4 0.2
.text 834828 834844 16 0.0
BRD4161A+rpc (read only) 822224 822240 16 0.0
(read/write) 144296 144304 8 0.0
.data 1992 1996 4 0.2
.text 822216 822232 16 0.0
window-app BRD4161A (read only) 805408 805424 16 0.0
.data 1844 1848 4 0.2
.text 805400 805416 16 0.0
k32w light k32w061+release (read/write) 659060 659064 4 0.0
.data 1860 1864 4 0.2
lock k32w061+release (read/write) 661792 661812 20 0.0
.data 1880 1884 4 0.2
.text 576680 576696 16 0.0
linux chip-tool-ipv6only arm64 (read/write) 374145 374161 16 0.0
.data 1112 1120 8 0.7
.got 65488 65496 8 0.0
.rodata 422212 422276 64 0.0
thermostat-no-ble arm64 (read only) 2043580 2043612 32 0.0
(read/write) 145905 145921 16 0.0
.data 896 904 8 0.9
.got 4032 4040 8 0.2
mbed all-clusters-app CY8CPROTO_062_4343W+release .data 5328 5336 8 0.2
p6 all-clusters-app default .data 2608 2616 8 0.3
light-app default (read/write) 2329976 2329992 16 0.0
.data 2400 2408 8 0.3
.text 1288240 1288256 16 0.0
lock-app default (read/write) 2299000 2299016 16 0.0
.text 1257264 1257280 16 0.0
qpg lighting-app qpg6105+debug (read only) 565064 565072 8 0.0
.data 1056 1060 4 0.4
.text 559744 559752 8 0.0
lock-app qpg6105+debug (read only) 515476 515492 16 0.0
(read/write) 146936 146940 4 0.0
.data 980 984 4 0.4
.text 510156 510172 16 0.0
telink lighting-app tlsr9518adk80d (read/write) 840698 840706 8 0.0
text 587724 587728 4 0.0
Decreases (2 builds for linux, qpg)
platform target config section ffd25d8 36b7a6f change % change
linux chip-tool-ipv6only arm64 (read only) 8122444 8122428 -16 -0.0
.text 6902804 6902708 -96 -0.0
qpg lighting-app qpg6105+debug (read/write) 146940 146936 -4 -0.0
Full report (19 builds for efr32, k32w, linux, mbed, p6, qpg, telink)
platform target config section ffd25d8 36b7a6f change % change
efr32 lighting-app BRD4161A (read only) 834836 834852 16 0.0
(read/write) 127636 127640 4 0.0
.bss 125744 125744 0 0.0
.data 1892 1896 4 0.2
.text 834828 834844 16 0.0
BRD4161A+rpc (read only) 822224 822240 16 0.0
(read/write) 144296 144304 8 0.0
.bss 142304 142304 0 0.0
.data 1992 1996 4 0.2
.text 822216 822232 16 0.0
window-app BRD4161A (read only) 805408 805424 16 0.0
(read/write) 126328 126328 0 0.0
.bss 124480 124480 0 0.0
.data 1844 1848 4 0.2
.text 805400 805416 16 0.0
k32w light k32w061+release (read/write) 659060 659064 4 0.0
.bss 77136 77136 0 0.0
.data 1860 1864 4 0.2
.text 574264 574264 0 0.0
lock k32w061+release (read/write) 661792 661812 20 0.0
.bss 77432 77432 0 0.0
.data 1880 1884 4 0.2
.text 576680 576696 16 0.0
linux chip-tool-ipv6only arm64 (read only) 8122444 8122428 -16 -0.0
(read/write) 374145 374161 16 0.0
.bss 55217 55217 0 0.0
.data 1112 1120 8 0.7
.data.rel.ro 248632 248632 0 0.0
.dynamic 560 560 0 0.0
.got 65488 65496 8 0.0
.init 24 24 0 0.0
.init_array 168 168 0 0.0
.rodata 422212 422276 64 0.0
.text 6902804 6902708 -96 -0.0
thermostat-no-ble arm64 (read only) 2043580 2043612 32 0.0
(read/write) 145905 145921 16 0.0
.bss 65089 65089 0 0.0
.data 896 904 8 0.9
.data.rel.ro 72952 72952 0 0.0
.dynamic 560 560 0 0.0
.got 4032 4040 8 0.2
.init 24 24 0 0.0
.init_array 304 304 0 0.0
.rodata 129916 129916 0 0.0
.text 1699296 1699296 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2350160 2350160 0 0.0
.bss 189220 189220 0 0.0
.data 5328 5336 8 0.2
.text 1312736 1312736 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2334424 2334424 0 0.0
.bss 180760 180760 0 0.0
.data 5576 5576 0 0.0
.text 1297024 1297024 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2304768 2304768 0 0.0
.bss 179768 179768 0 0.0
.data 5552 5552 0 0.0
.text 1267368 1267368 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
p6 all-clusters-app default (read/write) 2405536 2405536 0 0.0
.bss 117556 117556 0 0.0
.data 2608 2616 8 0.3
.text 1363800 1363800 0 0.0
light-app default (read/write) 2329976 2329992 16 0.0
.bss 106128 106128 0 0.0
.data 2400 2408 8 0.3
.text 1288240 1288256 16 0.0
lock-app default (read/write) 2299000 2299016 16 0.0
.bss 104976 104976 0 0.0
.data 2352 2352 0 0.0
.text 1257264 1257280 16 0.0
qpg lighting-app qpg6105+debug (read only) 565064 565072 8 0.0
(read/write) 146940 146936 -4 -0.0
.bss 89960 89960 0 0.0
.data 1056 1060 4 0.4
.text 559744 559752 8 0.0
lock-app qpg6105+debug (read only) 515476 515492 16 0.0
(read/write) 146936 146940 4 0.0
.bss 88584 88584 0 0.0
.data 980 984 4 0.4
.text 510156 510172 16 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) 840698 840706 8 0.0
bss 87316 87316 0 0.0
noinit 37160 37160 0 0.0
text 587724 587728 4 0.0

Copy link
Contributor

@bzbarsky-apple bzbarsky-apple left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like there are pieces of other PRs in here too... Please merge those and do a clean PR here?

@mrjerryjohns
Copy link
Contributor Author

It looks like there are pieces of other PRs in here too... Please merge those and do a clean PR here?

Yes, there are. This PR is just put out to get reviews started, but it has bits from #13569 as well. I'm trying to get that merged today.

@github-actions
Copy link

github-actions bot commented Jan 24, 2022

PR #13715: Size comparison from d6b2a6b to 37115be

Increases (3 builds for k32w, linux, qpg)
platform target config section d6b2a6b 37115be change % change
k32w light k32w061+release (read/write) 660556 660588 32 0.0
.text 576280 576312 32 0.0
linux chip-tool-ipv6only arm64 (read only) 8521332 8521700 368 0.0
.rodata 436460 436508 48 0.0
.text 7246436 7246756 320 0.0
qpg lighting-app qpg6105+debug (read only) 567428 567476 48 0.0
.text 562108 562156 48 0.0
Full report (33 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section d6b2a6b 37115be change % change
cyw30739 light cyw930739m2evb_01 (read/write) 574390 574390 0 0.0
.app_xip_area 479404 479404 0 0.0
.bss 77724 77724 0 0.0
.data 604 604 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
efr32 lighting-app BRD4161A (read only) 835916 835916 0 0.0
(read/write) 127244 127244 0 0.0
.bss 125344 125344 0 0.0
.data 1900 1900 0 0.0
.text 835908 835908 0 0.0
BRD4161A+rpc (read only) 823336 823336 0 0.0
(read/write) 143904 143904 0 0.0
.bss 141904 141904 0 0.0
.data 2000 2000 0 0.0
.text 823328 823328 0 0.0
window-app BRD4161A (read only) 806476 806476 0 0.0
(read/write) 125812 125812 0 0.0
.bss 123960 123960 0 0.0
.data 1852 1852 0 0.0
.text 806468 806468 0 0.0
esp32 all-clusters-app c3devkit (read only) 918584 918584 0 0.0
(read/write) 1383418 1383418 0 0.0
.dram0.bss 70704 70704 0 0.0
.dram0.data 14252 14252 0 0.0
.flash.rodata 179344 179344 0 0.0
.flash.text 918584 918584 0 0.0
.iram0.text 62056 62056 0 0.0
m5stack (read only) 967091 967091 0 0.0
(read/write) 449836 449836 0 0.0
.dram0.bss 75168 75168 0 0.0
.dram0.data 34032 34032 0 0.0
.flash.rodata 208508 208508 0 0.0
.flash.text 961707 961707 0 0.0
.iram0.text 123399 123399 0 0.0
k32w light k32w061+release (read/write) 660556 660588 32 0.0
.bss 76608 76608 0 0.0
.data 1868 1868 0 0.0
.text 576280 576312 32 0.0
lock k32w061+release (read/write) 661312 661312 0 0.0
.bss 76848 76848 0 0.0
.data 1888 1888 0 0.0
.text 576776 576776 0 0.0
linux chip-tool-ipv6only arm64 (read only) 8521332 8521700 368 0.0
(read/write) 390753 390753 0 0.0
.bss 56049 56049 0 0.0
.data 1128 1128 0 0.0
.data.rel.ro 260872 260872 0 0.0
.dynamic 560 560 0 0.0
.got 68952 68952 0 0.0
.init 24 24 0 0.0
.init_array 200 200 0 0.0
.rodata 436460 436508 48 0.0
.text 7246436 7246756 320 0.0
thermostat-no-ble arm64 (read only) 2051916 2051916 0 0.0
(read/write) 145697 145697 0 0.0
.bss 64785 64785 0 0.0
.data 904 904 0 0.0
.data.rel.ro 72984 72984 0 0.0
.dynamic 560 560 0 0.0
.got 4064 4064 0 0.0
.init 24 24 0 0.0
.init_array 320 320 0 0.0
.rodata 130700 130700 0 0.0
.text 1706720 1706720 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2352184 2352184 0 0.0
.bss 189412 189412 0 0.0
.data 5304 5304 0 0.0
.text 1314760 1314760 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2334408 2334408 0 0.0
.bss 180960 180960 0 0.0
.data 5584 5584 0 0.0
.text 1297008 1297008 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2304760 2304760 0 0.0
.bss 179960 179960 0 0.0
.data 5560 5560 0 0.0
.text 1267360 1267360 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) 942879 942879 0 0.0
bss 119044 119044 0 0.0
rodata 108916 108916 0 0.0
text 637312 637312 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 928347 928347 0 0.0
bss 116088 116088 0 0.0
rodata 101368 101368 0 0.0
text 632708 632708 0 0.0
nrf52840dongle_nrf52840 (read/write) 993527 993527 0 0.0
bss 121884 121884 0 0.0
rodata 113672 113672 0 0.0
text 669512 669512 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 852706 852706 0 0.0
bss 115828 115828 0 0.0
rodata 102092 102092 0 0.0
text 554232 554232 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 912223 912223 0 0.0
bss 118196 118196 0 0.0
rodata 103884 103884 0 0.0
text 612756 612756 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 822294 822294 0 0.0
bss 115016 115016 0 0.0
rodata 97112 97112 0 0.0
text 529712 529712 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) 915083 915083 0 0.0
bss 117960 117960 0 0.0
rodata 104248 104248 0 0.0
text 615404 615404 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 910267 910267 0 0.0
bss 117984 117984 0 0.0
rodata 103400 103400 0 0.0
text 611428 611428 0 0.0
shell nrf52840dk_nrf52840 (read/write) 798527 798527 0 0.0
bss 109776 109776 0 0.0
rodata 78324 78324 0 0.0
text 533928 533928 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 711342 711342 0 0.0
bss 107664 107664 0 0.0
rodata 72624 72624 0 0.0
text 451608 451608 0 0.0
p6 all-clusters-app default (read/write) 2410472 2410472 0 0.0
.bss 117756 117756 0 0.0
.data 2584 2584 0 0.0
.text 1368736 1368736 0 0.0
light-app default (read/write) 2330736 2330736 0 0.0
.bss 105544 105544 0 0.0
.data 2408 2408 0 0.0
.text 1289000 1289000 0 0.0
lock-app default (read/write) 2299752 2299752 0 0.0
.bss 104392 104392 0 0.0
.data 2360 2360 0 0.0
.text 1258016 1258016 0 0.0
qpg lighting-app qpg6105+debug (read only) 567428 567476 48 0.0
(read/write) 146940 146940 0 0.0
.bss 89688 89688 0 0.0
.data 1064 1064 0 0.0
.text 562108 562156 48 0.0
lock-app qpg6105+debug (read only) 515904 515904 0 0.0
(read/write) 146936 146936 0 0.0
.bss 88256 88256 0 0.0
.data 988 988 0 0.0
.text 510584 510584 0 0.0
persistent-storage-app qpg6105+debug (read only) 107140 107140 0 0.0
(read/write) 146940 146940 0 0.0
.bss 38504 38504 0 0.0
.data 288 288 0 0.0
.text 101820 101820 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 841718 841718 0 0.0
bss 87492 87492 0 0.0
noinit 37160 37160 0 0.0
text 588346 588346 0 0.0

get implicitly shutdown when users of the REPL manually shutdown
controllers completely or if they call
ChipReplStartup.LoadFabricAdmins() multiple times (as they would in a
Jupyter Notebook).
src/controller/python/test/test_scripts/base.py Outdated Show resolved Hide resolved
src/controller/python/chip/storage/__init__.py Outdated Show resolved Hide resolved
src/controller/python/chip/storage/__init__.py Outdated Show resolved Hide resolved
src/controller/python/OpCredsBinding.cpp Outdated Show resolved Hide resolved
@woody-apple
Copy link
Contributor

Fast tracking, given > 3 business days for review.

@github-actions
Copy link

github-actions bot commented Jan 28, 2022

PR #13715: Size comparison from 92f8343 to c257790

Increases (1 build for linux)
platform target config section 92f8343 c257790 change % change
linux chip-tool-ipv6only arm64 (read only) 6765620 6766004 384 0.0
.rodata 386892 386924 32 0.0
.text 5806628 5806980 352 0.0
Full report (16 builds for cyw30739, efr32, k32w, linux, p6, qpg, telink)
platform target config section 92f8343 c257790 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 578130 578130 0 0.0
.app_xip_area 484224 484224 0 0.0
.bss 76652 76652 0 0.0
.data 596 596 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock-app CYW30739 (read/write) 536142 536142 0 0.0
.app_xip_area 443780 443780 0 0.0
.bss 75148 75148 0 0.0
.data 560 560 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
efr32 lighting-app BRD4161A (read only) 842984 842984 0 0.0
(read/write) 126200 126200 0 0.0
.bss 124296 124296 0 0.0
.data 1900 1900 0 0.0
.text 842976 842976 0 0.0
BRD4161A+rpc (read only) 830336 830336 0 0.0
(read/write) 142856 142856 0 0.0
.bss 140856 140856 0 0.0
.data 2000 2000 0 0.0
.text 830328 830328 0 0.0
window-app BRD4161A (read only) 815560 815560 0 0.0
(read/write) 124852 124852 0 0.0
.bss 122996 122996 0 0.0
.data 1856 1856 0 0.0
.text 815552 815552 0 0.0
k32w light k32w061+release (read/write) 662940 662940 0 0.0
.bss 76428 76428 0 0.0
.data 1868 1868 0 0.0
.text 578844 578844 0 0.0
lock k32w061+release (read/write) 663844 663844 0 0.0
.bss 76692 76692 0 0.0
.data 1892 1892 0 0.0
.text 579460 579460 0 0.0
linux chip-tool-ipv6only arm64 (read only) 6765620 6766004 384 0.0
(read/write) 279201 279201 0 0.0
.bss 55537 55537 0 0.0
.data 1128 1128 0 0.0
.data.rel.ro 175984 175984 0 0.0
.dynamic 560 560 0 0.0
.got 42784 42784 0 0.0
.init 24 24 0 0.0
.init_array 200 200 0 0.0
.rodata 386892 386924 32 0.0
.text 5806628 5806980 352 0.0
thermostat-no-ble arm64 (read only) 2080620 2080620 0 0.0
(read/write) 149537 149537 0 0.0
.bss 67169 67169 0 0.0
.data 960 960 0 0.0
.data.rel.ro 74288 74288 0 0.0
.dynamic 560 560 0 0.0
.got 4144 4144 0 0.0
.init 24 24 0 0.0
.init_array 336 336 0 0.0
.rodata 129932 129932 0 0.0
.text 1733344 1733344 0 0.0
p6 all-clusters-app default (read/write) 2441656 2441656 0 0.0
.bss 116740 116740 0 0.0
.data 2584 2584 0 0.0
.text 1399920 1399920 0 0.0
light-app default (read/write) 2338568 2338568 0 0.0
.bss 104484 104484 0 0.0
.data 2408 2408 0 0.0
.text 1296832 1296832 0 0.0
lock-app default (read/write) 2304080 2304080 0 0.0
.bss 104228 104228 0 0.0
.data 2360 2360 0 0.0
.text 1262344 1262344 0 0.0
qpg lighting-app qpg6105+debug (read only) 570884 570884 0 0.0
(read/write) 146936 146936 0 0.0
.bss 88640 88640 0 0.0
.data 1060 1060 0 0.0
.text 565564 565564 0 0.0
lock-app qpg6105+debug (read only) 517004 517004 0 0.0
(read/write) 146940 146940 0 0.0
.bss 88112 88112 0 0.0
.data 992 992 0 0.0
.text 511684 511684 0 0.0
persistent-storage-app qpg6105+debug (read only) 107140 107140 0 0.0
(read/write) 146940 146940 0 0.0
.bss 38504 38504 0 0.0
.data 288 288 0 0.0
.text 101820 101820 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 845770 845770 0 0.0
bss 86440 86440 0 0.0
noinit 37160 37160 0 0.0
text 592508 592508 0 0.0

@github-actions
Copy link

github-actions bot commented Jan 28, 2022

PR #13715: Size comparison from 92f8343 to 399f99e

Increases (1 build for linux)
platform target config section 92f8343 399f99e change % change
linux chip-tool-ipv6only arm64 (read only) 6765620 6766004 384 0.0
.rodata 386892 386924 32 0.0
.text 5806628 5806980 352 0.0
Full report (33 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 92f8343 399f99e change % change
cyw30739 light cyw930739m2evb_01 (read/write) 578130 578130 0 0.0
.app_xip_area 484224 484224 0 0.0
.bss 76652 76652 0 0.0
.data 596 596 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock-app CYW30739 (read/write) 536142 536142 0 0.0
.app_xip_area 443780 443780 0 0.0
.bss 75148 75148 0 0.0
.data 560 560 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
efr32 lighting-app BRD4161A (read only) 842984 842984 0 0.0
(read/write) 126200 126200 0 0.0
.bss 124296 124296 0 0.0
.data 1900 1900 0 0.0
.text 842976 842976 0 0.0
BRD4161A+rpc (read only) 830336 830336 0 0.0
(read/write) 142856 142856 0 0.0
.bss 140856 140856 0 0.0
.data 2000 2000 0 0.0
.text 830328 830328 0 0.0
window-app BRD4161A (read only) 815560 815560 0 0.0
(read/write) 124852 124852 0 0.0
.bss 122996 122996 0 0.0
.data 1856 1856 0 0.0
.text 815552 815552 0 0.0
esp32 all-clusters-app c3devkit (read only) 932734 932734 0 0.0
(read/write) 1397322 1397322 0 0.0
.dram0.bss 69688 69688 0 0.0
.dram0.data 14244 14244 0 0.0
.flash.rodata 194480 194480 0 0.0
.flash.text 932734 932734 0 0.0
.iram0.text 62056 62056 0 0.0
m5stack (read only) 980687 980687 0 0.0
(read/write) 461692 461692 0 0.0
.dram0.bss 74432 74432 0 0.0
.dram0.data 34024 34024 0 0.0
.flash.rodata 221108 221108 0 0.0
.flash.text 975303 975303 0 0.0
.iram0.text 123399 123399 0 0.0
k32w light k32w061+release (read/write) 662940 662940 0 0.0
.bss 76428 76428 0 0.0
.data 1868 1868 0 0.0
.text 578844 578844 0 0.0
lock k32w061+release (read/write) 663844 663844 0 0.0
.bss 76692 76692 0 0.0
.data 1892 1892 0 0.0
.text 579460 579460 0 0.0
linux chip-tool-ipv6only arm64 (read only) 6765620 6766004 384 0.0
(read/write) 279201 279201 0 0.0
.bss 55537 55537 0 0.0
.data 1128 1128 0 0.0
.data.rel.ro 175984 175984 0 0.0
.dynamic 560 560 0 0.0
.got 42784 42784 0 0.0
.init 24 24 0 0.0
.init_array 200 200 0 0.0
.rodata 386892 386924 32 0.0
.text 5806628 5806980 352 0.0
thermostat-no-ble arm64 (read only) 2080620 2080620 0 0.0
(read/write) 149537 149537 0 0.0
.bss 67169 67169 0 0.0
.data 960 960 0 0.0
.data.rel.ro 74288 74288 0 0.0
.dynamic 560 560 0 0.0
.got 4144 4144 0 0.0
.init 24 24 0 0.0
.init_array 336 336 0 0.0
.rodata 129932 129932 0 0.0
.text 1733344 1733344 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2382408 2382408 0 0.0
.bss 188588 188588 0 0.0
.data 5288 5288 0 0.0
.text 1345008 1345008 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2338200 2338200 0 0.0
.bss 179304 179304 0 0.0
.data 5584 5584 0 0.0
.text 1300800 1300800 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2302240 2302240 0 0.0
.bss 179208 179208 0 0.0
.data 5552 5552 0 0.0
.text 1264840 1264840 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) 2292980 2292980 0 0.0
.bss 176532 176532 0 0.0
.data 5384 5384 0 0.0
.text 1255552 1255552 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 981375 981375 0 0.0
bss 119660 119660 0 0.0
rodata 115684 115684 0 0.0
text 668228 668228 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 966923 966923 0 0.0
bss 116704 116704 0 0.0
rodata 107160 107160 0 0.0
text 664672 664672 0 0.0
nrf52840dongle_nrf52840 (read/write) 997459 997459 0 0.0
bss 120832 120832 0 0.0
rodata 114516 114516 0 0.0
text 673656 673656 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 890546 890546 0 0.0
bss 116448 116448 0 0.0
rodata 108964 108964 0 0.0
text 584416 584416 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 913955 913955 0 0.0
bss 118040 118040 0 0.0
rodata 104320 104320 0 0.0
text 614212 614212 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 824006 824006 0 0.0
bss 114856 114856 0 0.0
rodata 97528 97528 0 0.0
text 531172 531172 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 541779 541779 0 0.0
bss 52588 52588 0 0.0
rodata 50048 50048 0 0.0
text 376940 376940 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 916819 916819 0 0.0
bss 117792 117792 0 0.0
rodata 104832 104832 0 0.0
text 616748 616748 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 912003 912003 0 0.0
bss 117816 117816 0 0.0
rodata 103936 103936 0 0.0
text 612788 612788 0 0.0
shell nrf52840dk_nrf52840 (read/write) 798203 798203 0 0.0
bss 109776 109776 0 0.0
rodata 78288 78288 0 0.0
text 533640 533640 0 0.0
p6 all-clusters-app default (read/write) 2441656 2441656 0 0.0
.bss 116740 116740 0 0.0
.data 2584 2584 0 0.0
.text 1399920 1399920 0 0.0
light-app default (read/write) 2338568 2338568 0 0.0
.bss 104484 104484 0 0.0
.data 2408 2408 0 0.0
.text 1296832 1296832 0 0.0
lock-app default (read/write) 2304080 2304080 0 0.0
.bss 104228 104228 0 0.0
.data 2360 2360 0 0.0
.text 1262344 1262344 0 0.0
qpg lighting-app qpg6105+debug (read only) 570884 570884 0 0.0
(read/write) 146936 146936 0 0.0
.bss 88640 88640 0 0.0
.data 1060 1060 0 0.0
.text 565564 565564 0 0.0
lock-app qpg6105+debug (read only) 517004 517004 0 0.0
(read/write) 146940 146940 0 0.0
.bss 88112 88112 0 0.0
.data 992 992 0 0.0
.text 511684 511684 0 0.0
persistent-storage-app qpg6105+debug (read only) 107140 107140 0 0.0
(read/write) 146940 146940 0 0.0
.bss 38504 38504 0 0.0
.data 288 288 0 0.0
.text 101820 101820 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 845770 845770 0 0.0
bss 86440 86440 0 0.0
noinit 37160 37160 0 0.0
text 592508 592508 0 0.0

src/controller/CHIPDeviceController.cpp Outdated Show resolved Hide resolved
src/controller/CHIPDeviceController.cpp Outdated Show resolved Hide resolved
src/controller/CHIPDeviceControllerFactory.h Show resolved Hide resolved
src/controller/ExampleOperationalCredentialsIssuer.h Outdated Show resolved Hide resolved
@boring-cyborg boring-cyborg bot added the github label 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