Skip to content

Commit d0bf508

Browse files
authored
Merge branch 'master' into create_CADMIN_1_15_test
2 parents 634041a + df5ee33 commit d0bf508

File tree

1,254 files changed

+82859
-36055
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,254 files changed

+82859
-36055
lines changed

.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/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:104
3838

3939
steps:
4040
- name: Checkout

.github/workflows/build.yaml

+13-19
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:104
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:104
143135
volumes:
144136
- "/:/runner-root-volume"
145137
- "/tmp/log_output:/tmp/test_logs"
@@ -308,7 +300,7 @@ jobs:
308300
if: github.actor != 'restyled-io[bot]'
309301

310302
container:
311-
image: ghcr.io/project-chip/chip-build:97
303+
image: ghcr.io/project-chip/chip-build:104
312304
volumes:
313305
- "/:/runner-root-volume"
314306
- "/tmp/log_output:/tmp/test_logs"
@@ -373,7 +365,7 @@ jobs:
373365
if: github.actor != 'restyled-io[bot]'
374366

375367
container:
376-
image: ghcr.io/project-chip/chip-build:97
368+
image: ghcr.io/project-chip/chip-build:104
377369
volumes:
378370
- "/:/runner-root-volume"
379371
- "/tmp/log_output:/tmp/test_logs"
@@ -488,16 +480,16 @@ jobs:
488480
build_linux_gcc_coverage:
489481
name: Build on Linux (coverage)
490482

491-
runs-on: ubuntu-latest
483+
env:
484+
TSAN_OPTIONS: "halt_on_error=1 suppressions=scripts/tests/chiptest/tsan-linux-suppressions.txt"
485+
492486
if: github.actor != 'restyled-io[bot]'
487+
runs-on: ubuntu-latest
493488

494489
container:
495-
image: ghcr.io/project-chip/chip-build:97
496-
volumes:
497-
- "/:/runner-root-volume"
498-
- "/tmp/log_output:/tmp/test_logs"
490+
image: ghcr.io/project-chip/chip-build:104
499491
options: --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
500-
net.ipv4.conf.all.forwarding=1 net.ipv6.conf.all.forwarding=1"
492+
net.ipv4.conf.all.forwarding=0 net.ipv6.conf.all.forwarding=0"
501493

502494
steps:
503495
- name: Checkout
@@ -506,6 +498,8 @@ jobs:
506498
uses: ./.github/actions/checkout-submodules-and-bootstrap
507499
with:
508500
platform: linux
501+
bootstrap-log-name: bootstrap-logs-linux-${{ matrix.build_variant }}${{ matrix.chip_tool }}
509502

510503
- name: Run Build Coverage
511-
run: ./scripts/build_coverage.sh
504+
run: ./scripts/build_coverage.sh --yaml
505+

.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:104
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:104
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:104
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:104
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 52c23bb5bfa7b08fb2499fda8c34cbd3418e0c1d"
115115
- name: CI Examples Telink
116116
shell: bash
117117
run: |

.github/workflows/doxygen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484

8585
runs-on: ubuntu-latest
8686
container:
87-
image: ghcr.io/project-chip/chip-build-doxygen:97
87+
image: ghcr.io/project-chip/chip-build-doxygen:104
8888

8989
if: github.actor != 'restyled-io[bot]'
9090

.github/workflows/examples-ameba.yaml

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

4141
container:
42-
image: ghcr.io/project-chip/chip-build-ameba:97
42+
image: ghcr.io/project-chip/chip-build-ameba:104
4343
options: --user root
4444

4545
steps:

.github/workflows/examples-asr.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-asr:97
40+
image: ghcr.io/project-chip/chip-build-asr:104
4141
options: --user root
4242

4343
steps:

.github/workflows/examples-bouffalolab.yaml

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

4040
container:
41-
image: ghcr.io/project-chip/chip-build-bouffalolab:97
41+
image: ghcr.io/project-chip/chip-build-bouffalolab:104
4242
volumes:
4343
- "/tmp/bloat_reports:/tmp/bloat_reports"
4444
steps:

.github/workflows/examples-cc13xx_26xx.yaml

+1-1
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-ti:97
45+
image: ghcr.io/project-chip/chip-build-ti:104
4646
volumes:
4747
- "/tmp/bloat_reports:/tmp/bloat_reports"
4848
steps:

.github/workflows/examples-cc32xx.yaml

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

4343
container:
44-
image: ghcr.io/project-chip/chip-build-ti:97
44+
image: ghcr.io/project-chip/chip-build-ti:104
4545
volumes:
4646
- "/tmp/bloat_reports:/tmp/bloat_reports"
4747
steps:

.github/workflows/examples-efr32.yaml

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

4343
container:
44-
image: ghcr.io/project-chip/chip-build-efr32:95
44+
image: ghcr.io/project-chip/chip-build-efr32:104
4545
volumes:
4646
- "/tmp/bloat_reports:/tmp/bloat_reports"
4747
steps:

.github/workflows/examples-esp32.yaml

+7-7
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-esp32:97
40+
image: ghcr.io/project-chip/chip-build-esp32:104
4141
volumes:
4242
- "/tmp/bloat_reports:/tmp/bloat_reports"
4343

