Skip to content

Commit 4ee024e

Browse files
committed
Merge branch 'master' into feature/thermostat-events-xml
2 parents a42ad1b + 33aec35 commit 4ee024e

File tree

2,062 files changed

+180778
-68622
lines changed

Some content is hidden

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

2,062 files changed

+180778
-68622
lines changed

.devcontainer/Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,24 +54,24 @@ RUN curl https://raw.githubusercontent.com/restyled-io/restyler/master/bin/resty
5454
&& chmod +x /usr/local/bin/restyle-path \
5555
&& :
5656

57-
RUN mkdir -p /opt/sdk/sdks/ \
57+
RUN mkdir -p /opt/android/sdk \
5858
&& chown -R $USERNAME:$USERNAME \
59-
/opt/sdk/sdks/ `# NXP uses a patch_sdk script to change SDK files` \
59+
/opt/android/sdk `# NXP uses a patch_sdk script to change SDK files` \
6060
$ANDROID_HOME \
6161
$IDF_TOOLS_PATH \
6262
&& find $AMEBA_PATH -name "inc_lp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
6363
&& find $AMEBA_PATH -name "inc_hp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
6464
&& find $AMEBA_PATH -name "project_lp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
6565
&& find $AMEBA_PATH -name "project_hp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
6666
&& chmod -R +x \
67-
$ANDROID_HOME/tools/bin `# sdkmanager for accepting licenses`\
67+
$ANDROID_HOME/cmdline-tools/10.0/bin `# sdkmanager for accepting licenses`\
6868
&& chmod -R +w \
6969
$IDF_TOOLS_PATH \
7070
&& find $AMEBA_PATH -name "inc_lp" -print0 | xargs -0 chmod -R +w \
7171
&& find $AMEBA_PATH -name "inc_hp" -print0 | xargs -0 chmod -R +w \
7272
&& find $AMEBA_PATH -name "project_lp" -print0 | xargs -0 chmod -R +w \
7373
&& find $AMEBA_PATH -name "project_hp" -print0 | xargs -0 chmod -R +w \
74-
# Safe directory is preffered over chown.
74+
# Safe directory is preferred over chown.
7575
&& git config --global --add safe.directory "*" \
7676
&& :
7777

.devcontainer/devcontainer.json

