Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@tehampson
Copy link
Contributor

@tehampson tehampson commented May 29, 2025

Introduced a compiler error that shows up externally in #39201. After addressing a nit comment I forget to text this externally and ended up breaking myself on this effort

Testing

  • CI Unit tests pass
  • Externally validated that compiler error on error: use of undeclared identifier 'System' is resolved

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request addresses a compiler error by adding a necessary include directive. The change is clear, concise, and directly solves the reported issue. The PR description and testing validation are appreciated.

Summary of Findings

  • Code Correctness: The added #include <system/SystemClock.h> correctly resolves the 'undeclared identifier System' compiler error, likely due to the usage of types like System::Clock::Timestamp or System::Clock::Milliseconds64 within ReliableMessageAnalyticsDelegate.h or its associated data structures (e.g., TransmitEvent). This adheres to the C++ best practice of including headers for all types used directly by a file.
  • Maintainability: The change is minimal and improves the self-containedness of the header file by explicitly declaring its dependencies. The placement of the new include directive is appropriate.

Merge Readiness

The pull request appears to be in good shape and directly addresses a compilation issue. The change is correct and well-justified. Based on this review, the code seems ready for merging. However, as an AI reviewer, I am not authorized to approve pull requests; please ensure it undergoes any further required review processes before merging.

@andy31415
Copy link
Contributor

Fast tracking trivial change.


#include <lib/core/DataModelTypes.h>
#include <lib/core/NodeId.h>
#include <system/SystemClock.h>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Blocking comment. https://github.com/project-chip/connectedhomeip/pull/39253/files fixes the issues as well

@github-actions
Copy link

github-actions bot commented May 29, 2025

PR #39271: Size comparison from cac6abc to e7cd28f

