Skip to content

Commit 239b254

Browse files
authored
Merge branch 'master' into pr/java/annotation
2 parents d77adf7 + db11e29 commit 239b254

File tree

320 files changed

+2832
-6391
lines changed

Some content is hidden

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

320 files changed

+2832
-6391
lines changed

.devcontainer/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,6 @@ RUN sed -i '/^TIZEN_SDK_DATA_PATH/d' $TIZEN_SDK_ROOT/sdk.info \
8686
&& : # last line
8787

8888
ENV TIZEN_ROOTFS /tizen_rootfs
89+
90+
# Fast Model GDB plugins path for debugging support
91+
ENV FAST_MODEL_PLUGINS_PATH /opt/FastModelsPortfolio_11.16/plugins/Linux64_GCC-9.3

.devcontainer/devcontainer.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,12 @@
3131
"esbenp.prettier-vscode",
3232
"foxundermoon.shell-format",
3333
"github.vscode-pull-request-github",
34-
"knisterpeter.vscode-github",
3534
"maelvalais.autoconf",
3635
"marus25.cortex-debug",
3736
"ms-azuretools.vscode-docker",
3837
"msedge-dev.gnls",
39-
"npclaudiu.vscode-gn",
4038
"redhat.vscode-yaml",
39+
"vadimcn.vscode-lldb",
4140
"xaver.clang-format",
4241
"yuichinukiyama.vscode-preview-server",
4342
"yzhang.markdown-all-in-one"

.github/workflows/build.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,10 @@ jobs:
210210
BUILD_TYPE=sanitizers scripts/build/gn_gen.sh --args="$GN_ARGS" --export-compile-commands
211211
BUILD_TYPE=sanitizers scripts/tests/gn_tests.sh
212212
done
213+
- name: Ensure codegen is done for sanitize
214+
timeout-minutes: 45
215+
run: |
216+
./scripts/run_in_build_env.sh "./scripts/run_codegen_targets.sh out/sanitizers"
213217
- name: Clang-tidy validation
214218
timeout-minutes: 45
215219
run: |
@@ -401,6 +405,10 @@ jobs:
401405
scripts/run_in_build_env.sh "ninja -C ./out/$BUILD_TYPE"
402406
BUILD_TYPE=$BUILD_TYPE scripts/tests/gn_tests.sh
403407
done
408+
- name: Ensure codegen is done for sanitize
409+
timeout-minutes: 45
410+
run: |
411+
./scripts/run_in_build_env.sh "./scripts/run_codegen_targets.sh out/default"
404412
- name: Clang-tidy validation
405413
timeout-minutes: 45
406414
run: |

.github/workflows/darwin-tests.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
--target darwin-x64-ota-provider-${BUILD_VARIANT} \
9595
--target darwin-x64-ota-requestor-${BUILD_VARIANT} \
9696
--target darwin-x64-tv-app-${BUILD_VARIANT} \
97-
--target darwin-x64-bridge-app-${BUILD_VARIANT} \
97+
--target darwin-x64-bridge-${BUILD_VARIANT} \
9898
build \
9999
--copy-artifacts-to objdir-clone \
100100
"
@@ -113,7 +113,7 @@ jobs:
113113
--ota-provider-app ./out/darwin-x64-ota-provider-${BUILD_VARIANT}/chip-ota-provider-app \
114114
--ota-requestor-app ./out/darwin-x64-ota-requestor-${BUILD_VARIANT}/chip-ota-requestor-app \
115115
--tv-app ./out/darwin-x64-tv-app-${BUILD_VARIANT}/chip-tv-app \
116-
--bridge-app ./out/darwin-x64-tv-app-${BUILD_VARIANT}/chip-bridge-app \
116+
--bridge-app ./out/darwin-x64-bridge-${BUILD_VARIANT}/chip-bridge-app \
117117
"
118118
- name: Uploading core files
119119
uses: actions/upload-artifact@v2

.github/workflows/docker_img.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
- "-telink"
5555
- "-ti"
5656
- "-tizen"
57+
- "-openiotsdk"
5758
# NOTE: vscode image consumes ~52 GB disk space but GitHub-hosted runners provide ~10 GB free disk space(https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources)
5859
#- "-vscode"
5960
- "-zap"

.github/workflows/examples-bl602.yaml

-79
This file was deleted.

.github/workflows/examples-bouffalolab.yaml

+62-5
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
name: Build example - Bouffalolab BL702
15+
name: Build example - BouffaloLab
1616

1717
on:
1818
push:
@@ -23,6 +23,62 @@ concurrency:
2323
cancel-in-progress: true
2424

2525
jobs:
26+
bl602:
27+
name: BL602
28+
timeout-minutes: 90
29+
30+
runs-on: ubuntu-latest
31+
if: github.actor != 'restyled-io[bot]'
32+
33+
container:
34+
image: connectedhomeip/chip-build:latest
35+
volumes:
36+
- "/tmp/bloat_reports:/tmp/bloat_reports"
37+
steps:
38+
- uses: Wandalen/wretry.action@v1.0.15
39+
name: Checkout
40+
with:
41+
action: actions/checkout@v3
42+
with: |
43+
token: ${{ github.token }}
44+
attempt_limit: 3
45+
attempt_delay: 2000
46+
- name: Checkout submodules
47+
run: scripts/checkout_submodules.py --shallow --platform bl602
48+
49+
- name: Set up environment for size reports
50+
if: ${{ !env.ACT }}
51+
env:
52+
GH_CONTEXT: ${{ toJson(github) }}
53+
run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}"
54+
55+
- name: Build example BL602 Lighting App
56+
timeout-minutes: 30
57+
run: |
58+
./scripts/run_in_build_env.sh \
59+
"./scripts/build/build_examples.py --target bouffalolab-bl602-iot-matter-v1-light build"
60+
61+
- name: Get Lighting size stats
62+
run: |
63+
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py bl602 bl602 lighting-app \
64+
out/bouffalolab-bl602-iot-matter-v1-light/chip-bl602-lighting-example.out /tmp/bloat_reports/
65+
66+
- name: Build example BL602 Lighting App with RPCs
67+
timeout-minutes: 30
68+
run: |
69+
./scripts/run_in_build_env.sh \
70+
"./scripts/build/build_examples.py --target bouffalolab-bl602-iot-matter-v1-light-115200-rpc build"
71+
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py bl602 bl602+rpc lighting-app \
72+
out/bouffalolab-bl602-iot-matter-v1-light-115200-rpc/chip-bl602-lighting-example.out /tmp/bloat_reports/
73+
74+
- name: Uploading Size Reports
75+
uses: actions/upload-artifact@v2
76+
if: ${{ !env.ACT }}
77+
with:
78+
name: Size,BL602-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }}
79+
path: |
80+
/tmp/bloat_reports/
81+
2682
bl702:
2783
name: BL702
2884
timeout-minutes: 90
@@ -52,21 +108,22 @@ jobs:
52108
GH_CONTEXT: ${{ toJson(github) }}
53109
run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}"
54110

111+
55112
- name: Build example BL702 Lighting App
56113
timeout-minutes: 30
57114
run: |
58115
./scripts/run_in_build_env.sh \
59-
"./scripts/build/build_examples.py --target bouffalolab-bl706-iot-dvk-light build"
116+
"./scripts/build/build_examples.py --target bouffalolab-xt-zb6-devkit-light build"
60117
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py bl702 bl702 lighting-app \
61-
out/bouffalolab-bl706-iot-dvk-light/chip-bl702-lighting-example.out /tmp/bloat_reports/
118+
out/bouffalolab-xt-zb6-devkit-light/chip-bl702-lighting-example.out /tmp/bloat_reports/
62119
63120
- name: Build example BL702 Lighting App with RPCs
64121
timeout-minutes: 30
65122
run: |
66123
./scripts/run_in_build_env.sh \
67-
"./scripts/build/build_examples.py --target bouffalolab-bl706-iot-dvk-light-rpc build"
124+
"./scripts/build/build_examples.py --target bouffalolab-xt-zb6-devkit-light-115200-rpc build"
68125
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py bl702 bl702+rpc lighting-app \
69-
out/bouffalolab-bl706-iot-dvk-light-rpc/chip-bl702-lighting-example.out /tmp/bloat_reports/
126+
out/bouffalolab-xt-zb6-devkit-light-115200-rpc/chip-bl702-lighting-example.out /tmp/bloat_reports/
70127
71128
- name: Uploading Size Reports
72129
uses: actions/upload-artifact@v2

.github/workflows/lint.yml

+7
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@ jobs:
9797
if [ "$idl_file" = './examples/thermostat/thermostat-common/thermostat.matter' ]; then continue; fi
9898
if [ "$idl_file" = './examples/window-app/common/window-app.matter' ]; then continue; fi
9999
100+
# Test files are intentionally small and not spec-compilant, just parse-compliant
101+
if [ "$idl_file" = "./scripts/idl/tests/inputs/cluster_struct_attribute.matter" ]; then continue; fi
102+
if [ "$idl_file" = "./scripts/idl/tests/inputs/global_struct_attribute.matter" ]; then continue; fi
103+
if [ "$idl_file" = "./scripts/idl/tests/inputs/optional_argument.matter" ]; then continue; fi
104+
if [ "$idl_file" = "./scripts/idl/tests/inputs/several_clusters.matter" ]; then continue; fi
105+
if [ "$idl_file" = "./scripts/idl/tests/inputs/simple_attribute.matter" ]; then continue; fi
106+
100107
./scripts/run_in_build_env.sh "./scripts/idl_lint.py --log-level warn $idl_file" >/dev/null || exit 1
101108
done
102109

.github/workflows/tests.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ jobs:
189189
--target linux-x64-ota-provider-${BUILD_VARIANT} \
190190
--target linux-x64-ota-requestor-${BUILD_VARIANT} \
191191
--target linux-x64-tv-app-${BUILD_VARIANT} \
192-
--target linux-x64-bridge-app-${BUILD_VARIANT} \
192+
--target linux-x64-bridge-${BUILD_VARIANT} \
193193
build \
194194
--copy-artifacts-to objdir-clone \
195195
"
@@ -207,7 +207,7 @@ jobs:
207207
--ota-provider-app ./out/linux-x64-ota-provider-${BUILD_VARIANT}/chip-ota-provider-app \
208208
--ota-requestor-app ./out/linux-x64-ota-requestor-${BUILD_VARIANT}/chip-ota-requestor-app \
209209
--tv-app ./out/linux-x64-tv-app-${BUILD_VARIANT}/chip-tv-app \
210-
--bridge-app ./out/linux-x64-tv-app-${BUILD_VARIANT}/chip-bridge-app \
210+
--bridge-app ./out/linux-x64-bridge-${BUILD_VARIANT}/chip-bridge-app \
211211
"
212212
- name: Uploading core files
213213
uses: actions/upload-artifact@v2
@@ -293,7 +293,7 @@ jobs:
293293
--target darwin-x64-ota-provider-${BUILD_VARIANT} \
294294
--target darwin-x64-ota-requestor-${BUILD_VARIANT} \
295295
--target darwin-x64-tv-app-${BUILD_VARIANT} \
296-
--target darwin-x64-bridge-app-${BUILD_VARIANT} \
296+
--target darwin-x64-bridge-${BUILD_VARIANT} \
297297
build \
298298
--copy-artifacts-to objdir-clone \
299299
"
@@ -312,7 +312,7 @@ jobs:
312312
--ota-provider-app ./out/darwin-x64-ota-provider-${BUILD_VARIANT}/chip-ota-provider-app \
313313
--ota-requestor-app ./out/darwin-x64-ota-requestor-${BUILD_VARIANT}/chip-ota-requestor-app \
314314
--tv-app ./out/darwin-x64-tv-app-${BUILD_VARIANT}/chip-tv-app \
315-
--bridge-app ./out/darwin-x64-tv-app-${BUILD_VARIANT}/chip-bridge-app \
315+
--bridge-app ./out/darwin-x64-bridge-${BUILD_VARIANT}/chip-bridge-app \
316316
"
317317
- name: Uploading core files
318318
uses: actions/upload-artifact@v2

.gitmodules

+10
Original file line numberDiff line numberDiff line change
@@ -288,3 +288,13 @@
288288
url = https://github.com/matter-mtk/genio-matter-lwip.git
289289
branch = main
290290
platforms = genio
291+
[submodule "open-iot-sdk"]
292+
path = third_party/open-iot-sdk/sdk
293+
url = https://git.gitlab.arm.com/iot/open-iot-sdk/sdk.git
294+
branch = main
295+
platforms = openiotsdk
296+
[submodule "open-iot-sdk-storage"]
297+
path = third_party/open-iot-sdk/storage
298+
url = https://git.gitlab.arm.com/iot/open-iot-sdk/storage.git
299+
branch = main
300+
platforms = openiotsdk

.restyled.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ exclude:
7474
- "examples/chef/zzz_generated/**/*"
7575
- "examples/platform/nxp/k32w/k32w0/scripts/demo_generated_certs/**/*"
7676
- "integrations/cloudbuild/*.yaml" # uglier long command line content
77+
- "scripts/run_codegen_targets.sh" # shellharden breaks for loops over command outputs
7778

7879

7980
changed_paths:

.vscode/extensions.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@
1212
"esbenp.prettier-vscode",
1313
"foxundermoon.shell-format",
1414
"github.vscode-pull-request-github",
15-
"knisterpeter.vscode-github",
1615
"maelvalais.autoconf",
1716
"marus25.cortex-debug",
1817
"ms-azuretools.vscode-docker",
1918
"msedge-dev.gnls",
20-
"npclaudiu.vscode-gn",
2119
"redhat.vscode-yaml",
20+
"vadimcn.vscode-lldb",
2221
"xaver.clang-format",
2322
"yuichinukiyama.vscode-preview-server",
2423
"yzhang.markdown-all-in-one"

0 commit comments

Comments
 (0)