+14-8
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
{
22
"name": "CHIP Ubuntu Development Environment",
33
"runArgs": [
4-
"--cap-add=SYS_PTRACE",
5-
"--security-opt",
6-
"seccomp=unconfined",
74
"--network=host",
8-
"--privileged",
9-
"-v",
10-
"/dev/bus/usb:/dev/bus/usb:ro",
115
"--device-cgroup-rule=a 189:* rmw",
126
"--add-host=host.docker.internal:host-gateway"
137
],
8+
"privileged": true,
9+
"capAdd": ["SYS_PTRACE"],
10+
"securityOpt": ["seccomp=unconfined"],
1411
"mounts": [
15-
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
12+
{
13+
"source": "/var/run/docker.sock",
14+
"target": "/var/run/docker.sock",
15+
"type": "bind"
16+
},
17+
{
18+
"source": "/dev/bus/usb",
19+
"target": "/dev/bus/usb",
20+
"type": "bind"
21+
}
1622
],
17-
"initializeCommand": "bash .devcontainer/build.sh --tag matter-dev-environment:local --version 74",
23+
"initializeCommand": "bash .devcontainer/build.sh --tag matter-dev-environment:local --version 97",
1824
"image": "matter-dev-environment:local",
1925
"remoteUser": "vscode",
2026
"containerEnv": {

.github/.wordlist.txt

+9
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ amebad
4949
amebaiot
5050
AmebaZ
5151
amebaz2
52+
ANC
5253
announcementReason
5354
AnnounceOTAProvider
5455
AnnounceOTAProviderRequest
@@ -85,6 +86,7 @@ ASR
8586
AssertionError
8687
AST
8788
ASYNC
89+
ATL
8890
ATLs
8991
atomics
9092
att
@@ -114,6 +116,7 @@ avahi
114116
avL
115117
AwaitNextAction
116118
AXXXF
119+
Axxxx
117120
AYNJV
118121
babaf
119122
backend
@@ -507,6 +510,7 @@ entrypoint
507510
enum
508511
Enums
509512
env
513+
EP
510514
epochKey
511515
epochStartTime
512516
eq
@@ -538,6 +542,7 @@ ExtendedPAN
538542
ExtensionEntry
539543
extern
540544
extpanid
545+
Exx
541546
FabricId
542547
fabricIdx
543548
fabricIndex
@@ -585,6 +590,7 @@ fuzzer
585590
fuzzers
586591
fuzztest
587592
FW
593+
Fxx
588594
gbl
589595
gcloud
590596
GDB
@@ -684,6 +690,7 @@ ICMP
684690
IDF
685691
IDL
686692
IDLs
693+
IDM
687694
idt
688695
idx
689696
ifconfig
@@ -1235,6 +1242,7 @@ RPi's
12351242
RPis
12361243
RSA
12371244
rsn
1245+
Rsp
12381246
RSSI
12391247
RST
12401248
rsync
@@ -1622,6 +1630,7 @@ xFFFF
16221630
xfffff
16231631
xFFFFFFEFFFFFFFFF
16241632
XMLPICSValidator
1633+
XMLs
16251634
xtensa
16261635
xvzf
16271636
xwayland

.github/PULL_REQUEST_TEMPLATE.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1+
2+
#### Testing
3+
14
> !!!!!!!!!! Please delete the instructions below and replace with PR
2-
> description
5+
> description above.
36
>
47
> If you have an issue number, please use a syntax of `Fixes #12345` and a brief
58
> change description
69
>
710
> If you do not have an issue number, please have a good description of the
811
> problem and the fix. Help the reviewer understand what to expect.
912
>
10-
> Complete/append to the `### Testing` section below, to describe how testing
13+
> Complete/append to the `### Testing` section above, to describe how testing
1114
> was done. See
1215
> <https://github.com/project-chip/connectedhomeip/blob/master/CONTRIBUTING.md#pull-requests>
1316
>
1417
> Make sure you delete these instructions (to prove you have read them).
1518
>
1619
> !!!!!!!!!! Instructions end
17-
18-
#### Testing

.github/dependabot.yml

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ updates:
3838
- dependency-name: "third_party/java_deps/repo"
3939
- dependency-name: "third_party/jlink/repo"
4040
- dependency-name: "third_party/jsoncpp/repo"
41+
- dependency-name: "third_party/libdatachannel/repo"
4142
- dependency-name: "third_party/libwebsockets/repo"
4243
- dependency-name: "third_party/lwip/repo"
4344
- dependency-name: "third_party/mbed-mcu-boot/repo"

.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:97
37+
image: ghcr.io/project-chip/chip-build:112
3838

3939
steps:
4040
- name: Checkout

.github/workflows/build.yaml

+20-20
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
if: github.actor != 'restyled-io[bot]'
4444

4545
container:
46-
image: ghcr.io/project-chip/chip-build:97
46+
image: ghcr.io/project-chip/chip-build:112
4747
volumes:
4848
- "/:/runner-root-volume"
4949
- "/tmp/log_output:/tmp/test_logs"
@@ -81,14 +81,6 @@ jobs:
8181
run: scripts/run_in_build_env.sh "ninja -C ./out"
8282
- name: Run Tests
8383
run: scripts/tests/gn_tests.sh
84-
# TODO Log Upload https://github.com/project-chip/connectedhomeip/issues/2227
85-
# TODO https://github.com/project-chip/connectedhomeip/issues/1512
86-
# - name: Run Code Coverage
87-
# if: ${{ contains('main', env.BUILD_TYPE) }}
88-
# run: scripts/tools/codecoverage.sh
89-
# - name: Upload Code Coverage
90-
# if: ${{ contains('main', env.BUILD_TYPE) }}
91-
# run: bash <(curl -s https://codecov.io/bash)
9284
- name: Set up Build Without Detail Logging
9385
run: scripts/build/gn_gen.sh --args="chip_detail_logging=false"
9486
- name: Run Build Without Detail Logging
@@ -139,7 +131,7 @@ jobs:
139131
if: github.actor != 'restyled-io[bot]'
140132

141133
container:
142-
image: ghcr.io/project-chip/chip-build:97
134+
image: ghcr.io/project-chip/chip-build:112
143135
volumes:
144136
- "/:/runner-root-volume"
145137
- "/tmp/log_output:/tmp/test_logs"
@@ -219,11 +211,16 @@ jobs:
219211
- name: Find changed files
220212
id: changed-files
221213
uses: tj-actions/changed-files@v45
214+
with:
215+
# Exclude all files under "third_party/"
216+
files-ignore: |
217+
third_party/
218+
222219
- name: Clang-tidy validation
223220
# NOTE: clang-tidy crashes on CodegenDataModel_Write due to Nullable/std::optional check.
224221
# See https://github.com/llvm/llvm-project/issues/97426
225222
env:
226-
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
223+
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.changed_files }}
227224
run: |
228225
touch out/changed_files.txt
229226
for file in ${ALL_CHANGED_FILES}; do
@@ -308,7 +305,7 @@ jobs:
308305
if: github.actor != 'restyled-io[bot]'
309306

