Skip to content

Commit 1422324

Browse files
Merge branch 'master' into feature/closure_control_cluster_xml_generation
2 parents 87009f5 + 9920a7f commit 1422324

File tree

144 files changed

+2355
-1534
lines changed

Some content is hidden

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

144 files changed

+2355
-1534
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

.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/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/build.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,16 @@ jobs:
211211
- name: Find changed files
212212
id: changed-files
213213
uses: tj-actions/changed-files@v45
214+
with:
215+
# Exclude all files under "third_party/"
216+
files-ignore: |
217+
third_party/
218+
214219
- name: Clang-tidy validation
215220
# NOTE: clang-tidy crashes on CodegenDataModel_Write due to Nullable/std::optional check.
216221
# See https://github.com/llvm/llvm-project/issues/97426
217222
env:
218-
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
223+
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.changed_files }}
219224
run: |
220225
touch out/changed_files.txt
221226
for file in ${ALL_CHANGED_FILES}; do

.gitmodules

+5
Original file line numberDiff line numberDiff line change
@@ -349,3 +349,8 @@
349349
path = third_party/re2/src
350350
url = https://github.com/google/re2.git
351351
platforms = linux,darwin
352+
[submodule "third_party/libdatachannel/repo"]
353+
path = third_party/libdatachannel/repo
354+
url = https://github.com/paullouisageneau/libdatachannel.git
355+
platforms = linux
356+
recursive = true

.vscode/launch.json

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7+
{
8+
"name": "Python Debugger: test_dcl_server",
9+
"type": "debugpy",
10+
"request": "launch",
11+
"program": "/workspace/connectedhomeip/examples/chip-tool/commands/dcl/test_dcl_server.py",
12+
"args": [],
13+
"console": "integratedTerminal"
14+
},
715
{
816
"name": "Attach to running process",
917
"type": "lldb",

build/chip/chip_test_suite.gni

+27
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ import("//build_overrides/googletest.gni")
1818
import("//build_overrides/pigweed.gni")
1919

2020
import("${chip_root}/build/chip/tests.gni")
21+
import("${dir_pw_build}/python.gni")
2122
import("${dir_pw_unit_test}/test.gni")
2223

24+
# Need access to build options (specifically build_coverage)
25+
import("${build_root}/config/compiler/compiler.gni")
2326
assert(chip_build_tests)
2427

2528
declare_args() {
@@ -112,6 +115,26 @@ template("chip_test_suite") {
112115
_test_output_dir = invoker.output_dir
113116
}
114117

118+
if (use_coverage && is_clang) {
119+
# Generates clang coverage to "<TestName>.profraw" instead of "deafault.profraw"
120+
_clang_coverage_setup = "${root_build_dir}/clang_static_coverage_config/${_test_name}ClangCoverageConfig.cpp"
121+
pw_python_action("${_test_name}-clang-coverage") {
122+
script = "${chip_root}/scripts/build/clang_coverage_wrapper.py"
123+
outputs = [ _clang_coverage_setup ]
124+
args = [
125+
"--output",
126+
rebase_path(_clang_coverage_setup),
127+
"--raw-profile-filename",
128+
"coverage/${_test_name}.profraw",
129+
]
130+
}
131+
132+
source_set("${_test_name}-clang-coverage-src") {
133+
sources = [ _clang_coverage_setup ]
134+
deps = [ ":${_test_name}-clang-coverage" ]
135+
}
136+
}
137+
115138
pw_test(_test_name) {
116139
# Forward certain variables from the invoker.
117140
forward_variables_from(invoker,
@@ -125,6 +148,10 @@ template("chip_test_suite") {
125148
# Link to the common lib for this suite so we get its `sources`.
126149
public_deps += [ ":${_suite_name}.lib" ]
127150

151+
if (use_coverage && is_clang) {
152+
public_deps += [ ":${_test_name}-clang-coverage-src" ]
153+
}
154+
128155
if (pw_unit_test_BACKEND == "$dir_pw_unit_test:googletest") {
129156
test_main = "$dir_pigweed/third_party/googletest:gmock_main"
130157
}

build/config/compiler/BUILD.gn

+9
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,15 @@ config("coverage") {
549549
cflags = [ "--coverage" ]
550550
}
551551
ldflags = cflags
552+
553+
if (is_clang) {
554+
# Looking to add buildid which _could_ be used for coverage
555+
# file format using `%b` (see
556+
# https://clang.llvm.org/docs/SourceBasedCodeCoverage.html#running-the-instrumented-program)
557+
# however at the time of writing this, linux clang used during bootstrap
558+
# does not seem to support this.
559+
ldflags += [ "-Wl,--build-id" ]
560+
}
552561
}
553562

554563
config("coverage_default") {

docs/conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
(MATTER_BASE, "examples/**/*.JPG"),
7373
(MATTER_BASE, "src/tools/**/*.md"),
7474
(MATTER_BASE, "scripts/tools/**/*.md"),
75+
(MATTER_BASE, "scripts/tools/**/*.png"),
7576
]
7677
external_content_link_prefixes = [
7778
"src/",

0 commit comments

Comments
 (0)