Skip to content

Commit 6d83b82

Browse files
committed
Merge remote-tracking branch 'upstream/master' into camera
# Conflicts: # src/app/zap-templates/zcl/data-model/all.xml # src/app/zap_cluster_list.json
2 parents dcf6140 + e9d7b2f commit 6d83b82

File tree

1,057 files changed

+140513
-207062
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,057 files changed

+140513
-207062
lines changed

.clang-tidy

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Checks: >
2424
-bugprone-multi-level-implicit-pointer-conversion,
2525
-bugprone-narrowing-conversions,
2626
-bugprone-not-null-terminated-result,
27+
-bugprone-pointer-arithmetic-on-polymorphic-object,
2728
-bugprone-reserved-identifier,
2829
-bugprone-signed-char-misuse,
2930
-bugprone-suspicious-include,
@@ -45,6 +46,7 @@ Checks: >
4546
-clang-analyzer-security.insecureAPI.rand,
4647
-clang-analyzer-security.insecureAPI.strcpy,
4748
-clang-analyzer-unix.Malloc,
48-
-clang-diagnostic-implicit-int-conversion
49+
-clang-diagnostic-implicit-int-conversion,
50+
-clang-diagnostic-missing-template-arg-list-after-template-kw
4951
WarningsAsErrors: '*'
5052
HeaderFilterRegex: '(src|examples|zzz_generated|credentials).*(?<!third_party.*repo)'

.devcontainer/Dockerfile

+22-16
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,19 @@ ARG USER_UID=1000
2424
ARG USER_GID=$USER_UID
2525
ENV LANG en_US.utf8
2626

27-
# these are installed for terminal/dev convenience. If more tooling for build is required, please
28-
# add them to chip-build (in integrations/docker/images/chip-build)
27+
28+
# These are installed for terminal/dev convenience. If more tooling for build is required, please
29+
# add them to chip-build (in integrations/docker/images/chip-build).
2930
RUN apt-get update \
3031
&& apt-get install -y locales \
3132
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 \
32-
&& apt-get -fy install git vim emacs sudo \
33+
&& apt-get -fy install vim emacs sudo \
3334
apt-utils dialog zsh \
34-
iproute2 procps lsb-release \
35+
lsb-release \
3536
bash-completion \
36-
build-essential cmake cppcheck valgrind \
37-
wget curl telnet \
37+
valgrind \
3838
docker.io \
39-
iputils-ping net-tools \
40-
libncurses5 \
41-
libncursesw5 \
42-
libpython2.7 \
39+
iputils-ping \
4340
&& :
4441

4542
RUN groupadd -g $USER_GID $USERNAME \
@@ -55,13 +52,22 @@ RUN curl https://raw.githubusercontent.com/restyled-io/restyler/master/bin/resty
5552
RUN mkdir -p /opt/sdk/sdks/ \
5653
&& chown -R $USERNAME:$USERNAME \
5754
/opt/sdk/sdks/ `# NXP uses a patch_sdk script to change SDK files` \
58-
/opt/NordicSemiconductor/nrfconnect/ `# $USERNAME needs to own west configuration to build nRF Connect examples` \
59-
$IDF_PATH `# $USERNAME needs to own the esp-idf and tools for the examples to build` \
55+
$ANDROID_HOME \
56+
$IDF_TOOLS_PATH \
57+
&& find $AMEBA_PATH -name "inc_lp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
58+
&& find $AMEBA_PATH -name "inc_hp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
59+
&& find $AMEBA_PATH -name "project_lp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
60+
&& find $AMEBA_PATH -name "project_hp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
61+
&& chmod -R +x \
62+
$ANDROID_HOME/tools/bin `# sdkmanager for accepting licenses`\
63+
&& chmod -R +w \
6064
$IDF_TOOLS_PATH \
61-
$SYSROOT_AARCH64 `# allow read/write access to header and libraries` \
62-
$ANDROID_HOME `# allow licenses to be accepted` \
63-
$AMEBA_PATH `# AmebaD requires access to change build_info.h` \
64-
$IMX_SDK_ROOT \
65+
&& find $AMEBA_PATH -name "inc_lp" -print0 | xargs -0 chmod -R +w \
66+
&& find $AMEBA_PATH -name "inc_hp" -print0 | xargs -0 chmod -R +w \
67+
&& find $AMEBA_PATH -name "project_lp" -print0 | xargs -0 chmod -R +w \
68+
&& find $AMEBA_PATH -name "project_hp" -print0 | xargs -0 chmod -R +w \
69+
# Safe directory is preffered over chown.
70+
&& git config --global --add safe.directory "*" \
6571
&& :
6672

6773
# Fix Tizen SDK paths for new user

