Skip to content

Commit d3a3ae1

Browse files
authored
Merge branch 'master' into pull-request/timesync-fix-27575-2
2 parents 283b174 + f2b362a commit d3a3ae1

File tree

7,837 files changed

+888538
-586259
lines changed

Some content is hidden

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

7,837 files changed

+888538
-586259
lines changed

.clang-tidy

+4-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,
@@ -23,6 +24,7 @@ Checks: >
2324
-bugprone-multi-level-implicit-pointer-conversion,
2425
-bugprone-narrowing-conversions,
2526
-bugprone-not-null-terminated-result,
27+
-bugprone-pointer-arithmetic-on-polymorphic-object,
2628
-bugprone-reserved-identifier,
2729
-bugprone-signed-char-misuse,
2830
-bugprone-suspicious-include,
@@ -44,6 +46,7 @@ Checks: >
4446
-clang-analyzer-security.insecureAPI.rand,
4547
-clang-analyzer-security.insecureAPI.strcpy,
4648
-clang-analyzer-unix.Malloc,
47-
-clang-diagnostic-implicit-int-conversion
49+
-clang-diagnostic-implicit-int-conversion,
50+
-clang-diagnostic-missing-template-arg-list-after-template-kw
4851
WarningsAsErrors: '*'
4952
HeaderFilterRegex: '(src|examples|zzz_generated|credentials).*(?<!third_party.*repo)'

.devcontainer/Dockerfile

+34-17
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,24 @@ 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 \
40+
icecc \
4341
&& :
4442

4543
RUN groupadd -g $USER_GID $USERNAME \
46-
&& useradd -s /bin/bash -u $USER_UID -g $USER_GID -G docker,sudo -m $USERNAME \
44+
&& useradd --no-log-init -s /bin/bash -u $USER_UID -g $USER_GID -G docker,sudo -m $USERNAME \
4745
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
4846
&& chmod 0440 /etc/sudoers.d/$USERNAME \
4947
&& :
@@ -55,13 +53,22 @@ RUN curl https://raw.githubusercontent.com/restyled-io/restyler/master/bin/resty
5553
RUN mkdir -p /opt/sdk/sdks/ \
5654
&& chown -R $USERNAME:$USERNAME \
5755
/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` \
56+
$ANDROID_HOME \
57+
$IDF_TOOLS_PATH \
58+
&& find $AMEBA_PATH -name "inc_lp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
59+
&& find $AMEBA_PATH -name "inc_hp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
60+
&& find $AMEBA_PATH -name "project_lp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
61+
&& find $AMEBA_PATH -name "project_hp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
62+
&& chmod -R +x \
63+
$ANDROID_HOME/tools/bin `# sdkmanager for accepting licenses`\
64+
&& chmod -R +w \
6065
$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 \
66+
&& find $AMEBA_PATH -name "inc_lp" -print0 | xargs -0 chmod -R +w \
67+
&& find $AMEBA_PATH -name "inc_hp" -print0 | xargs -0 chmod -R +w \
68+
&& find $AMEBA_PATH -name "project_lp" -print0 | xargs -0 chmod -R +w \
69+
&& find $AMEBA_PATH -name "project_hp" -print0 | xargs -0 chmod -R +w \
70+
# Safe directory is preffered over chown.
71+
&& git config --global --add safe.directory "*" \
6572
&& :
6673

6774
# Fix Tizen SDK paths for new user
@@ -74,3 +81,13 @@ ENV TIZEN_ROOTFS /tizen_rootfs
7481

7582
# Fast Model GDB plugins path for debugging support
7683
ENV FAST_MODEL_PLUGINS_PATH /opt/FastModelsPortfolio_11.16/plugins/Linux64_GCC-9.3
84+
85+
# Set up ccache as a pigweed command launcher when using the scripts/build/build_examples.py
86+
# script. Also, set up icecc as the command prefix for ccache. Such setup allows to benefit
87+
# from compilation caching and distributed compilation at the same time.
88+
#
89+
# NOTE: In order to use distributed compilation with icecc, one should run
90+
# "scripts/icecc.sh start" before starting the build.
91+
ENV CHIP_PW_COMMAND_LAUNCHER ccache
92+
ENV CCACHE_PREFIX icecc
93+
ENV PATH /usr/lib/ccache:$PATH

