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

Darwin: Avoid calling DnssdServer::StartServer() when not initialized #34465

Merged

Conversation

ksperling-apple
Copy link
Contributor

Look at the SystemState directly instead of relying on _controllers.

Look at the SystemState directly instead of relying on _controllers.
Copy link

github-actions bot commented Jul 23, 2024

PR #34465: Size comparison from 8e32ce7 to 5d42735

Full report (48 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, esp32, linux, mbed, nxp, psoc6, qpg, stm32, tizen)
platform target config section 8e32ce7 5d42735 change % change
bl602 lighting-app bl602 FLASH 1271952 1271952 0 0.0
RAM 95384 95384 0 0.0
bl602+mfd FLASH 1286210 1286210 0 0.0
RAM 95528 95528 0 0.0
bl602+rpc FLASH 1310920 1310920 0 0.0
RAM 103808 103808 0 0.0
bl702 lighting-app bl702 FLASH 1092846 1092846 0 0.0
RAM 15245 15245 0 0.0
bl702+mfd FLASH 1103540 1103540 0 0.0
RAM 15397 15397 0 0.0
bl702+rpc FLASH 1182912 1182912 0 0.0
RAM 24245 24245 0 0.0
bl706-eth FLASH 876146 876146 0 0.0
RAM 27348 27348 0 0.0
bl706-wifi FLASH 1128328 1128328 0 0.0
RAM 14681 14681 0 0.0
bl702l lighting-app bl702l FLASH 1079744 1079744 0 0.0
RAM 21800 21800 0 0.0
bl702l+mfd FLASH 1091006 1091006 0 0.0
RAM 21960 21960 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 798868 798868 0 0.0
RAM 109236 109236 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 816620 816620 0 0.0
RAM 117020 117020 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 808468 808468 0 0.0
RAM 111308 111308 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 761084 761084 0 0.0
RAM 105408 105408 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 746868 746868 0 0.0
RAM 105632 105632 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 606646 606646 0 0.0
RAM 204564 204564 0 0.0
lock CC3235SF_LAUNCHXL FLASH 651994 651994 0 0.0
RAM 204836 204836 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 668009 668009 0 0.0
RAM 77700 77700 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 687861 687861 0 0.0
RAM 80340 80340 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 687861 687861 0 0.0
RAM 80340 80340 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 644805 644805 0 0.0
RAM 72768 72768 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 609561 609561 0 0.0
RAM 70884 70884 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 629189 629189 0 0.0
RAM 73428 73428 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 629189 629189 0 0.0
RAM 73428 73428 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 625257 625257 0 0.0
RAM 73900 73900 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 644965 644965 0 0.0
RAM 76444 76444 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 644965 644965 0 0.0
RAM 76444 76444 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 593629 593629 0 0.0
RAM 67852 67852 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 613481 613481 0 0.0
RAM 70492 70492 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 613481 613481 0 0.0
RAM 70492 70492 0 0.0
esp32 all-clusters-app c3devkit DRAM 90924 90924 0 0.0
FLASH 1471174 1471174 0 0.0
IRAM 75570 75570 0 0.0
m5stack DRAM 117404 117404 0 0.0
FLASH 1540279 1540279 0 0.0
IRAM 125403 125403 0 0.0
linux chip-tool-ipv6only arm64 unknown 20168 20168 0 0.0
FLASH 11003148 11003148 0 0.0
RAM 598528 598528 0 0.0
thermostat-no-ble arm64 unknown 9208 9208 0 0.0
FLASH 4256932 4256932 0 0.0
RAM 236336 236336 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1503276 1503276 0 0.0
RAM 226720 226720 0 0.0
nxp contact k32w0+release FLASH 576100 576100 0 0.0
RAM 70104 70104 0 0.0
k32w1+release FLASH 591664 591664 0 0.0
RAM 74144 74144 0 0.0
light k32w0+release FLASH 610400 610400 0 0.0
RAM 69564 69564 0 0.0
k32w1+release FLASH 675184 675184 0 0.0
RAM 82872 82872 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1611652 1611652 0 0.0
RAM 209728 209728 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1531988 1531988 0 0.0
RAM 206544 206544 0 0.0
light cy8ckit_062s2_43012 FLASH 1458812 1458812 0 0.0
RAM 199808 199808 0 0.0
lock cy8ckit_062s2_43012 FLASH 1459468 1459468 0 0.0
RAM 224328 224328 0 0.0
qpg lighting-app qpg6105+debug FLASH 651724 651724 0 0.0
RAM 104636 104636 0 0.0
lock-app qpg6105+debug FLASH 612112 612112 0 0.0
RAM 99320 99320 0 0.0
stm32 light STM32WB5MM-DK FLASH 474120 474120 0 0.0
RAM 144260 144260 0 0.0
tizen all-clusters-app arm unknown 1588 1588 0 0.0
FLASH 1641228 1641228 0 0.0
RAM 48708 48708 0 0.0
chip-tool-ubsan arm unknown 2388 2388 0 0.0
FLASH 16324862 16324862 0 0.0
RAM 7168624 7168624 0 0.0

