Skip to content

Commit 975e020

Browse files
authored
Merge branch 'master' into feature/app-install-flow-public
2 parents f63bc88 + 28430f1 commit 975e020

File tree

1,192 files changed

+40643
-13941
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,192 files changed

+40643
-13941
lines changed

.clang-tidy

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Checks: >
1212
readability-redundant-string-init,
1313
-bugprone-assignment-in-if-condition,
1414
-bugprone-branch-clone,
15+
-bugprone-casting-through-void, #TODO remove this after fixing issues in source code, issue 34008
1516
-bugprone-copy-constructor-init,
1617
-bugprone-easily-swappable-parameters,
1718
-bugprone-forward-declaration-namespace,

.github/workflows/build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ jobs:
332332
scripts/run_in_build_env.sh 'scripts/examples/gn_build_example.sh examples/chip-tool out/'
333333
scripts/run_in_build_env.sh 'virtualenv pyenv'
334334
source pyenv/bin/activate
335-
pip3 install -r src/setup_payload/python/requirements.txt
335+
pip3 install -r scripts/setup/requirements.setuppayload.txt
336336
python3 src/setup_payload/tests/run_python_setup_payload_test.py out/chip-tool
337337
338338
build_linux_python_lighting_device:

.github/workflows/chef.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
if: github.actor != 'restyled-io[bot]'
9999

100100
container:
101-
image: ghcr.io/project-chip/chip-build-telink:54
101+
image: ghcr.io/project-chip/chip-build-telink:57
102102
options: --user root
103103

104104
steps:
@@ -110,7 +110,7 @@ jobs:
110110
platform: telink
111111
# - name: Update Zephyr to specific revision (for developers purpose)
112112
# shell: bash
113-
# run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py 0e8032dfef7e02498f34ba0b5d5d2df71a62adb1"
113+
# run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py ab81a585fca6a83b30e1f4e58a021113d6a3acb8"
114114
- name: CI Examples Telink
115115
shell: bash
116116
run: |

.github/workflows/examples-efr32.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ jobs:
3333
name: EFR32
3434

3535
env:
36-
SILABS_BOARD: BRD4161A
36+
SILABS_BOARD: BRD4187C
3737
BUILD_TYPE: gn_efr32
3838

3939
runs-on: ubuntu-latest
4040
if: github.actor != 'restyled-io[bot]'
4141

4242
container:
43-
image: ghcr.io/project-chip/chip-build-efr32:54
43+
image: ghcr.io/project-chip/chip-build-efr32:56
4444
volumes:
4545
- "/tmp/bloat_reports:/tmp/bloat_reports"
4646
steps:

.github/workflows/examples-linux-tv-casting-app.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
- name: Build Linux tv-casting-app
6262
run: |
6363
./scripts/run_in_build_env.sh \
64-
"scripts/examples/gn_build_example.sh examples/tv-casting-app/linux/ out/tv-casting-app"
64+
"scripts/examples/gn_build_example.sh examples/tv-casting-app/linux/ out/tv-casting-app chip_casting_simplified=true"
6565
6666
- name: Test casting from Linux tv-casting-app to Linux tv-app
6767
run: |

.github/workflows/examples-mbed.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ jobs:
158158
rm -rf ./out
159159
160160
- name: Build unit tests
161-
# Temporarily disable build due to running out of flash space
161+
# Temporarily disabled build due to running out of flash space
162+
# TODO Issue #33978: re-enable unit testing after split of unit tests is done
162163
if: false
163164
run: scripts/tests/mbed/mbed_unit_tests.sh -b=$APP_TARGET -p=$APP_PROFILE
164165

.github/workflows/examples-telink.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
if: github.actor != 'restyled-io[bot]'
3939

4040
container:
41-
image: ghcr.io/project-chip/chip-build-telink:54
41+
image: ghcr.io/project-chip/chip-build-telink:57
4242
volumes:
4343
- "/tmp/bloat_reports:/tmp/bloat_reports"
4444

@@ -57,7 +57,7 @@ jobs:
5757
gh-context: ${{ toJson(github) }}
5858

5959
# - name: Update Zephyr to specific revision (for developers purpose)
60-
# run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py 0e8032dfef7e02498f34ba0b5d5d2df71a62adb1"
60+
# run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py ab81a585fca6a83b30e1f4e58a021113d6a3acb8"
6161