.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

+25-2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ AdvSendAdvert
3737
AE
3838
aef
3939
AES
40+
AFL
4041
AIDL
4142
algs
4243
alloc
@@ -340,6 +341,7 @@ datamodel
340341
DataModelRevision
341342
dataset
342343
datasets
344+
datastore
343345
DataVersion
344346
dbf
345347
DBG
@@ -402,6 +404,7 @@ DevKitM
402404
devtype
403405
df
404406
dfe
407+
DFILE
405408
dfu
406409
DgDxsfHx
407410
dhclient
@@ -450,13 +453,16 @@ dpkg
450453
dropdown
451454
dryrun
452455
DS
456+
DSLS
453457
duplicative
454458
DUT
455459
DUTS
460+
DUT's
456461
DV
457462
DVK
458463
dynload
459464
eabi
465+
EAF
460466
EB
461467
ECC
462468
ECD
@@ -547,6 +553,7 @@ feff
547553
ffaa
548554
ffeebaefa
549555
FFF
556+
FFFFFFFFFFFF0102
550557
fffe
551558
fffff
552559
Fi
@@ -561,12 +568,15 @@ forkpty
561568
FOTA
562569
FreeRTOS
563570
FreeRTOSConfig
571+
FS
564572
fsl
565573
fstab
566574
fsync
567575
ftd
568576
fullclean
569577
fuzzer
578+
fuzzers
579+
fuzztest
570580
FW
571581
gbl
572582
gcloud
@@ -649,6 +659,7 @@ href
649659
HSM
650660
hsm
651661
HTTPS
662+
Humidistat
652663
HW
653664
hwadr
654665
HydrogenConcentrationMeasurement
@@ -724,6 +735,7 @@ isUpperCase
724735
itemName
725736
iterable
726737
itsfoss
738+
IW
727739
JDK
728740
jinja
729741
JLink
@@ -852,6 +864,7 @@ MbedNewTarget
852864
mbedos
853865
mbedTarget
854866
mbedTLS
867+
MCORE
855868
mcu
856869
MCUboot
857870
mcumgr
@@ -881,6 +894,7 @@ microcontroller
881894
microcontrollers
882895
MicroSD
883896
middleware
897+
MIMXRT
884898
minApplicableSoftwareVersion
885899
Minicom
886900
MinInterval
@@ -912,6 +926,7 @@ Multicast
912926
multilib
913927
Multiprotocol
914928
multithreaded
929+
Murata
915930
mutex
916931
mutexes
917932
mv
@@ -943,8 +958,6 @@ NitricOxideConcentrationMeasurement
943958
NitrogenDioxideConcentrationMeasurement
944959
nl
945960
nltest
946-
NLUnitTest
947-
NLUnitTests
948961
nmcli
949962
nmtui
950963
noc
@@ -965,6 +978,7 @@ NTP
965978
nullable
966979
nullptr
967980
NUM
981+
NuttX
968982
NVM
969983
NVS
970984
nwdiag
@@ -995,13 +1009,15 @@ OpenThreadDemo
9951009
openweave
9961010
OperationalCredentials
9971011
operationalDataset
1012+
operationalstate
9981013
opkg
9991014
OPTIGA
10001015
optionMask
10011016
optionOverride
10021017
optionsMask
10031018
optionsOverride
10041019
orgs
1020+
OSS
10051021
OTA
10061022
OTADownloader
10071023
otaDownloadPath
@@ -1353,6 +1369,7 @@ SVR
13531369
SWD
13541370
SWU
13551371
symlinks
1372+
sysbuild
13561373
sysconfdir
13571374
SysConfig
13581375
sysctl
@@ -1438,6 +1455,8 @@ trackFree
14381455
TransferSession
14391456
transitionTime
14401457
TransportMgrBase
1458+
triaged
1459+
triaging
14411460
TriggerEffect
14421461
TRNG
14431462
trustm
@@ -1523,6 +1542,7 @@ virtualenv
15231542
visualstudio
15241543
vlatest
15251544
VLEDs
1545+
vm
15261546
vn
15271547
vnc
15281548
vous
@@ -1589,6 +1609,7 @@ xFFF
15891609
xFFFF
15901610
xfffff
15911611
xFFFFFFEFFFFFFFFF
1612+
XMLPICSValidator
15921613
xtensa
15931614
xvzf
15941615
xwayland
@@ -1615,3 +1636,5 @@ zhengyaohan
16151636
Zigbee
16161637
zigbeealliance
16171638
zigbeethread
1639+
zsdk
1640+
TBR