310307
container:
311-
image: ghcr.io/project-chip/chip-build:97
308+
image: ghcr.io/project-chip/chip-build:112
312309
volumes:
313310
- "/:/runner-root-volume"
314311
- "/tmp/log_output:/tmp/test_logs"
@@ -363,6 +360,8 @@ jobs:
363360
python -m ensurepip --upgrade
364361
python -m pip install -r scripts/setup/requirements.setuppayload.txt
365362
python3 src/setup_payload/tests/run_python_setup_payload_test.py out/chip-tool
363+
- name: Run revocation set generation tests
364+
run: scripts/run_in_build_env.sh 'python3 -m unittest -v credentials/generate_revocation_set.py'
366365

367366
build_linux_python_lighting_device:
368367
name: Build on Linux (python lighting-app)
@@ -371,7 +370,7 @@ jobs:
371370
if: github.actor != 'restyled-io[bot]'
372371

373372
container:
374-
image: ghcr.io/project-chip/chip-build:97
373+
image: ghcr.io/project-chip/chip-build:112
375374
volumes:
376375
- "/:/runner-root-volume"
377376
- "/tmp/log_output:/tmp/test_logs"
@@ -486,16 +485,16 @@ jobs:
486485
build_linux_gcc_coverage:
487486
name: Build on Linux (coverage)
488487

489-
runs-on: ubuntu-latest
488+
env:
489+
TSAN_OPTIONS: "halt_on_error=1 suppressions=scripts/tests/chiptest/tsan-linux-suppressions.txt"
490+
490491
if: github.actor != 'restyled-io[bot]'
492+
runs-on: ubuntu-latest
491493

492494
container:
493-
image: ghcr.io/project-chip/chip-build:97
494-
volumes:
495-
- "/:/runner-root-volume"
496-
- "/tmp/log_output:/tmp/test_logs"
495+
image: ghcr.io/project-chip/chip-build:112
497496
options: --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
498-
net.ipv4.conf.all.forwarding=1 net.ipv6.conf.all.forwarding=1"
497+
net.ipv4.conf.all.forwarding=0 net.ipv6.conf.all.forwarding=0"
499498

500499
steps:
501500
- name: Checkout
@@ -504,6 +503,7 @@ jobs:
504503
uses: ./.github/actions/checkout-submodules-and-bootstrap
505504
with:
506505
platform: linux
506+
bootstrap-log-name: bootstrap-logs-linux-${{ matrix.build_variant }}${{ matrix.chip_tool }}
507507

508508
- name: Run Build Coverage
509-
run: ./scripts/build_coverage.sh
509+
run: ./scripts/build_coverage.sh --yaml