6262
- name: Build example Telink (B92 retention) Air Quality Sensor App
6363
run: |

.github/workflows/release_artifacts.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ jobs:
5858
efr32:
5959
name: EFR32
6060
env:
61-
SILABS_BOARD: BRD4161A
62-
BUILD_DIRECTORY: out/lock_app_debug/BRD4161A
61+
SILABS_BOARD: BRD4187C
62+
BUILD_DIRECTORY: out/lock_app_debug/BRD4187C
6363

6464
runs-on: ubuntu-latest
6565

6666
container:
67-
image: ghcr.io/project-chip/chip-build-efr32:54
67+
image: ghcr.io/project-chip/chip-build-efr32:56
6868
steps:
6969
- name: Checkout
7070
uses: actions/checkout@v4

.github/workflows/tests.yaml

+93-78
Large diffs are not rendered by default.

.gitmodules

+6-5
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,10 @@
231231
url = https://github.com/SiliconLabs/sdk_support.git
232232
branch = main
233233
platforms = silabs,silabs_docker
234-
[submodule "third_party/silabs/gecko_sdk"]
235-
path = third_party/silabs/gecko_sdk
236-
url = https://github.com/SiliconLabs/gecko_sdk.git
237-
branch = v4.4.2
234+
[submodule "third_party/silabs/simplicity_sdk"]
235+
path = third_party/silabs/simplicity_sdk
236+
url = https://github.com/SiliconLabs/simplicity_sdk.git
237+
branch = v2024.6.0
238238
platforms = silabs
239239
[submodule "third_party/silabs/wiseconnect-wifi-bt-sdk"]
240240
path = third_party/silabs/wiseconnect-wifi-bt-sdk
@@ -244,14 +244,15 @@
244244
[submodule "third_party/silabs/wifi_sdk"]
245245
path = third_party/silabs/wifi_sdk
246246
url = https://github.com/SiliconLabs/wiseconnect.git
247-
branch = v3.1.3-matter-hotfix.4
247+
branch = v3.3.0
248248
platforms = silabs
249249
[submodule "editline"]
250250
path = third_party/editline/repo
251251
url = https://github.com/troglobit/editline.git
252252
[submodule "third_party/boringssl/repo/src"]
253253
path = third_party/boringssl/repo/src
254254
url = https://github.com/google/boringssl.git
255+
branch = master
255256
[submodule "third_party/mt793x_sdk/filogic"]
256257
path = third_party/mt793x_sdk/filogic
257258
url = https://github.com/MediaTek-Labs/genio-matter-bsp.git

.pullapprove.yml

+8
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,14 @@ groups:
133133
teams: [reviewers-google]
134134
reviews:
135135
request: 10
136+
shared-reviewers-grundfos:
137+
type: optional
138+
conditions:
139+
- files.include('*')
140+
reviewers:
141+
teams: [reviewers-grundfos]
142+
reviews:
143+
request: 10
136144
shared-reviewers-irobot:
137145
type: optional
138146
conditions:

.vscode/tasks.json

+12-48
Original file line numberDiff line numberDiff line change
@@ -557,54 +557,18 @@
557557
"bouffalolab-xt-zb6-devkit-light",
558558
"bouffalolab-xt-zb6-devkit-light-rpc-115200",
559559
"bouffalolab-bl706-night-light-light",
560-
"efr32-brd4161a-light",
561-
"efr32-brd4163a-light",
562-
"efr32-brd4164a-light",
563-
"efr32-brd4166a-light",
564-
"efr32-brd4170a-light",
565-
"efr32-brd4186a-light",
566-
"efr32-brd4187a-light",
567-
"efr32-brd4304a-light",
568-
"efr32-brd4161a-light-rpc",
569-
"efr32-brd4163a-light-rpc",
570-
"efr32-brd4164a-light-rpc",
571-
"efr32-brd4166a-light-rpc",
572-
"efr32-brd4170a-light-rpc",
573-
"efr32-brd4186a-light-rpc",
574-
"efr32-brd4187a-light-rpc",
575-
"efr32-brd4304a-light-rpc",
576-
"efr32-brd4161a-lock",
577-
"efr32-brd4163a-lock",
578-
"efr32-brd4164a-lock",
579-
"efr32-brd4166a-lock",
580-
"efr32-brd4170a-lock",
581-
"efr32-brd4186a-lock",
582-
"efr32-brd4187a-lock",
583-
"efr32-brd4304a-lock",
584-
"efr32-brd4161a-unit-test",
585-
"efr32-brd4163a-unit-test",
586-
"efr32-brd4164a-unit-test",
587-
"efr32-brd4166a-unit-test",
588-
"efr32-brd4170a-unit-test",
589-
"efr32-brd4186a-unit-test",
590-
"efr32-brd4187a-unit-test",
591-
"efr32-brd4304a-unit-test",
592-
"efr32-brd4161a-switch",
593-
"efr32-brd4163a-switch",
594-
"efr32-brd4164a-switch",
595-
"efr32-brd4166a-switch",
596-
"efr32-brd4170a-switch",
597-
"efr32-brd4186a-switch",
598-
"efr32-brd4187a-switch",
599-
"efr32-brd4304a-switch",
600-
"efr32-brd4161a-window-covering",
601-
"efr32-brd4163a-window-covering",
602-
"efr32-brd4164a-window-covering",
603-
"efr32-brd4166a-window-covering",
604-
"efr32-brd4170a-window-covering",
605-
"efr32-brd4186a-window-covering",
606-
"efr32-brd4187a-window-covering",
607-
"efr32-brd4304a-window-covering",
560+
"efr32-brd4186c-light",
561+
"efr32-brd4186c-light-rpc",
562+
"efr32-brd4186c-lock",
563+
"efr32-brd4186c-unit-test",
564+
"efr32-brd4186c-switch",
565+
"efr32-brd4186c-window-covering",
566+
"efr32-brd4187c-light",
567+
"efr32-brd4187c-light-rpc",
568+
"efr32-brd4187c-lock",
569+
"efr32-brd4187c-unit-test",
570+
"efr32-brd4187c-switch",
571+
"efr32-brd4187c-window-covering",
608572
"efr32-brd4338a-light-wifi-917_soc-skip_rps_generation",
609573
"esp32-c3devkit-all-clusters",
610574
"esp32-devkitc-all-clusters",

BUILD.gn

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import("//build_overrides/build.gni")
1616
import("//build_overrides/chip.gni")
1717
import("//build_overrides/mbedtls.gni")
1818
import("//build_overrides/nlassert.gni")
19-
import("//build_overrides/nlunit_test.gni")
2019
import("//build_overrides/pigweed.gni")
2120

2221
import("//src/lwip/lwip.gni")
@@ -135,7 +134,6 @@ if (current_toolchain != "${dir_pw_toolchain}/default:default") {
135134
"${chip_root}/src/system",
136135
"${chip_root}/src/transport",
137136
"${nlassert_root}:nlassert",
138-
"${nlunit_test_root}:nlunit-test",
139137
]
140138

141139
if (enable_fuzz_test_targets) {
@@ -163,6 +161,7 @@ if (current_toolchain != "${dir_pw_toolchain}/default:default") {
163161
"${chip_root}/examples/shell/standalone:chip-shell",
164162
"${chip_root}/src/app/tests/integration:chip-im-initiator",
165163
"${chip_root}/src/app/tests/integration:chip-im-responder",
164+
"${chip_root}/src/inet/tests:inet-layer-test-tool",
166165
"${chip_root}/src/lib/address_resolve:address-resolve-tool",
167166
"${chip_root}/src/messaging/tests/echo:chip-echo-requester",
168167
"${chip_root}/src/messaging/tests/echo:chip-echo-responder",

build/chip/chip_test_suite.gni

+7-101
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ assert(chip_build_tests)
3333
# ]
3434
#
3535
# test_sources = [
36-
# "TestFoo.cpp", # Files are parsed for `CHIP_REGISTER_TEST_SUITE(...)`
37-
# "TestBar.cpp", # and a driver is created automatically
36+
# "TestFoo.cpp",
37+
# "TestBar.cpp",
3838
# ]
3939
#
4040
# public_deps = [
@@ -94,9 +94,12 @@ template("chip_test_suite") {
9494

9595
deps = [ dir_pw_unit_test ]
9696

97-
if (current_os != "zephyr" && current_os != "mbed") {
97+
if (current_os != "zephyr" && current_os != "mbed" &&
98+
chip_device_platform != "efr32") {
9899
# Depend on stdio logging, and have it take precedence over the default platform backend
99-
public_deps += [ "${chip_root}/src/platform/logging:force_stdio" ]
100+
public_deps += [ "${chip_root}/src/platform/logging:stdio" ]
101+
} else {
102+
public_deps += [ "${chip_root}/src/platform/logging:default" ]
100103
}
101104
}
102105
if (chip_link_tests) {
@@ -175,100 +178,3 @@ template("chip_test_suite") {
175178
}
176179
}
177180
}
178-
179-
# TODO [PW_MIGRATION]: remove this once transition away from nlunit-test is completed
180-
template("chip_test_suite_using_nltest") {
181-
_suite_name = target_name
182-
183-
# Ensures that the common library has sources containing both common
184-
# and individual unit tests.
185-
if (!defined(invoker.sources)) {
186-
invoker.sources = []
187-
}
188-
189-
if (defined(invoker.test_sources)) {
190-
invoker.sources += invoker.test_sources
191-
}
192-
193-
if (chip_build_test_static_libraries) {
194-
_target_type = "static_library"
195-
} else {
196-
_target_type = "source_set"
197-
}
198-
target(_target_type, "${_suite_name}.lib") {
199-
forward_variables_from(invoker, "*", [ "tests" ])
200-
201-
output_dir = "${root_out_dir}/lib"
202-
203-
if (!defined(invoker.public_deps)) {
204-
public_deps = []
205-
}
206-
207-
if (current_os != "zephyr" && current_os != "mbed") {
208-
# Depend on stdio logging, and have it take precedence over the default platform backend
209-
public_deps += [ "${chip_root}/src/platform/logging:force_stdio" ]
210-
}
211-
}
212-
if (chip_link_tests) {
213-
tests = []
214-
215-
if (defined(invoker.test_sources)) {
216-
foreach(_test, invoker.test_sources) {
217-
_test_name = string_replace(_test, ".cpp", "")
218-
219-
_driver_name = "${root_gen_dir}/${_test_name}.driver.cpp"
220-
221-
action("${_test_name}_generate_driver") {
222-
script = "${chip_root}/scripts/gen_test_driver.py"
223-
224-
inputs = [ _test ]
225-
outputs = [ _driver_name ]
226-
args = [
227-
"--input_file=" + rebase_path(_test, root_build_dir),
228-
"--output_file=" + rebase_path(_driver_name, root_build_dir),
229-
]
230-
}
231-
232-
chip_test(_test_name) {
233-
sources = [ _driver_name ]
234-
public_deps = [
235-
":${_suite_name}.lib",
236-
":${_test_name}_generate_driver",
237-
]
238-
}
239-
tests += [ _test_name ]
240-
}
241-
}
242-
243-
if (defined(invoker.tests)) {
244-
foreach(_test, invoker.tests) {
245-
chip_test(_test) {
246-
sources = [ "${_test}Driver.cpp" ]
247-
248-
public_deps = [ ":${_suite_name}.lib" ]
249-
}
250-
tests += [ _test ]
251-
}
252-
}
253-
254-
group(_suite_name) {
255-
deps = []
256-
foreach(_test, tests) {
257-
deps += [ ":${_test}" ]
258-
}
259-
}
260-
261-
if (chip_pw_run_tests) {
262-
group("${_suite_name}_run") {
263-
deps = []
264-
foreach(_test, tests) {
265-
deps += [ ":${_test}.run" ]
266-
}
267-
}
268-
}
269-
} else {
270-
group(_suite_name) {
271-
deps = [ ":${_suite_name}.lib" ]
272-
}
273-
}
274-
}

build/chip/fuzz_test.gni

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ declare_args() {
3636
#
3737
# public_deps = [
3838
# "${chip_root}/src/lib/foo", # add dependencies here
39-
# "${nlunit_test_root}:nlunit-test",
4039
# ]
4140
# }
4241
#

0 commit comments

Comments
 (0)