Skip to content

[Tests] Introduce network namespace separation for XML RPC server#71558

Open
MarekPikula wants to merge 25 commits intoproject-chip:masterfrom
MarekPikula:rpc-ns-new
Open

[Tests] Introduce network namespace separation for XML RPC server#71558
MarekPikula wants to merge 25 commits intoproject-chip:masterfrom
MarekPikula:rpc-ns-new

Conversation

@MarekPikula
Copy link
Copy Markdown
Contributor

@MarekPikula MarekPikula commented Apr 14, 2026

Summary

This PR is a major step in the ongoing effort to introduce concurrent test execution. To support concurrent execution, the XML-RPC server must be namespaced so that, in the future, each worker process can run its own isolated XML-RPC server within its own namespace context. Enabling this requires introducing a namespace process boundary for the XML-RPC server, which must still communicate with the main process.

The WrappedProcess abstraction introduced in this PR, together with its state management machinery, will be used for worker isolation in subsequent PRs. Some of the complexity added here may appear redundant in isolation, but it will be essential in the next stage. I considered introducing either XML-RPC isolation or worker process isolation first, and chose the former because it brings in less code for the initial review of the multi-process flow. A proof of concept with full concurrent test execution is available here. This PR brings in a subset of that implementation. All abstractions introduced in the chiptest.concurrent module will be reused in follow-up PRs.

For XML-RPC isolation, the following components are required:

  1. The main test runner with AppsRegister, responsible for starting the RPC server and containing the functions which are supposed to be called by it.
  2. The XML-RPC server process management thread, responsible for communication with the namespaced RPC server process and calling the published methods in AppsRegister.
  3. The XML-RPC server process itself, which runs inside the network namespace and communicates with the test applications.

For details on WrappedProcess lifecycle management and error handling, please refer to the docstrings in the code. I am aware that this PR introduces a substantial amount of non-trivial multiprocessing logic, so if any part of the behavior is difficult to follow, please point it out and I will improve the docstrings accordingly.

Related issues

Continuation of the effort toward concurrent tests. PRs from the previous patch set:

Submitted alongside:

Testing

This PR has been tested extensively by manually exercising various failure modes with run_test_suite.py, with exceptions injected at different points in the flow.

Readability checklist

The checklist below will help the reviewer finish PR review in time and keep the
code readable:

  • PR title is
    descriptive
  • Apply the
    “When in Rome…”
    rule (coding style)
  • PR size is short
  • Try to avoid "squashing" and "force-update" in commit history
  • CI time didn't increase

See: Pull Request Guidelines

Signed-off-by: Marek Pikuła <m.pikula@partner.samsung.com>
Signed-off-by: Marek Pikuła <m.pikula@partner.samsung.com>
Copilot AI review requested due to automatic review settings April 14, 2026 10:55
Copy link
Copy Markdown
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 introduces a more robust concurrency framework for test execution, including a new WrappedProcess base class and a dedicated XmlRpcServerProcessManager to handle XML-RPC communication within network namespaces. The changes also include enhanced logging configurations and infrastructure updates to support management network namespaces on Linux. Feedback is provided regarding a discrepancy between the StartStopContextMixin docstring and its implementation of exception suppression, as well as a minor typo in a comment.

Comment thread scripts/tests/chiptest/concurrent/context.py Outdated
Comment thread scripts/tests/chiptest/concurrent/process.py Outdated
Signed-off-by: Marek Pikuła <m.pikula@partner.samsung.com>
Signed-off-by: Marek Pikuła <m.pikula@partner.samsung.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a process boundary for the XML-RPC server (optionally launched inside a Linux network namespace) as groundwork for future concurrent test execution and worker isolation.

Changes:

  • Add a new chiptest.concurrent module providing a WrappedProcess abstraction, spawn-context helpers, and a multiprocessing-friendly cancellable queue.
  • Move the XML-RPC server out of the main process into a managed subprocess, bridged by a manager thread that dispatches calls back into AppsRegister.
  • Extend Linux isolated networking to add a dedicated management namespace (MGMT) and wire the test runner to start AppsRegister/XML-RPC in that namespace.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