.github/workflows/cancel_workflows_for_pr.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,16 @@ jobs:
3535
python-version: '3.12'
3636
- name: Setup pip modules we use
3737
run: |
38-
pip install \
38+
python3 -m venv venv
39+
venv/bin/pip3 install \
3940
click \
4041
coloredlogs \
4142
python-dateutil \
4243
pygithub \
43-
&& echo "DONE installint python prerequisites"
44+
&& echo "DONE installing python prerequisites"
4445
- name: Cancel runs
4546
run: |
46-
scripts/tools/cancel_workflows_for_pr.py \
47+
venv/bin/python3 scripts/tools/cancel_workflows_for_pr.py \
4748
--gh-api-token "${{ secrets.GITHUB_TOKEN }}" \
4849
--require "Restyled" \
4950
--require "Lint Code Base" \

.github/workflows/check-data-model-directory-updates.yaml

+25-1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,28 @@ jobs:
3636
python3 scripts/dm_xml_ci_change_enforcement.py data_model/1.3
3737
- name: Check for changes to 1.4 data_model directory without a SHA update
3838
run: |
39-
python3 scripts/dm_xml_ci_change_enforcement.py data_model/1.4
39+
python3 scripts/dm_xml_ci_change_enforcement.py data_model/1.4
40+
- name: Check for changes to 1.4.1 data_model directory without a SHA update
41+
run: |
42+
python3 scripts/dm_xml_ci_change_enforcement.py data_model/1.4.1
43+
44+
check-data_model-build-file:
45+
name: Check that all data_model files are listed in the data_model_xmls.gni build file
46+
runs-on: ubuntu-latest
47+
container:
48+
image: ghcr.io/project-chip/chip-build
49+
steps:
50+
- name: Checkout
51+
uses: actions/checkout@v4
52+
- name: Setup pip modules we use
53+
run: |
54+
python3 -m venv out/venv
55+
out/venv/bin/pip3 install \
56+
jinja2
57+
- name: Generate build file (data_model_xmls.gni)
58+
run: out/venv/bin/python3 src/python_testing/matter_testing_infrastructure/generate_data_model_xmls_gni.py
59+
- name: Ensure git works in current working directory
60+
run: git config --global --add safe.directory `pwd`
61+
- name: Check for uncommited changes
62+
run: |
63+
git diff --exit-code HEAD -- src/python_testing/matter_testing_infrastructure/data_model_xmls.gni

.github/workflows/chef.yaml

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

3838
container:
39-
image: ghcr.io/project-chip/chip-build:97
39+
image: ghcr.io/project-chip/chip-build:112
4040
options: --user root
4141

4242
steps:
@@ -57,7 +57,7 @@ jobs:
5757
if: github.actor != 'restyled-io[bot]'
5858

5959
container:
60-
image: ghcr.io/project-chip/chip-build-esp32:97
60+
image: ghcr.io/project-chip/chip-build-esp32:112
6161
options: --user root
6262

6363
steps:
@@ -78,7 +78,7 @@ jobs:
7878
if: github.actor != 'restyled-io[bot]'
7979

8080
container:
81-
image: ghcr.io/project-chip/chip-build-nrf-platform:97
81+
image: ghcr.io/project-chip/chip-build-nrf-platform:112
8282
options: --user root
8383

8484
steps:
@@ -99,7 +99,7 @@ jobs:
9999
if: github.actor != 'restyled-io[bot]'
100100

101101
container:
102-
image: ghcr.io/project-chip/chip-build-telink:97
102+
image: ghcr.io/project-chip/chip-build-telink:112
103103
options: --user root
104104

105105
steps:
@@ -111,7 +111,7 @@ jobs:
111111
platform: telink
112112
# - name: Update Zephyr to specific revision (for developers purpose)
113113
# shell: bash
114-
# run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py c05c461b1119782cc839cf436fa04ec5e1fb2c8c"
114+
# run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py ce4027fc0768b8509758af2e43f74e3fd2c7d58d"
115115
- name: CI Examples Telink
116116
shell: bash
117117
run: |

.github/workflows/cherry-picks.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
fetch-depth: 0
2525
- name: Cherry-Pick into sve branch
26-
uses: carloscastrojumo/github-cherry-pick-action@v1.0.9
26+
uses: carloscastrojumo/github-cherry-pick-action@v1.0.10
2727
with:
2828
token: ${{ secrets.MATTER_PAT }}
2929
branch: 1.3-sve

0 commit comments

Comments
 (0)