.devcontainer/devcontainer.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@
1414
"mounts": [
1515
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
1616
],
17-
"initializeCommand": "bash .devcontainer/build.sh --tag matter-dev-environment:local --version 22",
17+
"initializeCommand": "bash .devcontainer/build.sh --tag matter-dev-environment:local --version 74",
1818
"image": "matter-dev-environment:local",
1919
"remoteUser": "vscode",
20+
"containerEnv": {
21+
"PW_ENVIRONMENT_ROOT": "${containerWorkspaceFolder}/.environment-vscode"
22+
},
2023
"customizations": {
2124
"vscode": {
2225
// Add the IDs of extensions you want installed when the container is created in the array below.

.github/.wordlist.txt

+7
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ dpkg
453453
dropdown
454454
dryrun
455455
DS
456+
DSLS
456457
duplicative
457458
DUT
458459
DUTS
@@ -461,6 +462,7 @@ DV
461462
DVK
462463
dynload
463464
eabi
465+
EAF
464466
EB
465467
ECC
466468
ECD
@@ -551,6 +553,7 @@ feff
551553
ffaa
552554
ffeebaefa
553555
FFF
556+
FFFFFFFFFFFF0102
554557
fffe
555558
fffff
556559
Fi
@@ -572,6 +575,7 @@ fsync
572575
ftd
573576
fullclean
574577
fuzzer
578+
fuzzers
575579
fuzztest
576580
FW
577581
gbl
@@ -1532,6 +1536,7 @@ virtualenv
15321536
visualstudio
15331537
vlatest
15341538
VLEDs
1539+
vm
15351540
vn
15361541
vnc
15371542
vous
@@ -1624,3 +1629,5 @@ zhengyaohan
16241629
Zigbee
16251630
zigbeealliance
16261631
zigbeethread
1632+
zsdk
1633+
TBR

.github/workflows/bloat_check.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
runs-on: ubuntu-latest
3535

3636
container:
37-
image: ghcr.io/project-chip/chip-build:74
37+
image: ghcr.io/project-chip/chip-build:77
3838

3939
steps:
4040
- name: Checkout

.github/workflows/build.yaml

+11-9
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
if: github.actor != 'restyled-io[bot]'
4343

4444
container:
45-
image: ghcr.io/project-chip/chip-build:74
45+
image: ghcr.io/project-chip/chip-build:77
4646
volumes:
4747
- "/:/runner-root-volume"
4848
- "/tmp/log_output:/tmp/test_logs"
@@ -138,7 +138,7 @@ jobs:
138138
if: github.actor != 'restyled-io[bot]'
139139

140140
container:
141-
image: ghcr.io/project-chip/chip-build:74
141+
image: ghcr.io/project-chip/chip-build:77
142142
volumes:
143143
- "/:/runner-root-volume"
144144
- "/tmp/log_output:/tmp/test_logs"
@@ -283,7 +283,7 @@ jobs:
283283
if: github.actor != 'restyled-io[bot]'
284284

285285
container:
286-
image: ghcr.io/project-chip/chip-build:54
286+
image: ghcr.io/project-chip/chip-build:77
287287
volumes:
288288
- "/:/runner-root-volume"
289289
- "/tmp/log_output:/tmp/test_logs"
@@ -316,9 +316,10 @@ jobs:
316316
run: |
317317
scripts/run_in_build_env.sh 'virtualenv pyenv'
318318
source pyenv/bin/activate
319-
pip3 install ./out/controller/python/chip_core-0.0-cp37-abi3-linux_x86_64.whl
320-
pip3 install ./out/controller/python/chip_clusters-0.0-py3-none-any.whl
321-
pip3 install ./out/controller/python/chip_repl-0.0-py3-none-any.whl
319+
python -m ensurepip --upgrade
320+
python -m pip install ./out/controller/python/chip_core-0.0-cp37-abi3-linux_x86_64.whl
321+
python -m pip install ./out/controller/python/chip_clusters-0.0-py3-none-any.whl
322+
python -m pip install ./out/controller/python/chip_repl-0.0-py3-none-any.whl
322323
323324
- name: Run Python tests
324325
shell: bash
@@ -334,7 +335,8 @@ jobs:
334335
scripts/run_in_build_env.sh 'scripts/examples/gn_build_example.sh examples/chip-tool out/'
335336
scripts/run_in_build_env.sh 'virtualenv pyenv'
336337
source pyenv/bin/activate
337-
pip3 install -r scripts/setup/requirements.setuppayload.txt
338+
python -m ensurepip --upgrade
339+
python -m pip install -r scripts/setup/requirements.setuppayload.txt
338340
python3 src/setup_payload/tests/run_python_setup_payload_test.py out/chip-tool
339341
340342
build_linux_python_lighting_device:
@@ -344,7 +346,7 @@ jobs:
344346
if: github.actor != 'restyled-io[bot]'
345347

346348
container:
347-
image: ghcr.io/project-chip/chip-build:54
349+
image: ghcr.io/project-chip/chip-build:77
348350
volumes:
349351
- "/:/runner-root-volume"
350352
- "/tmp/log_output:/tmp/test_logs"
@@ -455,7 +457,7 @@ jobs:
455457
if: github.actor != 'restyled-io[bot]'
456458

457459
container:
458-
image: ghcr.io/project-chip/chip-build:74
460+
image: ghcr.io/project-chip/chip-build:77
459461
volumes:
460462
- "/:/runner-root-volume"
461463
- "/tmp/log_output:/tmp/test_logs"

.github/workflows/chef.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ concurrency:
2727

2828
env:
2929
CHIP_NO_LOG_TIMESTAMPS: true
30-
30+
3131
jobs:
3232
chef_linux:
3333
name: Chef - Linux CI Examples
3434
runs-on: ubuntu-latest
3535
if: github.actor != 'restyled-io[bot]'
3636

3737
container:
38-
image: ghcr.io/project-chip/chip-build:74
38+
image: ghcr.io/project-chip/chip-build:77
3939
options: --user root
4040

4141
steps:
@@ -56,7 +56,7 @@ jobs:
5656
if: github.actor != 'restyled-io[bot]'
5757

5858
container:
59-
image: ghcr.io/project-chip/chip-build-esp32:74
59+
image: ghcr.io/project-chip/chip-build-esp32:77
6060
options: --user root
6161

6262
steps:
@@ -77,7 +77,7 @@ jobs:
7777
if: github.actor != 'restyled-io[bot]'
7878

7979
container:
80-
image: ghcr.io/project-chip/chip-build-nrf-platform:74
80+
image: ghcr.io/project-chip/chip-build-nrf-platform:77
8181
options: --user root
8282

8383
steps:
@@ -98,7 +98,7 @@ jobs:
9898
if: github.actor != 'restyled-io[bot]'
9999

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

104104
steps:

.github/workflows/darwin.yaml

+5-6
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
framework:
3737
name: Build framework
3838
if: github.actor != 'restyled-io[bot]'
39-
runs-on: macos-13
39+
runs-on: macos-14
4040
strategy:
4141
matrix:
4242
options: # We don't need a full matrix
@@ -73,7 +73,7 @@ jobs:
7373
name: Run framework tests
7474
if: github.actor != 'restyled-io[bot]'
7575
needs: [framework] # serialize to avoid running to many parallel macos runners
76-
runs-on: macos-13
76+
runs-on: macos-14
7777
strategy:
7878
matrix:
7979
options: # We don't need a full matrix
@@ -105,10 +105,9 @@ jobs:
105105
run: |
106106
scripts/examples/gn_build_example.sh examples/ota-requestor-app/linux out/debug/ota-requestor-app chip_config_network_layer_ble=false non_spec_compliant_ota_action_delay_floor=0
107107
- name: Run Framework Tests
108-
# For now disable unguarded-availability-new warnings because we
109-
# internally use APIs that we are annotating as only available on
110-
# new enough versions. Maybe we should change out deployment
111-
# target versions instead?
108+
# We want to ensure that our log upload runs on timeout, so use a timeout here shorter
109+
# than the 6-hour overall job timeout. 4.5 hours should be plenty.
110+
timeout-minutes: 270
112111
working-directory: src/darwin/Framework
113112
run: |
114113
mkdir -p /tmp/darwin/framework-tests

.github/workflows/doxygen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181

8282
runs-on: ubuntu-latest
8383
container:
84-
image: ghcr.io/project-chip/chip-build-doxygen:74
84+
image: ghcr.io/project-chip/chip-build-doxygen:77
8585

8686
if: github.actor != 'restyled-io[bot]'
8787

.github/workflows/example-tv-casting-darwin.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
tv-casting-bridge:
3737
name: Build TV Casting Bridge example
3838
if: github.actor != 'restyled-io[bot]'
39-
runs-on: macos-13
39+
runs-on: macos-14
4040
steps:
4141
- name: Checkout
4242
uses: actions/checkout@v4

.github/workflows/examples-ameba.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ concurrency:
2727

2828
env:
2929
CHIP_NO_LOG_TIMESTAMPS: true
30-
30+
3131
jobs:
3232
ameba:
3333
name: Ameba
@@ -38,7 +38,7 @@ jobs:
3838
if: github.actor != 'restyled-io[bot]'
3939

4040
container:
41-
image: ghcr.io/project-chip/chip-build-ameba:74
41+
image: ghcr.io/project-chip/chip-build-ameba:77
4242
options: --user root
4343

4444
steps:

.github/workflows/examples-asr.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ concurrency:
2727

2828
env:
2929
CHIP_NO_LOG_TIMESTAMPS: true
30-
30+
3131
jobs:
3232
asr:
3333
name: ASR
@@ -36,7 +36,7 @@ jobs:
3636
if: github.actor != 'restyled-io[bot]'
3737

3838
container:
39-
image: ghcr.io/project-chip/chip-build-asr:74
39+
image: ghcr.io/project-chip/chip-build-asr:77
4040
options: --user root
4141

4242
steps:

.github/workflows/examples-bouffalolab.yaml

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

3939
container:
40-
image: ghcr.io/project-chip/chip-build-bouffalolab:74
40+
image: ghcr.io/project-chip/chip-build-bouffalolab:77
4141
volumes:
4242
- "/tmp/bloat_reports:/tmp/bloat_reports"
4343
steps:

0 commit comments

Comments
 (0)