Skip to content

[Camera] Re-enable WebRTC Requester tests #40134

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

Merged
merged 2 commits into from
Jul 17, 2025

Conversation

yufengwangca
Copy link
Contributor

Summary

WebRTC Requester tests has been temperately disabled due to the camera-controller could not allocate video stream before establishing WebRTC session.

  1. Allocate video stream before trigger WebRTC session establishment process
  2. Re-enable WebRTC Requester tests

Related issues

Fixes: #39840

Testing

Update the WebRTCR python tests and validate the change by CI

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 re-enables WebRTC requester tests by introducing a new establish-session command that correctly allocates a video stream before initiating the WebRTC session. The changes look good and logically follow the PR's objective.

I've made a few suggestions:

  • Critical: Remove hardcoded user-specific paths from the new VSCode configuration files to ensure they are portable for all developers.
  • Medium: Refactor duplicated code into a helper function for better maintainability.
  • Medium: Replace a magic number with a static_cast to an enum for better readability and type safety.

…nds.cpp

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Copy link

github-actions bot commented Jul 16, 2025

PR #40134: Size comparison from b7bbf2e to e91755b

Full report (57 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section b7bbf2e e91755b change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1102666 1102666 0 0.0
RAM 178970 178970 0 0.0
bl702 lighting-app bl702+eth FLASH 656064 656064 0 0.0
RAM 134929 134929 0 0.0
bl702+wifi FLASH 833252 833252 0 0.0
RAM 124469 124469 0 0.0
bl706+mfd+rpc+littlefs FLASH 1065370 1065370 0 0.0
RAM 117341 117341 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 894916 894916 0 0.0
RAM 105628 105628 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 978634 978634 0 0.0
RAM 109820 109820 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 765104 765104 0 0.0
RAM 103336 103336 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 776468 776468 0 0.0
RAM 108504 108504 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 722832 722832 0 0.0
RAM 96908 96908 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 707108 707108 0 0.0
RAM 97116 97116 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 549506 549506 0 0.0
RAM 205104 205104 0 0.0
lock CC3235SF_LAUNCHXL FLASH 581842 581842 0 0.0
RAM 205304 205304 0 0.0
efr32 lock-app BRD4187C FLASH 956624 956624 0 0.0
RAM 126532 126532 0 0.0
BRD4338a FLASH 751140 751132 -8 -0.0
RAM 251880 251880 0 0.0
window-app BRD4187C FLASH 1049536 1049528 -8 -0.0
RAM 122728 122728 0 0.0
esp32 all-clusters-app c3devkit DRAM 102232 102232 0 0.0
FLASH 1781248 1781248 0 0.0
IRAM 83862 83862 0 0.0
m5stack DRAM 121116 121116 0 0.0
FLASH 1748614 1748614 0 0.0
IRAM 117071 117071 0 0.0
linux air-purifier-app debug unknown 4856 4856 0 0.0
FLASH 2797962 2797962 0 0.0
RAM 117192 117192 0 0.0
all-clusters-app debug unknown 5672 5672 0 0.0
FLASH 6207054 6207054 0 0.0
RAM 532480 532480 0 0.0
all-clusters-minimal-app debug unknown 5536 5536 0 0.0
FLASH 5474518 5474518 0 0.0
RAM 227768 227768 0 0.0
bridge-app debug unknown 5568 5568 0 0.0
FLASH 4803322 4803322 0 0.0
RAM 207456 207456 0 0.0
camera-app debug unknown 8976 8976 0 0.0
FLASH 6943819 6943819 0 0.0
RAM 230496 230496 0 0.0
camera-controller debug unknown 9216 9216 0 0.0
FLASH 14387355 14389163 1808 0.0
RAM 662584 662680 96 0.0
chip-tool debug unknown 6272 6272 0 0.0
FLASH 14759903 14759903 0 0.0
RAM 656224 656224 0 0.0
chip-tool-ipv6only arm64 unknown 40744 40744 0 0.0
FLASH 12729623 12729623 0 0.0
RAM 702488 702488 0 0.0
closure-app debug unknown 5536 5536 0 0.0
FLASH 4786210 4786210 0 0.0
RAM 200344 200344 0 0.0
fabric-admin debug unknown 5952 5952 0 0.0
FLASH 12802435 12802435 0 0.0
RAM 655256 655256 0 0.0
fabric-bridge-app debug unknown 4816 4816 0 0.0
FLASH 4588024 4588024 0 0.0
RAM 193200 193200 0 0.0
fabric-sync debug unknown 5064 5064 0 0.0
FLASH 5736829 5736829 0 0.0
RAM 492576 492576 0 0.0
lighting-app debug+rpc+ui unknown 6280 6280 0 0.0
FLASH 5690145 5690145 0 0.0
RAM 209720 209720 0 0.0
lock-app debug unknown 5496 5496 0 0.0
FLASH 4832066 4832066 0 0.0
RAM 196936 196936 0 0.0
ota-provider-app debug unknown 4856 4856 0 0.0
FLASH 4442234 4442234 0 0.0
RAM 185952 185952 0 0.0
ota-requestor-app debug unknown 4736 4736 0 0.0
FLASH 4514430 4514430 0 0.0
RAM 188824 188824 0 0.0
shell debug unknown 4288 4288 0 0.0
FLASH 3077332 3077332 0 0.0
RAM 147088 147088 0 0.0
thermostat-no-ble arm64 unknown 9840 9840 0 0.0
FLASH 4246527 4246527 0 0.0
RAM 233632 233632 0 0.0
tv-app debug unknown 5832 5832 0 0.0
FLASH 6102317 6102317 0 0.0
RAM 616856 616856 0 0.0
tv-casting-app debug unknown 5352 5352 0 0.0
FLASH 12905597 12905597 0 0.0
RAM 772592 772592 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 890608 890608 0 0.0
RAM 152731 152731 0 0.0
nxp contact mcxw71+release FLASH 626312 626312 0 0.0
RAM 64020 64020 0 0.0
lock mcxw71+release FLASH 777528 777528 0 0.0
RAM 68676 68676 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1633388 1633388 0 0.0
RAM 211064 211064 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1577564 1577564 0 0.0
RAM 208432 208432 0 0.0
light cy8ckit_062s2_43012 FLASH 1449460 1449460 0 0.0
RAM 197152 197152 0 0.0
lock cy8ckit_062s2_43012 FLASH 1481716 1481716 0 0.0
RAM 224872 224872 0 0.0
qpg lighting-app qpg6200+debug FLASH 744224 744224 0 0.0
RAM 94252 94252 0 0.0
lock-app qpg6200+debug FLASH 753844 753844 0 0.0
RAM 94280 94280 0 0.0
stm32 light STM32WB5MM-DK FLASH 465300 465300 0 0.0
RAM 141336 141336 0 0.0
telink bridge-app tl7218x FLASH 702292 702292 0 0.0
RAM 93564 93564 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 794018 794018 0 0.0
RAM 43980 43980 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 782424 782424 0 0.0
RAM 100876 100876 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 709540 709540 0 0.0
RAM 54204 54204 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 746134 746134 0 0.0
RAM 77368 77368 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 722860 722860 0 0.0
RAM 36960 36960 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 603108 603108 0 0.0
RAM 112532 112532 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 817980 817984 4 0.0
RAM 99128 99128 0 0.0
tizen all-clusters-app arm unknown 5092 5092 0 0.0
FLASH 1697096 1697096 0 0.0
RAM 91360 91360 0 0.0
chip-tool-ubsan arm unknown 20804 20804 0 0.0
FLASH 21097618 21097618 0 0.0
RAM 9176636 9176636 0 0.0

@yufengwangca yufengwangca enabled auto-merge (squash) July 17, 2025 00:51
@yufengwangca yufengwangca merged commit 302593b into project-chip:master Jul 17, 2025
70 checks passed
@yufengwangca yufengwangca deleted the pr/webrtcr/test branch July 17, 2025 02:35
miduggan24 pushed a commit to miduggan24/connectedhomeip that referenced this pull request Jul 17, 2025
* Re-enable WebRTC Requster tests

* Update examples/camera-controller/commands/webrtc/WebRTCProviderCommands.cpp

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
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.

[WEBRTCR] Camera Controller App and Test Scripts don't account for the need to allocate a stream
4 participants