src/python_testing/matter_testing_infrastructure/matter/testing/linux/namespace.py Adds a dedicated MGMT network namespace and maps SubprocessKind.MGMT to it.
scripts/tests/run_test_suite.py Adds --log-level-rpc, wires LogConfig.level_rpc, and starts AppsRegister with a netns wrapper for the RPC server.
scripts/tests/chiptest/worker.py Switches queue imports to the new chiptest.concurrent.work_queue module.
scripts/tests/chiptest/results.py Switches queue imports to the new chiptest.concurrent.work_queue module.
scripts/tests/chiptest/log_config.py Adds level_rpc to support independent RPC logging verbosity.
scripts/tests/chiptest/concurrent/work_queue.py Extends CancellableQueue to optionally use multiprocessing.Manager primitives and adds wait helpers.
scripts/tests/chiptest/concurrent/process.py Introduces WrappedProcess, shared ProcessState, and lifecycle/termination escalation logic.
scripts/tests/chiptest/concurrent/context.py Adds a spawn-context helper that can install a Linux wrapper executable, plus a start/stop context mixin.
scripts/tests/chiptest/concurrent/__init__.py Declares the concurrent module package.
scripts/tests/chiptest/accessories.py Refactors AppsRegister XML-RPC hosting into a manager thread + namespaced subprocess, with RPC function dispatch/validation.

Comment thread scripts/tests/chiptest/accessories.py
Comment thread scripts/tests/chiptest/accessories.py Outdated
Comment thread scripts/tests/chiptest/concurrency/process.py
Comment thread scripts/tests/chiptest/concurrency/process.py
Comment thread scripts/tests/chiptest/concurrency/process.py
Comment thread scripts/tests/chiptest/concurrency/context.py
Comment thread scripts/tests/chiptest/accessories.py
Comment thread scripts/tests/chiptest/accessories.py Outdated
Signed-off-by: Marek Pikuła <m.pikula@partner.samsung.com>
Signed-off-by: Marek Pikuła <m.pikula@partner.samsung.com>
Signed-off-by: Marek Pikuła <m.pikula@partner.samsung.com>
Signed-off-by: Marek Pikuła <m.pikula@partner.samsung.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

scripts/tests/chiptest/concurrent/work_queue.py:172

  • wait_for_cancelled()/wait_for_closed() always route through wait_for_mp_managed(), which polls every 0.1s even when the underlying event is a local threading.Event (i.e. when mp_manager is None). That introduces unnecessary wakeups/CPU churn for normal single-process usage. Consider detecting the non-Manager case and using a direct blocking Event.wait() (or having CancellableQueue remember whether it was created with a manager and select the appropriate wait strategy).

Comment thread scripts/tests/chiptest/accessories.py
Comment thread scripts/tests/chiptest/accessories.py Outdated
Signed-off-by: Marek Pikuła <m.pikula@partner.samsung.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 14, 2026

PR #71558: Size comparison from 04ec448 to 7fcfe7d

