Skip to content

Qualify Const Member Functions in GroupDataProvider#72065

Merged
mergify[bot] merged 2 commits into
project-chip:masterfrom
zaid-google:qualify_const_functions
May 15, 2026
Merged

Qualify Const Member Functions in GroupDataProvider#72065
mergify[bot] merged 2 commits into
project-chip:masterfrom
zaid-google:qualify_const_functions

Conversation

@zaid-google

Copy link
Copy Markdown
Contributor

Summary

This PR qualifies some const member functions. This change stems from a request to keep GetMaxGroupsPerFabric() as a const member function, as this was unintentionally removed as part of #72047. To do this, the functions called within GetMaxGroupsPerFabric() were made const too.

Testing

  • CI should still pass

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

Copy link
Copy Markdown
Contributor

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 improves const-correctness by adding the "const" qualifier to several getter methods within the GroupDataProvider interface, its implementation GroupDataProviderImpl, and the MockGroupDataProvider test class. Specifically, methods such as GetMaxGroupsPerFabric, IsGroupcastEnabled, getMaxMembershipCount, and getMaxMcastAddrCount are now marked as const. I have no feedback to provide.

@github-actions

github-actions Bot commented May 15, 2026

Copy link
Copy Markdown

PR #72065: Size comparison from fa18120 to ec3c441

Full report (33 builds for bl602, bl616, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, psoc6, qpg, realtek, stm32, telink)
platform target config section fa18120 ec3c441 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1093128 1093128 0 0.0
RAM 144866 144866 0 0.0
bl616 lighting-app bl616+thread FLASH 1104644 1104644 0 0.0
RAM 104280 104280 0 0.0
bl616+wifi+shell FLASH 1592144 1592144 0 0.0
RAM 98144 98144 0 0.0
bl702 lighting-app bl702+eth FLASH 1056104 1056104 0 0.0
RAM 108493 108493 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 895038 895038 0 0.0
RAM 105884 105884 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 776096 776096 0 0.0
RAM 103364 103364 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 789184 789184 0 0.0
RAM 108652 108652 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 738212 738212 0 0.0
RAM 97564 97564 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 718408 718408 0 0.0
RAM 97612 97612 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 567926 567926 0 0.0
RAM 205024 205024 0 0.0
lock CC3235SF_LAUNCHXL FLASH 595358 595358 0 0.0
RAM 205224 205224 0 0.0
efr32 lock-app BRD4187C FLASH 993832 993832 0 0.0
RAM 131288 131288 0 0.0
BRD4338a FLASH 798817 798809 -8 -0.0
RAM 243400 243400 0 0.0
window-app BRD4187C FLASH 1100196 1100188 -8 -0.0
RAM 130328 130328 0 0.0
esp32 all-clusters-app c3devkit DRAM 99612 99612 0 0.0
FLASH 1614954 1614954 0 0.0
IRAM 94776 94776 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 829448 829448 0 0.0
RAM 157441 157441 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1726684 1726684 0 0.0
RAM 215156 215156 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1622044 1622044 0 0.0
RAM 211524 211524 0 0.0
light cy8ckit_062s2_43012 FLASH 1469588 1469588 0 0.0
RAM 197404 197404 0 0.0
lock cy8ckit_062s2_43012 FLASH 1503172 1503172 0 0.0
RAM 225228 225228 0 0.0
qpg lighting-app qpg6200+debug FLASH 843788 843788 0 0.0
RAM 127924 127924 0 0.0
lock-app qpg6200+debug FLASH 782408 782408 0 0.0
RAM 118872 118872 0 0.0
realtek light-switch-app rtl8777g FLASH 684792 684792 0 0.0
RAM 101660 101660 0 0.0
lighting-app rtl8777g FLASH 728848 728848 0 0.0
RAM 102000 102000 0 0.0
stm32 light STM32WB5MM-DK FLASH 477700 477700 0 0.0
RAM 141436 141436 0 0.0
telink bridge-app tl7218x FLASH 731390 731390 0 0.0
RAM 95860 95860 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 851024 851024 0 0.0
RAM 44312 44312 0 0.0
tl7218x FLASH 842354 842354 0 0.0
RAM 99640 99640 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 731012 731012 0 0.0
RAM 55964 55964 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 794238 794238 0 0.0
RAM 75148 75148 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 730932 730932 0 0.0
RAM 33448 33448 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 613804 613804 0 0.0
RAM 118476 118476 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 840468 840472 4 0.0
RAM 97348 97348 0 0.0

@codecov

codecov Bot commented May 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.89%. Comparing base (fa18120) to head (ec3c441).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #72065   +/-   ##
=======================================
  Coverage   54.89%   54.89%           
=======================================
  Files        1619     1619           
  Lines      110414   110414           
  Branches    13493    13493           
=======================================
  Hits        60609    60609           
  Misses      49805    49805           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@soares-sergio soares-sergio added the sdk-maintainer-approved PR marked by `matter-sdk-maintainers` as suitable for MERGE - meets guideline & sufficient reviews. label May 15, 2026
@mergify mergify Bot merged commit 3bfd55c into project-chip:master May 15, 2026
87 of 88 checks passed
pankore pushed a commit to pankore/connectedhomeip that referenced this pull request May 22, 2026
* make const member functions

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app review - pending sdk-maintainer-approved PR marked by `matter-sdk-maintainers` as suitable for MERGE - meets guideline & sufficient reviews.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants