Skip to content

Commit 1d52db3

Browse files
committed
Merge remote-tracking branch 'upstream/master' into power_source_endpoint_list_setter
2 parents a0e802b + 2946b42 commit 1d52db3

File tree

1,351 files changed

+435372
-192260
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,351 files changed

+435372
-192260
lines changed

.github/.wordlist.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,7 @@ hci
632632
hciattach
633633
hciconfig
634634
hdlc
635+
HEPA
635636
HKDF
636637
HMAC
637638
hoc
@@ -641,7 +642,6 @@ HomePods
641642
hostapd
642643
hostname
643644
href
644-
HEPA
645645
HTTPS
646646
HW
647647
hwadr
@@ -652,6 +652,7 @@ IasWd
652652
iaszone
653653
ibb
654654
ICA
655+
ICD
655656
iCloud
656657
ICMP
657658
IDF

.github/labeler.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ app:
148148
- src/app/*
149149
- src/app/**/*
150150

151+
icd:
152+
- src/app/icd/*
153+
- src/app/icd/**/*
154+
151155
transport:
152156
- src/transport/*
153157
- src/transport/**/*
@@ -185,9 +189,9 @@ darwin:
185189
- examples/darwin-framework-tool/*
186190
- examples/darwin-framework-tool/**/*
187191

188-
efr32:
189-
- src/platform/efr32/*
190-
- src/platform/efr32/**/*
192+
silabs:
193+
- src/platform/silabs/*
194+
- src/platform/silabs/**/*
191195

192196
esp32:
193197
- src/platform/ESP32/*
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Build Certification Image
2+
on:
3+
workflow_call:
4+
workflow_dispatch:
5+
jobs:
6+
build-cert-bin:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@master
10+
- name: Set up Docker Buildx
11+
uses: docker/setup-buildx-action@v2
12+
- name: Publish to Registry
13+
uses: elgohr/Publish-Docker-Github-Action@v5
14+
with:
15+
name: ghcr.io/project-chip/chip-cert-bins
16+
tags: latest
17+
dockerfile: ./integrations/docker/images/chip-cert-bins/Dockerfile
18+
username: ${{ github.actor }}
19+
password: ${{ secrets.GITHUB_TOKEN }}
20+
registry: ghcr.io
21+
platforms: linux/amd64,linux/arm64,linux/arm

.github/workflows/build.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ jobs:
174174
BUILD_TYPE=gcc_release scripts/build/gn_gen.sh --args="is_debug=false"
175175
scripts/run_in_build_env.sh "ninja -C ./out/gcc_release"
176176
BUILD_TYPE=gcc_release scripts/tests/gn_tests.sh
177+
- name: Clean output
178+
run: rm -rf ./out
177179
- name: Run Tests with sanitizers
178180
env:
179181
LSAN_OPTIONS: detect_leaks=1
@@ -201,6 +203,8 @@ jobs:
201203
--file-exclude-regex '/(repo|zzz_generated|lwip/standalone)/' \
202204
check \
203205
"
206+
- name: Clean output
207+
run: rm -rf ./out
204208
- name: Build using build_examples.py
205209
run: |
206210
./scripts/run_in_build_env.sh \

.github/workflows/chef.yaml

+1-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
if: github.actor != 'restyled-io[bot]'
5555

5656
container:
57-
image: ghcr.io/project-chip/chip-build-esp32:1
57+
image: ghcr.io/project-chip/chip-build-esp32:2
5858
options: --user root
5959

6060
steps:
@@ -64,8 +64,6 @@ jobs:
6464
uses: ./.github/actions/checkout-submodules-and-bootstrap
6565
with:
6666
platform: esp32
67-
- name: Fixup GdbGui requirement
68-
run: perl -i -pe 's/^gdbgui==/# gdbgui==/' /opt/espressif/esp-idf/requirements.txt
6967
- name: CI Examples ESP32
7068
shell: bash
7169
run: |

.github/workflows/darwin.yaml

+5-2
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,12 @@ jobs:
9595
- name: Build example OTA Provider
9696
run: |
9797
scripts/examples/gn_build_example.sh examples/ota-provider-app/linux out/debug chip_config_network_layer_ble=false
98-
- name: Build OTA image files with software version number 5
98+
- name: Build OTA image files with software version number 5 and 10
9999
run: |
100100
scripts/examples/gn_build_example.sh examples/ota-requestor-app/linux out/debug chip_config_network_layer_ble=false non_spec_compliant_ota_action_delay_floor=0 chip_device_config_device_software_version=5 chip_device_config_device_software_version_string='"5.0"'
101-
cp out/debug/chip-ota-requestor-app /tmp/ota-test005-raw-image
101+
cp out/debug/chip-ota-requestor-app /tmp/ota-raw-image-v5
102+
scripts/examples/gn_build_example.sh examples/ota-requestor-app/linux out/debug chip_config_network_layer_ble=false non_spec_compliant_ota_action_delay_floor=0 chip_device_config_device_software_version=10 chip_device_config_device_software_version_string='"10.0"'
103+
cp out/debug/chip-ota-requestor-app /tmp/ota-raw-image-v10
102104
- name: Build example OTA Requestor
103105
run: |
104106
scripts/examples/gn_build_example.sh examples/ota-requestor-app/linux out/debug chip_config_network_layer_ble=false non_spec_compliant_ota_action_delay_floor=0
@@ -120,6 +122,7 @@ jobs:
120122
# And a different port from the test harness too; the test harness uses port 5541.
121123
../../../out/debug/chip-ota-requestor-app --interface-id -1 --secured-device-port 5542 --discriminator 1111 --KVS /tmp/chip-ota-requestor-kvs1 --otaDownloadPath /tmp/chip-ota-requestor-downloaded-image1 --autoApplyImage > >(tee /tmp/darwin/framework-tests/ota-requestor-app-1.log) 2> >(tee /tmp/darwin/framework-tests/ota-requestor-app-err-1.log >&2) &
122124
../../../out/debug/chip-ota-requestor-app --interface-id -1 --secured-device-port 5543 --discriminator 1112 --KVS /tmp/chip-ota-requestor-kvs2 --otaDownloadPath /tmp/chip-ota-requestor-downloaded-image2 --autoApplyImage > >(tee /tmp/darwin/framework-tests/ota-requestor-app-2.log) 2> >(tee /tmp/darwin/framework-tests/ota-requestor-app-err-2.log >&2) &
125+
../../../out/debug/chip-ota-requestor-app --interface-id -1 --secured-device-port 5544 --discriminator 1113 --KVS /tmp/chip-ota-requestor-kvs3 --otaDownloadPath /tmp/chip-ota-requestor-downloaded-image3 --autoApplyImage > >(tee /tmp/darwin/framework-tests/ota-requestor-app-3.log) 2> >(tee /tmp/darwin/framework-tests/ota-requestor-app-err-3.log >&2) &
123126
# Disable BLE because the app does not have the permission to use
124127
# it and that may crash the CI.
125128
#

.github/workflows/examples-efr32.yaml

+23-3
Original file line numberDiff line numberDiff line change
@@ -61,22 +61,42 @@ jobs:
6161
scripts/examples/gn_silabs_example.sh examples/lighting-app/silabs ./out/light-app BRD4187C --slc_generate --docker
6262
scripts/examples/gn_silabs_example.sh examples/lighting-app/silabs ./out/light-app BRD4164A --slc_generate --docker
6363
rm -rf ./out/
64-
- name: Build some BRD4187C variants
64+
- name: Build some BRD4187C variants (1)
6565
run: |
6666
./scripts/run_in_build_env.sh \
6767
"./scripts/build/build_examples.py \
6868
--enable-flashbundle \
69-
--target efr32-brd4187c-window-covering-additional_data_advertising \
7069
--target efr32-brd4187c-thermostat-openthread_mtd \
7170
--target efr32-brd4187c-switch-sed-shell-use_ot_coap_lib \
7271
--target efr32-brd4187c-unit-test \
72+
build \
73+
--copy-artifacts-to out/artifacts \
74+
"
75+
- name: Clean out build output
76+
run: rm -rf ./out
77+
- name: Build some BRD4187C variants (2)
78+
run: |
79+
./scripts/run_in_build_env.sh \
80+
"./scripts/build/build_examples.py \
81+
--enable-flashbundle \
7382
--target efr32-brd4187c-light-use_ot_lib \
74-
--target efr32-brd4187c-light-rpc \
7583
--target efr32-brd4187c-pump \
7684
--target efr32-brd4187c-lock-rpc-shell-enable_heap_monitoring \
7785
build \
7886
--copy-artifacts-to out/artifacts \
7987
"
88+
- name: Clean out build output
89+
run: rm -rf ./out
90+
- name: Build BRD4187C variants (3)
91+
run: |
92+
./scripts/run_in_build_env.sh \
93+
"./scripts/build/build_examples.py \
94+
--enable-flashbundle \
95+
--target efr32-brd4187c-window-covering-additional_data_advertising \
96+
--target efr32-brd4187c-light-rpc \
97+
build \
98+
--copy-artifacts-to out/artifacts \
99+
"
80100
- name: Prepare some bloat report from the previous builds
81101
run: |
82102
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \

.github/workflows/examples-esp32.yaml

+2-8
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
if: github.actor != 'restyled-io[bot]'
3535

3636
container:
37-
image: ghcr.io/project-chip/chip-build-esp32:1
37+
image: ghcr.io/project-chip/chip-build-esp32:2
3838
volumes:
3939
- "/tmp/bloat_reports:/tmp/bloat_reports"
4040

@@ -46,9 +46,6 @@ jobs:
4646
with:
4747
platform: esp32
4848

49-
- name: Fixup GdbGui requirement
50-
run: perl -i -pe 's/^gdbgui==/# gdbgui==/' /opt/espressif/esp-idf/requirements.txt
51-
5249
- name: Set up environment for size reports
5350
uses: ./.github/actions/setup-size-reports
5451
if: ${{ !env.ACT }}
@@ -130,7 +127,7 @@ jobs:
130127
if: github.actor != 'restyled-io[bot]'
131128

132129
container:
133-
image: ghcr.io/project-chip/chip-build-esp32:1
130+
image: ghcr.io/project-chip/chip-build-esp32:2
134131
volumes:
135132
- "/tmp/bloat_reports:/tmp/bloat_reports"
136133

@@ -142,9 +139,6 @@ jobs:
142139
with:
143140
platform: esp32
144141

145-
- name: Fixup GdbGui requirement
146-
run: perl -i -pe 's/^gdbgui==/# gdbgui==/' /opt/espressif/esp-idf/requirements.txt
147-
148142
- name: Build example Bridge App
149143
run: scripts/examples/esp_example.sh bridge-app
150144

.github/workflows/examples-openiotsdk.yaml

+38-29
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ jobs:
7272
examples/shell/openiotsdk/build/chip-openiotsdk-shell-example.elf \
7373
/tmp/bloat_reports/
7474
75+
- name: "Test: shell example"
76+
if: steps.build_shell.outcome == 'success'
77+
run: |
78+
scripts/run_in_python_env.sh out/venv \
79+
'scripts/examples/openiotsdk_example.sh --no-activate -C test shell'
80+
81+
- name: Clean shell output
82+
run: rm -rf examples/shell/openiotsdk/build
83+
7584
- name: Build lock-app example (mbedtls)
7685
# Disabled being tracked here: https://github.com/project-chip/connectedhomeip/issues/28026
7786
if: false
@@ -93,6 +102,18 @@ jobs:
93102
examples/tv-app/openiotsdk/build/chip-openiotsdk-tv-app-example.elf \
94103
/tmp/bloat_reports/
95104
105+
- name: "Test: tv-app example"
106+
if: steps.build_tv_app.outcome == 'success'
107+
timeout-minutes: 10
108+
run: |
109+
scripts/setup/openiotsdk/network_setup.sh -n $TEST_NETWORK_NAME up
110+
scripts/run_in_python_env.sh out/venv \
111+
'scripts/run_in_ns.sh ${TEST_NETWORK_NAME}ns scripts/examples/openiotsdk_example.sh --no-activate -C test -n ${TEST_NETWORK_NAME}tap tv-app'
112+
scripts/setup/openiotsdk/network_setup.sh -n $TEST_NETWORK_NAME down
113+
114+
- name: Clean tv-app output
115+
run: rm -rf examples/tv-app/openiotsdk/build
116+
96117
- name: Build all-clusters-app example
97118
id: build_all_clusters_app
98119
timeout-minutes: 10
@@ -103,6 +124,18 @@ jobs:
103124
examples/all-clusters-app/openiotsdk/build/chip-openiotsdk-all-clusters-app-example.elf \
104125
/tmp/bloat_reports/
105126
127+
- name: "Test: all-clusters-app example"
128+
if: steps.build_all_clusters_app.outcome == 'success'
129+
timeout-minutes: 5
130+
run: |
131+
scripts/setup/openiotsdk/network_setup.sh -n $TEST_NETWORK_NAME up
132+
scripts/run_in_python_env.sh out/venv \
133+
'scripts/run_in_ns.sh ${TEST_NETWORK_NAME}ns scripts/examples/openiotsdk_example.sh --no-activate -C test -n ${TEST_NETWORK_NAME}tap all-clusters-app'
134+
scripts/setup/openiotsdk/network_setup.sh -n $TEST_NETWORK_NAME down
135+
136+
- name: Clean all-clusters-app output
137+
run: rm -rf examples/all-clusters-app/openiotsdk/build
138+
106139
- name: Build ota-requestor-app example
107140
id: build_ota_requestor_app
108141
timeout-minutes: 10
@@ -127,12 +160,6 @@ jobs:
127160
run: |
128161
scripts/examples/gn_build_example.sh examples/ota-provider-app/linux/ out/ota-provider chip_config_network_layer_ble=false
129162
130-
- name: "Test: shell example"
131-
if: steps.build_shell.outcome == 'success'
132-
run: |
133-
scripts/run_in_python_env.sh out/venv \
134-
'scripts/examples/openiotsdk_example.sh --no-activate -C test shell'
135-
136163
- name: "Test: lock-app example (mbedtls)"
137164
if: steps.build_lock_app_mbedtls.outcome == 'success'
138165
run: |
@@ -141,24 +168,6 @@ jobs:
141168
'scripts/run_in_ns.sh ${TEST_NETWORK_NAME}ns scripts/examples/openiotsdk_example.sh --no-activate -C test -n ${TEST_NETWORK_NAME}tap lock-app'
142169
scripts/setup/openiotsdk/network_setup.sh -n $TEST_NETWORK_NAME down
143170
144-
- name: "Test: tv-app example"
145-
if: steps.build_tv_app.outcome == 'success'
146-
timeout-minutes: 10
147-
run: |
148-
scripts/setup/openiotsdk/network_setup.sh -n $TEST_NETWORK_NAME up
149-
scripts/run_in_python_env.sh out/venv \
150-
'scripts/run_in_ns.sh ${TEST_NETWORK_NAME}ns scripts/examples/openiotsdk_example.sh --no-activate -C test -n ${TEST_NETWORK_NAME}tap tv-app'
151-
scripts/setup/openiotsdk/network_setup.sh -n $TEST_NETWORK_NAME down
152-
153-
- name: "Test: all-clusters-app example"
154-
if: steps.build_all_clusters_app.outcome == 'success'
155-
timeout-minutes: 5
156-
run: |
157-
scripts/setup/openiotsdk/network_setup.sh -n $TEST_NETWORK_NAME up
158-
scripts/run_in_python_env.sh out/venv \
159-
'scripts/run_in_ns.sh ${TEST_NETWORK_NAME}ns scripts/examples/openiotsdk_example.sh --no-activate -C test -n ${TEST_NETWORK_NAME}tap all-clusters-app'
160-
scripts/setup/openiotsdk/network_setup.sh -n $TEST_NETWORK_NAME down
161-
162171
- name: "Test: ota-requestor-app example"
163172
if: steps.build_ota_requestor_app.outcome == 'success' && steps.build_ota_provider_app.outcome == 'success'
164173
timeout-minutes: 30
@@ -189,11 +198,6 @@ jobs:
189198
examples/lock-app/openiotsdk/build/chip-openiotsdk-lock-app-example.elf \
190199
/tmp/bloat_reports/
191200
192-
- name: Build unit tests (psa)
193-
id: build_unit_tests_psa
194-
run: |
195-
scripts/examples/openiotsdk_example.sh -b psa unit-tests
196-
197201
- name: "Test: lock-app example (psa)"
198202
if: steps.build_lock_app_psa.outcome == 'success'
199203
run: |
@@ -202,6 +206,11 @@ jobs:
202206
'scripts/run_in_ns.sh ${TEST_NETWORK_NAME}ns scripts/examples/openiotsdk_example.sh --no-activate -C test -n ${TEST_NETWORK_NAME}tap lock-app'
203207
scripts/setup/openiotsdk/network_setup.sh -n $TEST_NETWORK_NAME down
204208
209+
- name: Build unit tests (psa)
210+
id: build_unit_tests_psa
211+
run: |
212+
scripts/examples/openiotsdk_example.sh -b psa unit-tests
213+
205214
- name: "Test: unit-tests (psa)"
206215
if: steps.build_unit_tests_psa.outcome == 'success'
207216
run: |

.github/workflows/examples-telink.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,18 @@ jobs:
213213
- name: clean out build output
214214
run: rm -rf ./out
215215

216+
- name: Build example Telink Shell App
217+
run: |
218+
./scripts/run_in_build_env.sh \
219+
"./scripts/build/build_examples.py --target 'telink-tlsr9518adk80d-shell' build"
220+
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
221+
telink tlsr9518adk80d shell \
222+
out/telink-tlsr9518adk80d-shell/zephyr/zephyr.elf \
223+
/tmp/bloat_reports/
224+
225+
- name: clean out build output
226+
run: rm -rf ./out
227+
216228
- name: Build example Telink Smoke CO Alarm App
217229
run: |
218230
./scripts/run_in_build_env.sh \

.github/workflows/kotlin-style.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: actions/checkout@v3
2323

2424
- name: "detekt"
25-
uses: natiginfo/action-detekt-all@1.23.0
25+
uses: natiginfo/action-detekt-all@1.23.1
2626
# Detekt seems not to like circular symlinks, so we set up
2727
# explicit paths below
2828
with:

.github/workflows/qemu.yaml

+1-4
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-esp32-qemu:1
41+
image: ghcr.io/project-chip/chip-build-esp32-qemu:2
4242
volumes:
4343
- "/tmp/log_output:/tmp/test_logs"
4444

@@ -50,9 +50,6 @@ jobs:
5050
with:
5151
platform: esp32
5252

53-
- name: Fixup GdbGui requirement
54-
run: perl -i -pe 's/^gdbgui==/# gdbgui==/' /opt/espressif/esp-idf/requirements.txt
55-
5653
- name: Build ESP32 QEMU test images
5754
run: |
5855
scripts/run_in_build_env.sh " \

.github/workflows/release_artifacts.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
runs-on: ubuntu-latest
3333

3434
container:
35-
image: ghcr.io/project-chip/chip-build-esp32:1
35+
image: ghcr.io/project-chip/chip-build-esp32:2
3636

3737
steps:
3838
- name: Checkout

0 commit comments

Comments
 (0)