@@ -93,7 +93,7 @@ jobs:
9393
mv scripts/codegen.py.renamed scripts/codegen.py
9494
mv scripts/tools/zap/generate.py.renamed scripts/tools/zap/generate.py
9595
- name: Build example All Clusters App(Target:ESP32C3)
96-
run: scripts/examples/esp_example.sh all-clusters-app sdkconfig.defaults.esp32c3 esp32c3
96+
run: scripts/examples/esp_example.sh all-clusters-app sdkconfig.defaults esp32c3
9797
- name: Build example All Clusters App(Target:ESP32)
9898
run: |
9999
./scripts/run_in_build_env.sh \
@@ -114,10 +114,10 @@ jobs:
114114
/tmp/bloat_reports/
115115
116116
- name: Build example Lighting App (Target:ESP32H2)
117-
run: scripts/examples/esp_example.sh lighting-app sdkconfig.defaults.esp32h2 esp32h2
117+
run: scripts/examples/esp_example.sh lighting-app sdkconfig.defaults esp32h2
118118

119119
- name: Build example Lighting App (Target:ESP32C6)
120-
run: scripts/examples/esp_example.sh lighting-app sdkconfig.defaults.esp32c6 esp32c6
120+
run: scripts/examples/esp_example.sh lighting-app sdkconfig.defaults esp32c6
121121

122122
- name: Uploading Size Reports
123123
uses: ./.github/actions/upload-size-reports
@@ -132,7 +132,7 @@ jobs:
132132
if: github.actor != 'restyled-io[bot]' && github.repository_owner == 'espressif'
133133

134134
container:
135-
image: ghcr.io/project-chip/chip-build-esp32:97
135+
image: ghcr.io/project-chip/chip-build-esp32:104
136136
volumes:
137137
- "/tmp/bloat_reports:/tmp/bloat_reports"
138138

@@ -163,7 +163,7 @@ jobs:
163163
run: scripts/examples/esp_example.sh ota-provider-app sdkconfig.defaults
164164

165165
- name: Build example Light Switch App (Target:ESP32C3)
166-
run: scripts/examples/esp_example.sh light-switch-app sdkconfig.defaults.esp32c3 esp32c3
166+
run: scripts/examples/esp_example.sh light-switch-app sdkconfig.defaults esp32c3
167167

168168
- name: Build example Lighting App (external platform)
169169
run: scripts/examples/esp_example.sh lighting-app sdkconfig.ext_plat.defaults
@@ -178,4 +178,4 @@ jobs:
178178
run: scripts/examples/esp_example.sh pigweed-app sdkconfig.defaults
179179

180180
- name: Build example Lock App (Target:ESP32C6)
181-
run: scripts/examples/esp_example.sh lock-app sdkconfig.defaults.esp32c6 esp32c6
181+
run: scripts/examples/esp_example.sh lock-app sdkconfig.defaults esp32c6

.github/workflows/examples-infineon.yaml

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

4040
container:
41-
image: ghcr.io/project-chip/chip-build-infineon:97
41+
image: ghcr.io/project-chip/chip-build-infineon:104
4242
env:
4343
# TODO: this should probably be part of the dockerfile itself
4444
CY_TOOLS_PATHS: /opt/Tools/ModusToolbox/tools_3.2

.github/workflows/examples-linux-arm.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-crosscompile:97
40+
image: ghcr.io/project-chip/chip-build-crosscompile:104
4141
volumes:
4242
- "/tmp/bloat_reports:/tmp/bloat_reports"
4343

.github/workflows/examples-linux-imx.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-imx:97
40+
image: ghcr.io/project-chip/chip-build-imx:104
4141

4242
steps:
4343
- name: Checkout

.github/workflows/examples-linux-standalone.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:97
40+
image: ghcr.io/project-chip/chip-build:104
4141
volumes:
4242
- "/tmp/bloat_reports:/tmp/bloat_reports"
4343

.github/workflows/examples-linux-tv-casting-app.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:97
40+
image: ghcr.io/project-chip/chip-build:104
4141

4242
steps:
4343
- name: Checkout

.github/workflows/examples-mw320.yaml

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

4242
container:
43-
image: ghcr.io/project-chip/chip-build:97
43+
image: ghcr.io/project-chip/chip-build:104
4444
volumes:
4545
- "/tmp/bloat_reports:/tmp/bloat_reports"
4646
steps:

.github/workflows/examples-nrfconnect.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
if: github.actor != 'restyled-io[bot]'
4141

4242
container:
43-
image: ghcr.io/project-chip/chip-build-nrf-platform:97
43+
image: ghcr.io/project-chip/chip-build-nrf-platform:104
4444
volumes:
4545
- "/tmp/bloat_reports:/tmp/bloat_reports"
4646

@@ -196,6 +196,8 @@ jobs:
196196
- name: Run unit tests for Zephyr native_posix_64 platform
197197
if: github.event_name == 'push' || steps.changed_paths.outputs.tests == 'true' || steps.changed_paths.outputs.nrfconnect == 'true'
198198
run: |
199+
# Temporarily fix link issue
200+
sed -i '151s/<LINK_FLAGS> //' /opt/NordicSemiconductor/nrfconnect/zephyr/cmake/linker/ld/target.cmake
199201
scripts/run_in_build_env.sh "./scripts/build/build_examples.py --target nrf-native-posix-64-tests build"
200202
- name: Uploading Failed Test Logs
201203
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)