.github/CODEOWNERS

-2
This file was deleted.

.github/actions/bootstrap-cache/action.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ runs:
1111
attempt_limit: 3
1212
attempt_delay: 2000
1313
with: |
14-
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
14+
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**', '/etc/lsb-release') }}
1515
path: |
1616
.environment
1717
build_overrides/pigweed_environment.gni

.github/actions/bootstrap/action.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ runs:
2626
# because the bootstrapped Pigweed environment contains absolute paths.
2727
echo "Calculating bootstrap cache key for '$PWD'"
2828
FILES_HASH="${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}"
29-
FINAL_HASH="$(echo "$PWD:$FILES_HASH" | shasum -a 256 | cut -d' ' -f1)"
29+
case "$RUNNER_OS" in
30+
macOS) OS_HASH="$(sw_vers | shasum -a 256 | cut -d' ' -f1)";;
31+
*) OS_HASH="$(shasum -a 256 /etc/lsb-release | cut -d' ' -f1)";;
32+
esac
33+
PYTHON_HASH="$(python --version | shasum -a 256 | cut -d' ' -f1)"
34+
FINAL_HASH="$(echo "$PWD:$FILES_HASH:$OS_HASH:$PYTHON_HASH" | shasum -a 256 | cut -d' ' -f1)"
3035
echo key="${RUNNER_OS}-${RUNNER_ARCH}-${{ inputs.platform }}-${FINAL_HASH}" | tee -a "$GITHUB_OUTPUT"
3136
3237
# Split caches across backends

.github/dependabot.yml

-2
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,10 @@ updates:
5050
- dependency-name: "third_party/nlassert/repo"
5151
- dependency-name: "third_party/nlfaultinjection/repo"
5252
- dependency-name: "third_party/nlio/repo"
53-
- dependency-name: "third_party/nlunit-test/repo"
5453
- dependency-name: "third_party/nxp/repo"
5554
- dependency-name: "third_party/open-iot-sdk/repo"
5655
- dependency-name: "third_party/ot-br-posix/repo"
5756
- dependency-name: "third_party/perfetto/repo"
58-
- dependency-name: "third_party/pybind11/repo"
5957
- dependency-name: "third_party/qpg_sdk/repo"
6058
- dependency-name: "third_party/silabs/repo"
6159
- dependency-name: "third_party/simw-top-mini/repo"

.github/issue-labeler.yml

+16-3
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,25 @@ darwin:
55
# (like "kiosk" or whatnot), but do allow matching "ios8" and things
66
# like that.
77
#
8+
# Make sure we don't trigger for the string "MAC", which almost
9+
# certainly has nothing to do with Darwin.
10+
#
811
# \\b means "word boundary"
912
# (?![a-z]) means "there is no next char in the range a-z".
10-
- "/(\\bios(?![a-z])|homepod|darwin|\\bmac\\b|macos)/i"
13+
- "/(\\b[Ii][Oo][Ss](?![a-zA-Z])|[Hh][Oo][Mm][Ee][Pp][Oo][Dd]|[Dd][Aa][Rr][Ww][Ii][Nn]|\\bm[Aa][Cc]\\b|\\bMa[Cc]\\b|\\bM[Aa]c\\b|[Mm][Aa][Cc][Oo][Ss])/"
14+
1115

12-
linux:
13-
- "/(linux)/i"
16+
# NOTE:
17+
# Linux intentionally disabled: most people compile either on linux or darwin and
18+
# as a result a lot of issues get tagged as such even though they are not platform specific
19+
# (e.g. we get test case failures reported as linux even though they are just normal
20+
# test runs)
21+
#
22+
# Linux label should be reserved to platform-specific problems (usually bootstrap/packages
23+
# or integration with wifi/ethernet/bluetootn/etc.)
24+
#
25+
# linux:
26+
# - "/(linux)/i"
1427

1528
# Special Keywords for Cert Blockers
1629
air purifiers:

0 commit comments

Comments
 (0)