Full report (33 builds for bl602, bl616, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section 04ec448 7fcfe7d change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1090500 1090500 0 0.0
RAM 144858 144858 0 0.0
bl616 lighting-app bl616+thread FLASH 1101988 1101988 0 0.0
RAM 104280 104280 0 0.0
bl616+wifi+shell FLASH 1588868 1588868 0 0.0
RAM 98176 98176 0 0.0
bl702 lighting-app bl702+eth FLASH 1053666 1053666 0 0.0
RAM 108461 108461 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 892364 892364 0 0.0
RAM 105852 105852 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 775904 775904 0 0.0
RAM 103404 103404 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 788108 788108 0 0.0
RAM 108588 108588 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 734432 734432 0 0.0
RAM 97396 97396 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 717860 717860 0 0.0
RAM 97556 97556 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 560842 560842 0 0.0
RAM 204608 204608 0 0.0
lock CC3235SF_LAUNCHXL FLASH 592730 592730 0 0.0
RAM 204816 204816 0 0.0
efr32 lock-app BRD4187C FLASH 992512 992512 0 0.0
RAM 131268 131268 0 0.0
BRD4338a FLASH 796281 796281 0 0.0
RAM 243372 243372 0 0.0
window-app BRD4187C FLASH 1098000 1098000 0 0.0
RAM 130308 130308 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 863484 863484 0 0.0
RAM 162186 162186 0 0.0
nxp contact mcxw71+release FLASH 739032 739032 0 0.0
RAM 67016 67016 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1713300 1713300 0 0.0
RAM 214124 214124 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1610708 1610708 0 0.0
RAM 210996 210996 0 0.0
light cy8ckit_062s2_43012 FLASH 1466844 1466844 0 0.0
RAM 197076 197076 0 0.0
lock cy8ckit_062s2_43012 FLASH 1499564 1499564 0 0.0
RAM 224820 224820 0 0.0
qpg lighting-app qpg6200+debug FLASH 842716 842716 0 0.0
RAM 127868 127868 0 0.0
lock-app qpg6200+debug FLASH 781332 781332 0 0.0
RAM 118816 118816 0 0.0
realtek light-switch-app rtl8777g FLASH 680920 680920 0 0.0
RAM 101616 101616 0 0.0
lighting-app rtl8777g FLASH 724816 724816 0 0.0
RAM 101956 101956 0 0.0
stm32 light STM32WB5MM-DK FLASH 475468 475468 0 0.0
RAM 141396 141396 0 0.0
telink bridge-app tl7218x FLASH 730822 730822 0 0.0
RAM 95924 95924 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 850332 850332 0 0.0
RAM 44344 44344 0 0.0
tl7218x FLASH 841738 841738 0 0.0
RAM 99728 99728 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 730292 730292 0 0.0
RAM 56004 56004 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 793518 793518 0 0.0
RAM 75180 75180 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 730236 730236 0 0.0
RAM 33488 33488 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 613132 613132 0 0.0
RAM 118400 118400 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 839872 839876 4 0.0
RAM 97436 97436 0 0.0

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.52%. Comparing base (46582e0) to head (87bbabe).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #71558   +/-   ##
=======================================
  Coverage   54.52%   54.52%           
=======================================
  Files        1588     1588           
  Lines      108571   108571           
  Branches    13365    13365           
=======================================
  Hits        59203    59203           
  Misses      49368    49368           

☔ 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.

Signed-off-by: Marek Pikuła <m.pikula@partner.samsung.com>
Copilot AI review requested due to automatic review settings April 14, 2026 12:31
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Comment thread scripts/tests/chiptest/concurrency/process.py Outdated
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 20, 2026

PR #71558: Size comparison from de3c270 to f165f4c

Increases above 0.2%:

platform target config section de3c270 f165f4c change % change
nxp contact mcxw71+release FLASH 740336 742344 2008 0.3
Full report (34 builds for bl602, bl616, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section de3c270 f165f4c change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1090528 1090528 0 0.0
RAM 144850 144850 0 0.0
bl616 lighting-app bl616+thread FLASH 1102012 1102012 0 0.0
RAM 104280 104280 0 0.0
bl616+wifi+shell FLASH 1588900 1588900 0 0.0
RAM 98176 98176 0 0.0
bl702 lighting-app bl702+eth FLASH 1053702 1053702 0 0.0
RAM 108461 108461 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 892400 892400 0 0.0
RAM 105852 105852 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 775896 775896 0 0.0
RAM 103420 103420 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 788132 788132 0 0.0
RAM 108604 108604 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 735532 735532 0 0.0
RAM 97444 97444 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 717916 717916 0 0.0
RAM 97572 97572 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 560890 560890 0 0.0
RAM 204616 204616 0 0.0
lock CC3235SF_LAUNCHXL FLASH 592794 592794 0 0.0
RAM 204824 204824 0 0.0
efr32 lock-app BRD4187C FLASH 992648 992648 0 0.0
RAM 131272 131272 0 0.0
BRD4338a FLASH 796433 796425 -8 -0.0
RAM 243380 243380 0 0.0
window-app BRD4187C FLASH 1098152 1098152 0 0.0
RAM 130312 130312 0 0.0
esp32 all-clusters-app c3devkit DRAM 98572 98572 0 0.0
FLASH 1601762 1601762 0 0.0
IRAM 93514 93514 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 864244 864244 0 0.0
RAM 162233 162233 0 0.0
nxp contact mcxw71+release FLASH 740336 742344 2008 0.3
RAM 67040 67096 56 0.1
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1714948 1714948 0 0.0
RAM 214180 214180 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1612364 1612364 0 0.0
RAM 211052 211052 0 0.0
light cy8ckit_062s2_43012 FLASH 1466940 1466940 0 0.0
RAM 197092 197092 0 0.0
lock cy8ckit_062s2_43012 FLASH 1499668 1499668 0 0.0
RAM 224828 224828 0 0.0
qpg lighting-app qpg6200+debug FLASH 842700 842700 0 0.0
RAM 127884 127884 0 0.0
lock-app qpg6200+debug FLASH 781300 781300 0 0.0
RAM 118832 118832 0 0.0
realtek light-switch-app rtl8777g FLASH 681032 681032 0 0.0
RAM 101632 101632 0 0.0
lighting-app rtl8777g FLASH 724832 724832 0 0.0
RAM 101964 101964 0 0.0
stm32 light STM32WB5MM-DK FLASH 475476 475476 0 0.0
RAM 141412 141412 0 0.0
telink bridge-app tl7218x FLASH 730658 730658 0 0.0
RAM 95932 95932 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 850462 850462 0 0.0
RAM 44348 44348 0 0.0
tl7218x FLASH 841868 841868 0 0.0
RAM 99736 99736 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 730460 730460 0 0.0
RAM 56012 56012 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 793686 793686 0 0.0
RAM 75188 75188 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 730382 730382 0 0.0
RAM 33492 33492 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 613268 613268 0 0.0
RAM 118404 118404 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 840002 840006 4 0.0
RAM 97444 97444 0 0.0

Comment thread scripts/tests/chiptest/concurrency/context.py
Comment thread scripts/tests/chiptest/concurrency/process.py Outdated
Signed-off-by: Marek Pikuła <m.pikula@partner.samsung.com>
Signed-off-by: Marek Pikuła <m.pikula@partner.samsung.com>
Copilot AI review requested due to automatic review settings April 20, 2026 19:48
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/tests/chiptest/log_config.py Outdated
Comment thread scripts/tests/chiptest/accessories.py Outdated
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 20, 2026

PR #71558: Size comparison from de3c270 to fd13126

Increases above 0.2%:

platform target config section de3c270 fd13126 change % change
nxp contact mcxw71+release FLASH 740336 742344 2008 0.3
Full report (34 builds for bl602, bl616, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section de3c270 fd13126 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1090528 1090528 0 0.0
RAM 144850 144850 0 0.0
bl616 lighting-app bl616+thread FLASH 1102012 1102012 0 0.0
RAM 104280 104280 0 0.0
bl616+wifi+shell FLASH 1588900 1588900 0 0.0
RAM 98176 98176 0 0.0
bl702 lighting-app bl702+eth FLASH 1053702 1053702 0 0.0
RAM 108461 108461 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 892400 892400 0 0.0
RAM 105852 105852 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 775896 775896 0 0.0
RAM 103420 103420 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 788132 788132 0 0.0
RAM 108604 108604 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 735532 735532 0 0.0
RAM 97444 97444 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 717916 717916 0 0.0
RAM 97572 97572 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 560890 560890 0 0.0
RAM 204616 204616 0 0.0
lock CC3235SF_LAUNCHXL FLASH 592794 592794 0 0.0
RAM 204824 204824 0 0.0
efr32 lock-app BRD4187C FLASH 992648 992648 0 0.0
RAM 131272 131272 0 0.0
BRD4338a FLASH 796433 796425 -8 -0.0
RAM 243380 243380 0 0.0
window-app BRD4187C FLASH 1098152 1098152 0 0.0
RAM 130312 130312 0 0.0
esp32 all-clusters-app c3devkit DRAM 98572 98572 0 0.0
FLASH 1601762 1601762 0 0.0
IRAM 93514 93514 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 864244 864244 0 0.0
RAM 162233 162233 0 0.0
nxp contact mcxw71+release FLASH 740336 742344 2008 0.3
RAM 67040 67096 56 0.1
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1714948 1714948 0 0.0
RAM 214180 214180 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1612364 1612364 0 0.0
RAM 211052 211052 0 0.0
light cy8ckit_062s2_43012 FLASH 1466940 1466940 0 0.0
RAM 197092 197092 0 0.0
lock cy8ckit_062s2_43012 FLASH 1499668 1499668 0 0.0
RAM 224828 224828 0 0.0
qpg lighting-app qpg6200+debug FLASH 842700 842844 144 0.0
RAM 127884 127884 0 0.0
lock-app qpg6200+debug FLASH 781300 781284 -16 -0.0
RAM 118832 118832 0 0.0
realtek light-switch-app rtl8777g FLASH 681032 681032 0 0.0
RAM 101632 101632 0 0.0
lighting-app rtl8777g FLASH 724832 724832 0 0.0
RAM 101964 101964 0 0.0
stm32 light STM32WB5MM-DK FLASH 475476 475476 0 0.0
RAM 141412 141412 0 0.0
telink bridge-app tl7218x FLASH 730658 730658 0 0.0
RAM 95932 95932 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 850462 850462 0 0.0
RAM 44348 44348 0 0.0
tl7218x FLASH 841868 841868 0 0.0
RAM 99736 99736 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 730460 730460 0 0.0
RAM 56012 56012 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 793686 793686 0 0.0
RAM 75188 75188 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 730382 730382 0 0.0
RAM 33492 33492 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 613268 613268 0 0.0
RAM 118404 118404 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 840002 840006 4 0.0
RAM 97444 97444 0 0.0

Copy link
Copy Markdown

@antonijakubiak-samsung antonijakubiak-samsung left a comment

Choose a reason for hiding this comment

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

Hi, looks very solid for me. I have two suggestions:

  1. license
  2. save-restore context.obj.log_config.filter.msg_counter

Comment thread scripts/tests/run_test_suite.py Outdated
Comment thread scripts/tests/chiptest/concurrency/__init__.py
MarekPikula and others added 4 commits April 23, 2026 10:26
Signed-off-by: Marek Pikuła <m.pikula@partner.samsung.com>
Co-authored-by: Copilot <copilot@github.com>
Signed-off-by: Marek Pikuła <m.pikula@partner.samsung.com>
Signed-off-by: Marek Pikuła <m.pikula@partner.samsung.com>
Signed-off-by: Marek Pikuła <m.pikula@partner.samsung.com>
Copilot AI review requested due to automatic review settings April 23, 2026 10:47
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/tests/chiptest/log_config.py
Comment thread scripts/tests/chiptest/concurrency/process.py
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 23, 2026

PR #71558: Size comparison from adb9376 to ae94388

Full report (26 builds for bl602, bl616, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32)
platform target config section adb9376 ae94388 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1090754 1090754 0 0.0
RAM 144930 144930 0 0.0
bl616 lighting-app bl616+thread FLASH 1102236 1102236 0 0.0
RAM 104344 104344 0 0.0
bl616+wifi+shell FLASH 1589180 1589180 0 0.0
RAM 98240 98240 0 0.0
bl702 lighting-app bl702+eth FLASH 1053924 1053924 0 0.0
RAM 108549 108549 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 892608 892608 0 0.0
RAM 105940 105940 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 776024 776024 0 0.0
RAM 103492 103492 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 788564 788564 0 0.0
RAM 108684 108684 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 735708 735708 0 0.0
RAM 97516 97516 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 717756 717756 0 0.0
RAM 97644 97644 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 562722 562722 0 0.0
RAM 205072 205072 0 0.0
lock CC3235SF_LAUNCHXL FLASH 594586 594586 0 0.0
RAM 205272 205272 0 0.0
efr32 lock-app BRD4187C FLASH 993412 993412 0 0.0
RAM 131352 131352 0 0.0
BRD4338a FLASH 797645 797637 -8 -0.0
RAM 243452 243452 0 0.0
window-app BRD4187C FLASH 1099220 1099220 0 0.0
RAM 130392 130392 0 0.0
esp32 all-clusters-app c3devkit DRAM 99164 99164 0 0.0
FLASH 1607400 1607400 0 0.0
IRAM 94776 94776 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 866632 866632 0 0.0
RAM 162404 162404 0 0.0
nxp contact mcxw71+release FLASH 742664 742664 0 0.0
RAM 67160 67160 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1717668 1717668 0 0.0
RAM 214628 214628 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1615100 1615100 0 0.0
RAM 211500 211500 0 0.0
light cy8ckit_062s2_43012 FLASH 1469428 1469428 0 0.0
RAM 197548 197548 0 0.0
lock cy8ckit_062s2_43012 FLASH 1502404 1502404 0 0.0
RAM 225276 225276 0 0.0
qpg lighting-app qpg6200+debug FLASH 843084 843084 0 0.0
RAM 127956 127956 0 0.0
lock-app qpg6200+debug FLASH 781644 781644 0 0.0
RAM 118904 118904 0 0.0
realtek light-switch-app rtl8777g FLASH 682856 682856 0 0.0
RAM 101824 101824 0 0.0
lighting-app rtl8777g FLASH 726760 726760 0 0.0
RAM 102164 102164 0 0.0
stm32 light STM32WB5MM-DK FLASH 477348 477348 0 0.0
RAM 141604 141604 0 0.0

@Apollon77
Copy link
Copy Markdown
Contributor

@MarekPikula Are there any changes needed when using the test runner to execute testing like matter,js by replacing chip-tool with an other controller? ... we do like https://github.com/matter-js/matter.js/blob/69706ab580b34ddfcd8848c08744b90b103a4e17/.github/workflows/chip-matterjs-tests.yml#L104

@MarekPikula
Copy link
Copy Markdown
Contributor Author

@MarekPikula Are there any changes needed when using the test runner to execute testing like matter,js by replacing chip-tool with an other controller? ... we do like https://github.com/matter-js/matter.js/blob/69706ab580b34ddfcd8848c08744b90b103a4e17/.github/workflows/chip-matterjs-tests.yml#L104

Hi @Apollon77, I replied to your email regarding the test failure you mentioned.

As for this PR, there should be no impact when using different controllers. I'm making every effort to ensure the changes are transparent to both controllers and tests.

Copilot AI review requested due to automatic review settings April 27, 2026 10:00
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/tests/chiptest/log_config.py
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 27, 2026

PR #71558: Size comparison from 5357019 to 473f875

Full report (34 builds for bl602, bl616, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section 5357019 473f875 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1090754 1090754 0 0.0
RAM 144930 144930 0 0.0
bl616 lighting-app bl616+thread FLASH 1102236 1102236 0 0.0
RAM 104344 104344 0 0.0
bl616+wifi+shell FLASH 1589180 1589180 0 0.0
RAM 98240 98240 0 0.0
bl702 lighting-app bl702+eth FLASH 1053924 1053924 0 0.0
RAM 108549 108549 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 892608 892608 0 0.0
RAM 105940 105940 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 776024 776024 0 0.0
RAM 103492 103492 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 788580 788580 0 0.0
RAM 108684 108684 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 735708 735708 0 0.0
RAM 97516 97516 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 717756 717756 0 0.0
RAM 97644 97644 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 562722 562722 0 0.0
RAM 205072 205072 0 0.0
lock CC3235SF_LAUNCHXL FLASH 594586 594586 0 0.0
RAM 205272 205272 0 0.0
efr32 lock-app BRD4187C FLASH 993412 993412 0 0.0
RAM 131352 131352 0 0.0
BRD4338a FLASH 797645 797637 -8 -0.0
RAM 243452 243452 0 0.0
window-app BRD4187C FLASH 1099220 1099220 0 0.0
RAM 130392 130392 0 0.0
esp32 all-clusters-app c3devkit DRAM 99164 99164 0 0.0
FLASH 1607400 1607400 0 0.0
IRAM 94776 94776 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 866632 866632 0 0.0
RAM 162404 162404 0 0.0
nxp contact mcxw71+release FLASH 742664 742664 0 0.0
RAM 67160 67160 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1717668 1717668 0 0.0
RAM 214628 214628 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1615100 1615100 0 0.0
RAM 211500 211500 0 0.0
light cy8ckit_062s2_43012 FLASH 1469428 1469428 0 0.0
RAM 197548 197548 0 0.0
lock cy8ckit_062s2_43012 FLASH 1502404 1502404 0 0.0
RAM 225276 225276 0 0.0
qpg lighting-app qpg6200+debug FLASH 843084 843084 0 0.0
RAM 127956 127956 0 0.0
lock-app qpg6200+debug FLASH 781644 781644 0 0.0
RAM 118904 118904 0 0.0
realtek light-switch-app rtl8777g FLASH 684680 684680 0 0.0
RAM 101832 101832 0 0.0
lighting-app rtl8777g FLASH 728728 728728 0 0.0
RAM 102164 102164 0 0.0
stm32 light STM32WB5MM-DK FLASH 477348 477348 0 0.0
RAM 141604 141604 0 0.0
telink bridge-app tl7218x FLASH 730678 730678 0 0.0
RAM 95932 95932 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 850378 850378 0 0.0
RAM 44400 44400 0 0.0
tl7218x FLASH 841784 841784 0 0.0
RAM 99796 99796 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 730300 730300 0 0.0
RAM 56064 56064 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 793526 793526 0 0.0
RAM 75248 75248 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 730198 730198 0 0.0
RAM 33544 33544 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 613126 613126 0 0.0
RAM 118632 118632 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 839918 839922 4 0.0
RAM 97504 97504 0 0.0

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 27, 2026

PR #71558: Size comparison from 46582e0 to 87bbabe

Full report (34 builds for bl602, bl616, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section 46582e0 87bbabe change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1090734 1090734 0 0.0
RAM 144930 144930 0 0.0
bl616 lighting-app bl616+thread FLASH 1102236 1102236 0 0.0
RAM 104344 104344 0 0.0
bl616+wifi+shell FLASH 1589180 1589180 0 0.0
RAM 98240 98240 0 0.0
bl702 lighting-app bl702+eth FLASH 1053904 1053904 0 0.0
RAM 108549 108549 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 892608 892608 0 0.0
RAM 105940 105940 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 776024 776024 0 0.0
RAM 103492 103492 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 788580 788580 0 0.0
RAM 108684 108684 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 735708 735708 0 0.0
RAM 97516 97516 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 717756 717756 0 0.0
RAM 97644 97644 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 562722 562722 0 0.0
RAM 205072 205072 0 0.0
lock CC3235SF_LAUNCHXL FLASH 594586 594586 0 0.0
RAM 205272 205272 0 0.0
efr32 lock-app BRD4187C FLASH 993412 993412 0 0.0
RAM 131352 131352 0 0.0
BRD4338a FLASH 797645 797637 -8 -0.0
RAM 243452 243452 0 0.0
window-app BRD4187C FLASH 1099220 1099220 0 0.0
RAM 130392 130392 0 0.0
esp32 all-clusters-app c3devkit DRAM 99164 99164 0 0.0
FLASH 1607414 1607414 0 0.0
IRAM 94776 94776 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 866652 866652 0 0.0
RAM 162404 162404 0 0.0
nxp contact mcxw71+release FLASH 742664 742664 0 0.0
RAM 67160 67160 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1717716 1717716 0 0.0
RAM 214628 214628 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1615116 1615116 0 0.0
RAM 211500 211500 0 0.0
light cy8ckit_062s2_43012 FLASH 1469428 1469428 0 0.0
RAM 197548 197548 0 0.0
lock cy8ckit_062s2_43012 FLASH 1502404 1502404 0 0.0
RAM 225276 225276 0 0.0
qpg lighting-app qpg6200+debug FLASH 843068 843068 0 0.0
RAM 127956 127956 0 0.0
lock-app qpg6200+debug FLASH 781644 781644 0 0.0
RAM 118904 118904 0 0.0
realtek light-switch-app rtl8777g FLASH 684680 684680 0 0.0
RAM 101832 101832 0 0.0
lighting-app rtl8777g FLASH 728728 728728 0 0.0
RAM 102164 102164 0 0.0
stm32 light STM32WB5MM-DK FLASH 477348 477348 0 0.0
RAM 141604 141604 0 0.0
telink bridge-app tl7218x FLASH 730678 730678 0 0.0
RAM 95932 95932 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 850378 850378 0 0.0
RAM 44400 44400 0 0.0
tl7218x FLASH 841784 841784 0 0.0
RAM 99796 99796 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 730300 730300 0 0.0
RAM 56064 56064 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 793526 793526 0 0.0
RAM 75248 75248 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 730198 730198 0 0.0
RAM 33544 33544 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 613126 613126 0 0.0
RAM 118632 118632 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 839898 839902 4 0.0
RAM 97504 97504 0 0.0

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.

6 participants