Skip to content

Commit 81d7fe2

Browse files
authored
Merge branch 'master' into telink_ota_resume_support
2 parents 85d3970 + c0e580c commit 81d7fe2

File tree

2,905 files changed

+323095
-121855
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,905 files changed

+323095
-121855
lines changed

.devcontainer/Dockerfile

+10-10
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ LABEL org.opencontainers.image.source https://github.com/project-chip/connectedh
2222
ARG USERNAME=vscode
2323
ARG USER_UID=1000
2424
ARG USER_GID=$USER_UID
25-
ENV LANG en_US.utf8
25+
ENV LANG=en_US.utf8
2626

2727

2828
# These are installed for terminal/dev convenience. If more tooling for build is required, please
@@ -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

@@ -81,17 +81,17 @@ RUN sed -i '/^TIZEN_SDK_DATA_PATH/d' $TIZEN_SDK_ROOT/sdk.info \
8181
&& ln -sf /home/$USERNAME/.tizen-cli-config $TIZEN_SDK_ROOT/tools/.tizen-cli-config \
8282
&& : # last line
8383

84-
ENV TIZEN_ROOTFS /tizen_rootfs
84+
ENV TIZEN_ROOTFS=/tizen_rootfs
8585

8686
# Fast Model GDB plugins path for debugging support
87-
ENV FAST_MODEL_PLUGINS_PATH /opt/FastModelsPortfolio_11.16/plugins/Linux64_GCC-9.3
87+
ENV FAST_MODEL_PLUGINS_PATH=/opt/FastModelsPortfolio_11.16/plugins/Linux64_GCC-9.3
8888

8989
# Set up ccache as a pigweed command launcher when using the scripts/build/build_examples.py
9090
# script. Also, set up icecc as the command prefix for ccache. Such setup allows to benefit
9191
# from compilation caching and distributed compilation at the same time.
9292
#
9393
# NOTE: In order to use distributed compilation with icecc, one should run
9494
# "scripts/icecc.sh start" before starting the build.
95-
ENV CHIP_PW_COMMAND_LAUNCHER ccache
96-
ENV CCACHE_PREFIX icecc
97-
ENV PATH /usr/lib/ccache:$PATH
95+
ENV CHIP_PW_COMMAND_LAUNCHER=ccache
96+
ENV CCACHE_PREFIX=icecc
97+
ENV PATH=/usr/lib/ccache:$PATH

.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": {

.gemini/config.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
have_fun: false
2+
code_review:
3+
# Disabled until we have clarity/guidance at a CSA level
4+
disable: true
5+
comment_severity_threshold: MEDIUM
6+
max_review_comments: -1
7+
pull_request_opened:
8+
help: false
9+
summary: false
10+
code_review: true

.github/.wordlist.txt

+14
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
@@ -330,6 +333,7 @@ CurrentHue
330333
CurrentLevel
331334
CurrentSaturation
332335
customAcl
336+
customizable
333337
customizations
334338
cvfJ
335339
cxx
@@ -507,6 +511,7 @@ entrypoint
507511
enum
508512
Enums
509513
env
514+
EP
510515
epochKey
511516
epochStartTime
512517
eq
@@ -538,6 +543,7 @@ ExtendedPAN
538543
ExtensionEntry
539544
extern
540545
extpanid
546+
Exx
541547
FabricId
542548
fabricIdx
543549
fabricIndex
@@ -585,6 +591,7 @@ fuzzer
585591
fuzzers
586592
fuzztest
587593
FW
594+
Fxx
588595
gbl
589596
gcloud
590597
GDB
@@ -684,6 +691,7 @@ ICMP
684691
IDF
685692
IDL
686693
IDLs
694+
IDM
687695
idt
688696
idx
689697
ifconfig
@@ -1053,6 +1061,7 @@ otatesting
10531061
otaURL
10541062
OTBR
10551063
otcli
1064+
OU
10561065
outform
10571066
outgoingCommands
10581067
overridable
@@ -1164,6 +1173,7 @@ PyObject
11641173
pypi
11651174
PyRun
11661175
pytest
1176+
PYTHONPATH
11671177
QEMU
11681178
Qorvo
11691179
QPG
@@ -1235,6 +1245,7 @@ RPi's
12351245
RPis
12361246
RSA
12371247
rsn
1248+
Rsp
12381249
RSSI
12391250
RST
12401251
rsync
@@ -1341,6 +1352,7 @@ SRP
13411352
SRV
13421353
SSBL
13431354
SSID
1355+
SSL
13441356
startoffset
13451357
StartScan
13461358
startsWith
@@ -1508,6 +1520,7 @@ unfocus
15081520
Unicast
15091521
UniFlash
15101522
UnitLocalization
1523+
unittest
15111524
unpair
15121525
unprovisioned
15131526
Unsecure
@@ -1622,6 +1635,7 @@ xFFFF
16221635
xfffff
16231636
xFFFFFFEFFFFFFFFF
16241637
XMLPICSValidator
1638+
XMLs
16251639
xtensa
16261640
xvzf
16271641
xwayland

.github/PULL_REQUEST_TEMPLATE.md

+13-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
1-
> !!!!!!!!!! Please delete the instructions below and replace with PR description
1+
2+
#### Testing
3+
4+
> !!!!!!!!!! Please delete the instructions below and replace with PR
5+
> description above.
26
>
3-
> If you have an issue number, please use a syntax of
4-
> `Fixes #12345` and a brief change description
7+
> If you have an issue number, please use a syntax of `Fixes #12345` and a brief
8+
> change description
59
>
6-
> If you do not have an issue number, please have a good description of
7-
> the problem and the fix. Help the reviewer understand what to expect.
10+
> If you do not have an issue number, please have a good description of the
11+
> problem and the fix. Help the reviewer understand what to expect.
12+
>
13+
> Complete/append to the `### Testing` section above, to describe how testing
14+
> was done. See
15+
> <https://github.com/project-chip/connectedhomeip/blob/master/CONTRIBUTING.md#pull-requests>
816
>
917
> Make sure you delete these instructions (to prove you have read them).
1018
>
1119
> !!!!!!!!!! Instructions end
12-

.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/labeler.yml

-9
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,6 @@ test driver:
119119
- src/test_driver/*
120120
- src/test_driver/**/*
121121

122-
# Cert tests touched: add current milestone delta-tracking label.
123-
# TODO: Change after Aug 15, 2024
124-
matter-1.4-te2-script-change:
125-
- changed-files:
126-
- any-glob-to-any-file:
127-
- src/python_testing/*
128-
- src/python_testing/**/*
129-
- src/app/tests/suites/certification/*
130-
131122
############################################################
132123
# Source Code
133124
############################################################

.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:94
37+
image: ghcr.io/project-chip/chip-build:119
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:94
46+
image: ghcr.io/project-chip/chip-build:119
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:94
134+
image: ghcr.io/project-chip/chip-build:119
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:94
308+
image: ghcr.io/project-chip/chip-build:119
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:94
373+
image: ghcr.io/project-chip/chip-build:119
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:94
494-
volumes:
495-
- "/:/runner-root-volume"
496-
- "/tmp/log_output:/tmp/test_logs"
495+
image: ghcr.io/project-chip/chip-build:119
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

0 commit comments

Comments
 (0)