Full report (75 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section cac6abc e7cd28f change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1102344 1102344 0 0.0
RAM 179114 179114 0 0.0
bl702 lighting-app bl702+eth FLASH 655436 655436 0 0.0
RAM 135073 135073 0 0.0
bl702+wifi FLASH 832950 832950 0 0.0
RAM 124637 124637 0 0.0
bl706+mfd+rpc+littlefs FLASH 1065500 1065500 0 0.0
RAM 117461 117461 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 895058 895058 0 0.0
RAM 105772 105772 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 978780 978780 0 0.0
RAM 109956 109956 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 820580 820580 0 0.0
RAM 120288 120288 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 832184 832184 0 0.0
RAM 125440 125440 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 777704 777704 0 0.0
RAM 113844 113844 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 762036 762036 0 0.0
RAM 114052 114052 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 548278 548278 0 0.0
RAM 205256 205256 0 0.0
lock CC3235SF_LAUNCHXL FLASH 581726 581726 0 0.0
RAM 205448 205448 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 662509 662509 0 0.0
RAM 77552 77552 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 682361 682361 0 0.0
RAM 80192 80192 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 682361 682361 0 0.0
RAM 80192 80192 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 639293 639293 0 0.0
RAM 72620 72620 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 623909 623909 0 0.0
RAM 73864 73864 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 643537 643537 0 0.0
RAM 76416 76416 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 643537 643537 0 0.0
RAM 76416 76416 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 644837 644837 0 0.0
RAM 76864 76864 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 664545 664545 0 0.0
RAM 79416 79416 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 664545 664545 0 0.0
RAM 79416 79416 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 619489 619489 0 0.0
RAM 70976 70976 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 639341 639341 0 0.0
RAM 73608 73608 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 639341 639341 0 0.0
RAM 73608 73608 0 0.0
efr32 lock-app BRD4187C FLASH 946860 946860 0 0.0
RAM 132092 132092 0 0.0
BRD4338a FLASH 776184 776184 0 0.0
RAM 173320 173320 0 0.0
window-app BRD4187C FLASH 1039848 1039840 -8 -0.0
RAM 128228 128228 0 0.0
esp32 all-clusters-app c3devkit DRAM 103624 103624 0 0.0
FLASH 1810204 1810204 0 0.0
IRAM 83846 83846 0 0.0
m5stack DRAM 122492 122492 0 0.0
FLASH 1776170 1776170 0 0.0
IRAM 117043 117043 0 0.0
linux air-purifier-app debug unknown 4848 4848 0 0.0
FLASH 2788566 2788566 0 0.0
RAM 117112 117112 0 0.0
all-clusters-app debug unknown 5664 5664 0 0.0
FLASH 6387360 6387360 0 0.0
RAM 537632 537632 0 0.0
all-clusters-minimal-app debug unknown 5528 5528 0 0.0
FLASH 5470390 5470390 0 0.0
RAM 228072 228072 0 0.0
bridge-app debug unknown 5560 5560 0 0.0
FLASH 4802900 4802900 0 0.0
RAM 207728 207728 0 0.0
camera-app debug unknown 8864 8864 0 0.0
FLASH 6912315 6912315 0 0.0
RAM 228984 228984 0 0.0
camera-controller debug unknown 9168 9168 0 0.0
FLASH 14263291 14263291 0 0.0
RAM 657224 657224 0 0.0
chip-tool debug unknown 6248 6248 0 0.0
FLASH 14726047 14726047 0 0.0
RAM 661872 661872 0 0.0
chip-tool-ipv6only arm64 unknown 41024 41024 0 0.0
FLASH 12685992 12685992 0 0.0
RAM 708192 708192 0 0.0
fabric-admin debug unknown 5928 5928 0 0.0
FLASH 12805285 12805285 0 0.0
RAM 661232 661232 0 0.0
fabric-bridge-app debug unknown 4808 4808 0 0.0
FLASH 4588748 4588748 0 0.0
RAM 193408 193408 0 0.0
fabric-sync debug unknown 5064 5064 0 0.0
FLASH 5735861 5735861 0 0.0
RAM 490080 490080 0 0.0
lighting-app debug+rpc+ui unknown 6272 6272 0 0.0
FLASH 5651137 5651137 0 0.0
RAM 209864 209864 0 0.0
lock-app debug unknown 5496 5496 0 0.0
FLASH 4837352 4837352 0 0.0
RAM 197192 197192 0 0.0
ota-provider-app debug unknown 4848 4848 0 0.0
FLASH 4440674 4440674 0 0.0
RAM 186064 186064 0 0.0
ota-requestor-app debug unknown 4728 4728 0 0.0
FLASH 4510112 4510112 0 0.0
RAM 188696 188696 0 0.0
shell debug unknown 4256 4256 0 0.0
FLASH 3085036 3085036 0 0.0
RAM 151176 151176 0 0.0
thermostat-no-ble arm64 unknown 9768 9768 0 0.0
FLASH 4237624 4237624 0 0.0
RAM 233528 233528 0 0.0
tv-app debug unknown 5832 5832 0 0.0
FLASH 6100789 6100789 0 0.0
RAM 614312 614312 0 0.0
tv-casting-app debug unknown 5336 5336 0 0.0
FLASH 12787725 12787725 0 0.0
RAM 767216 767216 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 921916 921916 0 0.0
RAM 167532 167532 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 913132 913132 0 0.0
RAM 145776 145776 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 859092 859092 0 0.0
RAM 141159 141159 0 0.0
nxp contact k32w0+release FLASH 592296 592296 0 0.0
RAM 72920 72920 0 0.0
mcxw71+release FLASH 625080 625080 0 0.0
RAM 63260 63260 0 0.0
light k32w0+release FLASH 618372 618372 0 0.0
RAM 72216 72216 0 0.0
k32w1+release FLASH 709608 709608 0 0.0
RAM 72116 72116 0 0.0
lock mcxw71+release FLASH 776248 776248 0 0.0
RAM 67676 67676 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1671716 1671716 0 0.0
RAM 212528 212528 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1576052 1576052 0 0.0
RAM 208576 208576 0 0.0
light cy8ckit_062s2_43012 FLASH 1448500 1448500 0 0.0
RAM 197304 197304 0 0.0
lock cy8ckit_062s2_43012 FLASH 1480780 1480780 0 0.0
RAM 225016 225016 0 0.0
qpg lighting-app qpg6105+debug FLASH 667316 667316 0 0.0
RAM 105244 105244 0 0.0
lock-app qpg6105+debug FLASH 627336 627336 0 0.0
RAM 99872 99872 0 0.0
stm32 light STM32WB5MM-DK FLASH 465044 465044 0 0.0
RAM 141488 141488 0 0.0
telink bridge-app tl7218x FLASH 677502 677502 0 0.0
694258 694258 0 0.0
RAM 91024 91024 0 0.0
102164 102164 0 0.0
light-app-ota-compress-lzma-factory-data tl3218x FLASH 766692 766692 0 0.0
RAM 50316 50316 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 767724 767724 0 0.0
RAM 40608 40608 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 756180 756180 0 0.0
773802 773802 0 0.0
RAM 97736 97736 0 0.0
109488 109488 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 687254 687254 0 0.0
703152 703152 0 0.0
RAM 51844 51844 0 0.0
62876 62876 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 715704 715704 0 0.0
741106 741106 0 0.0
RAM 73656 73656 0 0.0
86048 86048 0 0.0
light-switch-app-ota-shell-factory-data tl3218x_retention FLASH 713044 713044 0 0.0
RAM 37292 37292 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 604530 604530 0 0.0
600662 600662 0 0.0
RAM 106984 106984 0 0.0
120260 120260 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 791224 791228 4 0.0
809116 809120 4 0.0
RAM 96584 96584 0 0.0
107756 107756 0 0.0
tizen all-clusters-app arm unknown 5292 5292 0 0.0
FLASH 1821492 1821492 0 0.0
RAM 97224 97224 0 0.0
chip-tool-ubsan arm unknown 20804 20804 0 0.0
FLASH 21044230 21044230 0 0.0
RAM 9170912 9170912 0 0.0

@tehampson tehampson closed this Jun 4, 2025
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.

2 participants