@github-actions github-actions bot added the app label Jul 24, 2024
Copy link

github-actions bot commented Jul 24, 2024

PR #34465: Size comparison from 8e32ce7 to ec633b2

Full report (82 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 8e32ce7 ec633b2 change % change
bl602 lighting-app bl602 FLASH 1271952 1271952 0 0.0
RAM 95384 95384 0 0.0
bl602+mfd FLASH 1286210 1286210 0 0.0
RAM 95528 95528 0 0.0
bl602+rpc FLASH 1310920 1310920 0 0.0
RAM 103808 103808 0 0.0
bl702 lighting-app bl702 FLASH 1092846 1092846 0 0.0
RAM 15245 15245 0 0.0
bl702+mfd FLASH 1103540 1103540 0 0.0
RAM 15397 15397 0 0.0
bl702+rpc FLASH 1182912 1182912 0 0.0
RAM 24245 24245 0 0.0
bl706-eth FLASH 876146 876146 0 0.0
RAM 27348 27348 0 0.0
bl706-wifi FLASH 1128328 1128328 0 0.0
RAM 14681 14681 0 0.0
bl702l lighting-app bl702l FLASH 1079744 1079744 0 0.0
RAM 21800 21800 0 0.0
bl702l+mfd FLASH 1091006 1091006 0 0.0
RAM 21960 21960 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 798868 798868 0 0.0
RAM 109236 109236 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 816620 816628 8 0.0
RAM 117020 117020 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 808468 808468 0 0.0
RAM 111308 111308 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 761084 761084 0 0.0
RAM 105408 105408 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 746868 746868 0 0.0
RAM 105632 105632 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 606646 606646 0 0.0
RAM 204564 204564 0 0.0
lock CC3235SF_LAUNCHXL FLASH 651994 651994 0 0.0
RAM 204836 204836 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 668009 668009 0 0.0
RAM 77700 77700 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 687861 687861 0 0.0
RAM 80340 80340 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 687861 687861 0 0.0
RAM 80340 80340 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 644805 644805 0 0.0
RAM 72768 72768 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 609561 609561 0 0.0
RAM 70884 70884 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 629189 629189 0 0.0
RAM 73428 73428 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 629189 629189 0 0.0
RAM 73428 73428 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 625257 625257 0 0.0
RAM 73900 73900 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 644965 644965 0 0.0
RAM 76444 76444 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 644965 644965 0 0.0
RAM 76444 76444 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 593629 593629 0 0.0
RAM 67852 67852 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 613481 613481 0 0.0
RAM 70492 70492 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 613481 613481 0 0.0
RAM 70492 70492 0 0.0
efr32 lighting-app BRD4187C FLASH 926120 926120 0 0.0
RAM 134528 134528 0 0.0
lock-app BRD4338a FLASH 734508 734500 -8 -0.0
RAM 208004 208004 0 0.0
window-app BRD4187C FLASH 1014572 1014572 0 0.0
RAM 126648 126648 0 0.0
esp32 all-clusters-app c3devkit DRAM 90924 90924 0 0.0
FLASH 1471174 1471170 -4 -0.0
IRAM 75570 75570 0 0.0
m5stack DRAM 117404 117404 0 0.0
FLASH 1540279 1540279 0 0.0
IRAM 125403 125403 0 0.0
linux air-purifier-app debug unknown 4632 4632 0 0.0
FLASH 2706951 2706917 -34 -0.0
RAM 125200 125200 0 0.0
all-clusters-app debug unknown 5400 5400 0 0.0
FLASH 5835428 5835394 -34 -0.0
RAM 494784 494784 0 0.0
all-clusters-minimal-app debug unknown 5312 5312 0 0.0
FLASH 5295128 5295094 -34 -0.0
RAM 235728 235728 0 0.0
bridge-app debug unknown 5296 5296 0 0.0
FLASH 4694450 4694416 -34 -0.0
RAM 212992 212992 0 0.0
chip-tool debug unknown 5784 5784 0 0.0
FLASH 12297134 12297100 -34 -0.0
RAM 548882 548882 0 0.0
chip-tool-ipv6only arm64 unknown 20168 20168 0 0.0
FLASH 11003148 11003100 -48 -0.0
RAM 598528 598528 0 0.0
fabric-admin debug unknown 5672 5672 0 0.0
FLASH 11314973 1131493 -34 -0.0
RAM 545722 545722 0 0.0
fabric-bridge-app debug unknown 4568 4568 0 0.0
FLASH 4448684 4448650 -34 -0.0
RAM 199024 199024 0 0.0
lighting-app debug+rpc+ui unknown 5968 5968 0 0.0
FLASH 5618529 5618497 -32 -0.0
RAM 224272 224272 0 0.0
lock-app debug unknown 5232 5232 0 0.0
FLASH 4752902 4752868 -34 -0.0
RAM 200704 200704 0 0.0
ota-provider-app debug unknown 4608 4608 0 0.0
FLASH 4397394 4397360 -34 -0.0
RAM 194880 194880 0 0.0
ota-requestor-app debug unknown 4544 4544 0 0.0
FLASH 4535176 4535142 -34 -0.0
RAM 199416 199416 0 0.0
shell debug unknown 4168 4168 0 0.0
FLASH 2979645 2979613 -32 -0.0
RAM 153736 153736 0 0.0
thermostat-no-ble arm64 unknown 9208 9208 0 0.0
FLASH 4256932 4256884 -48 -0.0
RAM 236336 236336 0 0.0
tv-app debug unknown 5504 5504 0 0.0
FLASH 5970237 5970205 -32 -0.0
RAM 573376 573376 0 0.0
tv-casting-app debug unknown 5168 5168 0 0.0
FLASH 10509373 1050934 -32 -0.0
RAM 634344 634344 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1503276 1503276 0 0.0
RAM 226720 226720 0 0.0
nxp contact k32w0+release FLASH 576100 576100 0 0.0
RAM 70104 70104 0 0.0
k32w1+release FLASH 591664 591656 -8 -0.0
RAM 74144 74144 0 0.0
light k32w0+release FLASH 610400 610400 0 0.0
RAM 69564 69564 0 0.0
k32w1+release FLASH 675184 675192 8 0.0
RAM 82872 82872 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1611652 1611652 0 0.0
RAM 209728 209728 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1531988 1531988 0 0.0
RAM 206544 206544 0 0.0
light cy8ckit_062s2_43012 FLASH 1458812 1458812 0 0.0
RAM 199808 199808 0 0.0
lock cy8ckit_062s2_43012 FLASH 1459468 1459468 0 0.0
RAM 224328 224328 0 0.0
qpg lighting-app qpg6105+debug FLASH 651724 651724 0 0.0
RAM 104636 104636 0 0.0
lock-app qpg6105+debug FLASH 612112 612120 8 0.0
RAM 99320 99320 0 0.0
stm32 light STM32WB5MM-DK FLASH 474120 474120 0 0.0
RAM 144260 144260 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 633084 633086 2 0.0
RAM 50576 50576 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 658936 658938 2 0.0
RAM 148480 148480 0 0.0
all-clusters-minimal-app tlsr9528a FLASH 779162 779164 2 0.0
RAM 113260 113260 0 0.0
bridge-app tlsr9258a FLASH 676004 676006 2 0.0
RAM 95344 95344 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 634668 634670 2 0.0
RAM 50620 50620 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 720540 720542 2 0.0
RAM 77196 77196 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 614038 614040 2 0.0
RAM 144684 144684 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 801842 801844 2 0.0
RAM 103088 103088 0 0.0
lock-app-dfu tlsr9528a FLASH 666496 666498 2 0.0
RAM 69900 69900 0 0.0
ota-requestor-app tlsr9258a FLASH 695366 695368 2 0.0
RAM 95068 95068 0 0.0
pump-app tlsr9518adk80d FLASH 616932 616934 2 0.0
RAM 57000 57000 0 0.0
pump-controller-app tlsr9518adk80d FLASH 607342 607344 2 0.0
RAM 56800 56800 0 0.0
shell tlsr9518adk80d FLASH 466520 466520 0 0.0
RAM 72488 72488 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 641286 641288 2 0.0
RAM 52248 52248 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 651164 651166 2 0.0
RAM 60436 60436 0 0.0
thermostat tlsr9518adk80d FLASH 626228 626230 2 0.0
RAM 57124 57124 0 0.0
window-covering tlsr9118bdk40d FLASH 519434 519436 2 0.0
RAM 97856 97856 0 0.0
tizen all-clusters-app arm unknown 1588 1588 0 0.0
FLASH 1641228 1641240 12 0.0
RAM 48708 48708 0 0.0
chip-tool-ubsan arm unknown 2388 2388 0 0.0
FLASH 16324862 16324870 8 0.0
RAM 7168624 7168624 0 0.0

@mergify mergify bot merged commit 8306353 into project-chip:master Jul 24, 2024
69 checks passed
j-ororke pushed a commit to j-ororke/connectedhomeip that referenced this pull request Jul 31, 2024
…project-chip#34465)

* Darwin: Avoid calling DnssdServer::StartServer() when not initialized

Look at the SystemState directly instead of relying on _controllers.

* Return error from AdvertiseOperational when fabric table is null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants