Skip to content

Commit

Permalink
Merge branch 'master' into doc_chip_tool_guide_users_and_credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-fer authored Jul 28, 2023
2 parents 525b975 + 6e9b15c commit ef3a759
Show file tree
Hide file tree
Showing 1,682 changed files with 541,650 additions and 408,466 deletions.
1 change: 1 addition & 0 deletions .github/.wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,7 @@ HomePods
hostapd
hostname
href
HEPA
HTTPS
HW
hwadr
Expand Down
47 changes: 47 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
version: 2
updates:
- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "github-actions"
directory: "/"
Expand All @@ -14,3 +23,41 @@ updates:
- dependency-name: "third_party/pigweed/repo"
- dependency-name: "third_party/mbedtls/repo"
- dependency-name: "third_party/openthread/repo"

- dependency-name: "third_party/ameba/repo"
- dependency-name: "third_party/android_deps/repo"
- dependency-name: "third_party/asr/repo"
- dependency-name: "third_party/boringssl/repo"
- dependency-name: "third_party/bouffalolab/repo"
- dependency-name: "third_party/cirque/repo"
- dependency-name: "third_party/editline/repo"
- dependency-name: "third_party/freertos/repo"
- dependency-name: "third_party/imgui/repo"
- dependency-name: "third_party/infineon/repo"
- dependency-name: "third_party/inipp/repo"
- dependency-name: "third_party/java_deps/repo"
- dependency-name: "third_party/jlink/repo"
- dependency-name: "third_party/jsoncpp/repo"
- dependency-name: "third_party/libwebsockets/repo"
- dependency-name: "third_party/lwip/repo"
- dependency-name: "third_party/mbed-mcu-boot/repo"
- dependency-name: "third_party/mbed-os-cypress-capsense-button/repo"
- dependency-name: "third_party/mbed-os-posix-socket/repo"
- dependency-name: "third_party/mbedtls/repo"
- dependency-name: "third_party/mt793x_sdk/repo"
- dependency-name: "third_party/mynewt-core/repo"
- dependency-name: "third_party/nanopb/repo"
- dependency-name: "third_party/nlassert/repo"
- dependency-name: "third_party/nlfaultinjection/repo"
- dependency-name: "third_party/nlio/repo"
- dependency-name: "third_party/nlunit-test/repo"
- dependency-name: "third_party/nxp/repo"
- dependency-name: "third_party/open-iot-sdk/repo"
- dependency-name: "third_party/ot-br-posix/repo"
- dependency-name: "third_party/perfetto/repo"
- dependency-name: "third_party/pybind11/repo"
- dependency-name: "third_party/qpg_sdk/repo"
- dependency-name: "third_party/silabs/repo"
- dependency-name: "third_party/simw-top-mini/repo"
- dependency-name: "third_party/ti_simplelink_sdk/repo"
- dependency-name: "third_party/tizen/repo"
10 changes: 7 additions & 3 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ app:
- src/app/*
- src/app/**/*

icd:
- src/app/icd/*
- src/app/icd/**/*

transport:
- src/transport/*
- src/transport/**/*
Expand Down Expand Up @@ -185,9 +189,9 @@ darwin:
- examples/darwin-framework-tool/*
- examples/darwin-framework-tool/**/*

efr32:
- src/platform/efr32/*
- src/platform/efr32/**/*
silabs:
- src/platform/silabs/*
- src/platform/silabs/**/*

esp32:
- src/platform/ESP32/*
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/build-cert-bins.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build Certification Image
on:
workflow_call:
workflow_dispatch:
jobs:
build-cert-bin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: ghcr.io/project-chip/chip-cert-bins
tags: latest
dockerfile: ./integrations/docker/images/chip-cert-bins/Dockerfile
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
platforms: linux/amd64,linux/arm64,linux/arm
4 changes: 4 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ jobs:
BUILD_TYPE=gcc_release scripts/build/gn_gen.sh --args="is_debug=false"
scripts/run_in_build_env.sh "ninja -C ./out/gcc_release"
BUILD_TYPE=gcc_release scripts/tests/gn_tests.sh
- name: Clean output
run: rm -rf ./out
- name: Run Tests with sanitizers
env:
LSAN_OPTIONS: detect_leaks=1
Expand Down Expand Up @@ -201,6 +203,8 @@ jobs:
--file-exclude-regex '/(repo|zzz_generated|lwip/standalone)/' \
check \
"
- name: Clean output
run: rm -rf ./out
- name: Build using build_examples.py
run: |
./scripts/run_in_build_env.sh \
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/chef.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ jobs:
uses: ./.github/actions/checkout-submodules-and-bootstrap
with:
platform: esp32
- name: Fixup GdbGui requirement
run: perl -i -pe 's/^gdbgui==/# gdbgui==/' /opt/espressif/esp-idf/requirements.txt
- name: CI Examples ESP32
shell: bash
run: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/examples-asr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ jobs:
"./scripts/build/build_examples.py \
--target asr-asr582x-all-clusters \
--target asr-asr582x-all-clusters-minimal \
--target asr-asr582x-lighting \
--target asr-asr582x-light-switch \
--target asr-asr582x-lock \
--target asr-asr582x-lighting-ota \
--target asr-asr582x-light-switch-shell \
--target asr-asr582x-lock-no_logging \
--target asr-asr582x-ota-requestor \
--target asr-asr582x-bridge \
--target asr-asr582x-temperature-measurement \
--target asr-asr582x-thermostat \
--target asr-asr582x-bridge-factory \
--target asr-asr582x-temperature-measurement-rotating_id \
--target asr-asr582x-thermostat-rio \
build \
"
13 changes: 7 additions & 6 deletions .github/workflows/examples-efr32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ jobs:
with:
gh-context: ${{ toJson(github) }}

# - name: Test SLC gen
# timeout-minutes: 30
# run: |
# scripts/examples/gn_silabs_example.sh examples/lighting-app/silabs ./out/light-app BRD4187C --slc_generate --docker
# scripts/examples/gn_silabs_example.sh examples/lighting-app/silabs ./out/light-app BRD4164A --slc_generate --docker
# rm -rf ./out/
- name: Test SLC gen
timeout-minutes: 30
run: |
scripts/examples/gn_silabs_example.sh examples/lighting-app/silabs ./out/light-app BRD4187C --slc_generate --docker
scripts/examples/gn_silabs_example.sh examples/lighting-app/silabs ./out/light-app BRD4164A --slc_generate --docker
rm -rf ./out/
- name: Build some BRD4187C variants
run: |
./scripts/run_in_build_env.sh \
Expand All @@ -72,6 +72,7 @@ jobs:
--target efr32-brd4187c-unit-test \
--target efr32-brd4187c-light-use_ot_lib \
--target efr32-brd4187c-light-rpc \
--target efr32-brd4187c-pump \
--target efr32-brd4187c-lock-rpc-shell-enable_heap_monitoring \
build \
--copy-artifacts-to out/artifacts \
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/examples-esp32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ jobs:
with:
platform: esp32

- name: Fixup GdbGui requirement
run: perl -i -pe 's/^gdbgui==/# gdbgui==/' /opt/espressif/esp-idf/requirements.txt

- name: Set up environment for size reports
uses: ./.github/actions/setup-size-reports
if: ${{ !env.ACT }}
Expand Down Expand Up @@ -139,6 +142,9 @@ jobs:
with:
platform: esp32

- name: Fixup GdbGui requirement
run: perl -i -pe 's/^gdbgui==/# gdbgui==/' /opt/espressif/esp-idf/requirements.txt

- name: Build example Bridge App
run: scripts/examples/esp_example.sh bridge-app

Expand Down
38 changes: 37 additions & 1 deletion .github/workflows/examples-openiotsdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Checkout submodules & Bootstrap
uses: ./.github/actions/checkout-submodules-and-bootstrap
with:
platform: openiotsdk
platform: openiotsdk linux
extra-submodule-parameters: " --recursive"

- name: Set up environment for size reports
Expand All @@ -73,6 +73,8 @@ jobs:
/tmp/bloat_reports/
- name: Build lock-app example (mbedtls)
# Disabled being tracked here: https://github.com/project-chip/connectedhomeip/issues/28026
if: false
id: build_lock_app_mbedtls
run: |
scripts/examples/openiotsdk_example.sh -b mbedtls lock-app
Expand Down Expand Up @@ -101,11 +103,30 @@ jobs:
examples/all-clusters-app/openiotsdk/build/chip-openiotsdk-all-clusters-app-example.elf \
/tmp/bloat_reports/
- name: Build ota-requestor-app example
id: build_ota_requestor_app
timeout-minutes: 10
run: |
scripts/examples/openiotsdk_example.sh -v 1 -V 0.0.1 ota-requestor-app
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
openiotsdk release ota-requestor-app \
examples/ota-requestor-app/openiotsdk/build/chip-openiotsdk-ota-requestor-app-example.elf \
/tmp/bloat_reports/
- name: Build unit tests (mbedtls)
# Disabled being tracked here: https://github.com/project-chip/connectedhomeip/issues/28026
if: false
id: build_unit_tests_mbedtls
run: |
scripts/examples/openiotsdk_example.sh -b mbedtls unit-tests
- name: Build the OTA provider (Linux)
id: build_ota_provider_app
if: steps.build_ota_requestor_app.outcome == 'success'
timeout-minutes: 10
run: |
scripts/examples/gn_build_example.sh examples/ota-provider-app/linux/ out/ota-provider chip_config_network_layer_ble=false
- name: "Test: shell example"
if: steps.build_shell.outcome == 'success'
run: |
Expand Down Expand Up @@ -138,13 +159,28 @@ jobs:
'scripts/run_in_ns.sh ${TEST_NETWORK_NAME}ns scripts/examples/openiotsdk_example.sh --no-activate -C test -n ${TEST_NETWORK_NAME}tap all-clusters-app'
scripts/setup/openiotsdk/network_setup.sh -n $TEST_NETWORK_NAME down
- name: "Test: ota-requestor-app example"
if: steps.build_ota_requestor_app.outcome == 'success' && steps.build_ota_provider_app.outcome == 'success'
timeout-minutes: 30
run: |
mkdir out/binaries
cp examples/ota-requestor-app/openiotsdk/build/chip-openiotsdk-ota-requestor-app-example.elf out/binaries/
scripts/examples/openiotsdk_example.sh -c -v 2 -V 0.0.2 ota-requestor-app
cp examples/ota-requestor-app/openiotsdk/build/chip-openiotsdk-ota-requestor-app-example.ota out/binaries/
scripts/setup/openiotsdk/network_setup.sh -n $TEST_NETWORK_NAME up
scripts/run_in_python_env.sh out/venv \
'scripts/run_in_ns.sh ${TEST_NETWORK_NAME}ns scripts/examples/openiotsdk_example.sh --no-activate -p out/binaries -v 2 -V 0.0.2 -C test -n ${TEST_NETWORK_NAME}tap ota-requestor-app'
scripts/setup/openiotsdk/network_setup.sh -n $TEST_NETWORK_NAME down
- name: "Test: unit-tests (mbedtls)"
if: steps.build_unit_tests_mbedtls.outcome == 'success'
run: |
scripts/run_in_python_env.sh out/venv \
'scripts/examples/openiotsdk_example.sh --no-activate -C test unit-tests'
- name: Build lock-app example (psa)
# Disabled being tracked here: https://github.com/project-chip/connectedhomeip/issues/28026
if: false
id: build_lock_app_psa
run: |
scripts/examples/openiotsdk_example.sh -c -b psa lock-app
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/examples-telink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,18 @@ jobs:
- name: clean out build output
run: rm -rf ./out

- name: Build example Telink Shell App
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py --target 'telink-tlsr9518adk80d-shell' build"
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
telink tlsr9518adk80d shell \
out/telink-tlsr9518adk80d-shell/zephyr/zephyr.elf \
/tmp/bloat_reports/
- name: clean out build output
run: rm -rf ./out

- name: Build example Telink Smoke CO Alarm App
run: |
./scripts/run_in_build_env.sh \
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
- uses: Wandalen/[email protected]
name: Gradle Validation
continue-on-error: true
with:
action: gradle/wrapper-validation-action@v1
attempt_limit: 3
attempt_delay: 2000
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: ghcr.io/project-chip/chip-build:0.8
image: ghcr.io/project-chip/chip-build:1

steps:
- name: Checkout
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/qemu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ jobs:
with:
platform: esp32

- name: Fixup GdbGui requirement
run: perl -i -pe 's/^gdbgui==/# gdbgui==/' /opt/espressif/esp-idf/requirements.txt

- name: Build ESP32 QEMU test images
run: |
scripts/run_in_build_env.sh " \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/roll_and_build_docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Roll docker versions
run: ./scripts/helpers/roll_docker_version.sh ./integrations/docker/images/base/chip-build/version
run: ./scripts/helpers/roll_docker_version.sh --reason="Automated roll by GitHub Action"
- uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
Expand Down
Loading

0 comments on commit ef3a759

Please sign in to comment.