Skip to content

Commit

Permalink
Merge branch 'master' into patch-7
Browse files Browse the repository at this point in the history
  • Loading branch information
lboue authored May 8, 2023
2 parents a6ab6dc + a2d1596 commit ef61c70
Show file tree
Hide file tree
Showing 1,934 changed files with 180,039 additions and 106,191 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"build": {
"dockerfile": "Dockerfile",
"args": {
"BUILD_VERSION": "0.6.47"
"BUILD_VERSION": "0.7.0"
}
},
"remoteUser": "vscode",
Expand Down
3 changes: 1 addition & 2 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ exclude = third_party
# TODO: Remove the paths below when all bugs are fixed
src/tools/chip-cert/*
src/test_driver/mbed/*
src/test_driver/linux-cirque/*
build/chip/java/tests/*
build/chip/linux/*
build/config/linux/*
Expand Down Expand Up @@ -55,7 +54,6 @@ exclude = third_party
scripts/tools/memory/memdf/__init__.py
scripts/tools/memory/report_summary.py
scripts/tools/silabs/FactoryDataProvider.py
scripts/tools/telink/mfg_tool.py
scripts/tools/zap/generate.py
scripts/tools/zap/prune_outputs.py
scripts/tools/zap/version_update.py
Expand Down Expand Up @@ -91,6 +89,7 @@ exclude = third_party
src/controller/python/chip/yaml/__init__.py
src/controller/python/chip/yaml/format_converter.py
src/controller/python/chip/yaml/runner.py
src/controller/python/py_matter_yamltest_repl_adapter/matter_yamltest_repl_adapter/runner.py
src/lib/asn1/gen_asn1oid.py
src/pybindings/pycontroller/build-chip-wheel.py
src/pybindings/pycontroller/pychip/__init__.py
Expand Down
5 changes: 5 additions & 0 deletions .github/.wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ Dnsmasq
dnsmasqd
DNSSD
DNSStubListener
docbuild
Dockerfile
Dockerfiles
Don'ts
Expand Down Expand Up @@ -984,6 +985,7 @@ otatesting
otaURL
OTBR
otcli
outform
outgoingCommands
OxygenConcentrationMeasurement
OzoneConcentrationMeasurement
Expand Down Expand Up @@ -1023,6 +1025,7 @@ Pigweed
PinCode
pinrequest
pkgconfig
PKI
plaintext
PlatformManager
PlatformManagerImpl
Expand Down Expand Up @@ -1179,6 +1182,7 @@ sdkconfig
SDKs
SDKTARGETSYSROOT
sdl
SecureCertDACProvider
SED
SEGGER
semver
Expand Down Expand Up @@ -1235,6 +1239,7 @@ softwareVersionStr
SoftwareVersionString
softwareVersionValid
sphinxcontrib
SparkFun
SPI
spiflash
spinel
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bloat_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: connectedhomeip/chip-build:0.6.47
image: connectedhomeip/chip-build:0.7.0

steps:
- uses: Wandalen/[email protected]
Expand Down
34 changes: 18 additions & 16 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: connectedhomeip/chip-build:0.6.47
image: connectedhomeip/chip-build:0.7.0
volumes:
- "/tmp/log_output:/tmp/test_logs"
options: --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
Expand All @@ -60,7 +60,7 @@ jobs:
attempt_limit: 3
attempt_delay: 2000
- name: Checkout submodules
run: scripts/checkout_submodules.py --shallow --platform linux
run: scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform linux
- name: Try to ensure the directories for core dumping exist and we
can write them.
run: |
Expand All @@ -77,7 +77,7 @@ jobs:
build_overrides/pigweed_environment.gni
- name: Bootstrap
timeout-minutes: 10
run: scripts/build/gn_bootstrap.sh
run: bash scripts/bootstrap.sh
- name: Uploading bootstrap logs
uses: actions/upload-artifact@v3
if: ${{ always() && !env.ACT }}
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: connectedhomeip/chip-build:0.6.47
image: connectedhomeip/chip-build:0.7.0
volumes:
- "/tmp/log_output:/tmp/test_logs"
options: --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
Expand Down Expand Up @@ -177,7 +177,7 @@ jobs:
# with:
# languages: "cpp"
- name: Checkout submodules
run: scripts/checkout_submodules.py --shallow --platform linux
run: scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform linux
- name: Try to ensure the directories for core dumping exist and we
can write them.
run: |
Expand All @@ -194,7 +194,7 @@ jobs:
build_overrides/pigweed_environment.gni
- name: Bootstrap
timeout-minutes: 10
run: scripts/build/gn_bootstrap.sh
run: bash scripts/bootstrap.sh
- name: Uploading bootstrap logs
uses: actions/upload-artifact@v3
if: ${{ always() && !env.ACT }}
Expand Down Expand Up @@ -261,6 +261,8 @@ jobs:
run: |
./scripts/run_in_build_env.sh "./scripts/codepregen.py ./zzz_pregenerated"
mv scripts/codegen.py scripts/codegen.py.renamed
- name: Clean output
run: rm -rf ./out
- name: Build using build_examples.py (pregen)
timeout-minutes: 60
run: |
Expand All @@ -273,10 +275,10 @@ jobs:
"
- name: Check no code generation in output
run: |
CNT=$(find -name "CHIPClusters.h" out | wc -l)
CNT=$(find out -name "CHIPClusters.h" | wc -l)
if [ "${CNT}" != "0" ]; then
echo "ERROR: found unexpected generated files:"
find -name "CHIPClusters.h" out
find out -name "CHIPClusters.h"
exit 1
fi
- name: Undo code pre-generation changes (make compile time codegen work again)
Expand Down Expand Up @@ -318,7 +320,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: connectedhomeip/chip-build:0.6.47
image: connectedhomeip/chip-build:0.7.0
volumes:
- "/tmp/log_output:/tmp/test_logs"
options: --sysctl "net.ipv6.conf.all.disable_ipv6=0
Expand All @@ -342,7 +344,7 @@ jobs:
attempt_limit: 3
attempt_delay: 2000
- name: Checkout submodules
run: scripts/checkout_submodules.py --shallow --platform linux
run: scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform linux

- name: Bootstrap cache
uses: actions/cache@v3
Expand All @@ -354,7 +356,7 @@ jobs:
build_overrides/pigweed_environment.gni
- name: Bootstrap
timeout-minutes: 10
run: scripts/build/gn_bootstrap.sh
run: bash scripts/bootstrap.sh

- name: Setup Build, Run Build and Run Tests
timeout-minutes: 50
Expand Down Expand Up @@ -398,7 +400,7 @@ jobs:
# with:
# languages: "cpp"
- name: Checkout submodules
run: scripts/checkout_submodules.py --shallow --platform darwin
run: scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform darwin
- name: Try to ensure the directory for diagnostic log collection exists
run: |
mkdir -p ~/Library/Logs/DiagnosticReports || true
Expand All @@ -413,7 +415,7 @@ jobs:
build_overrides/pigweed_environment.gni
- name: Bootstrap
timeout-minutes: 25
run: scripts/build/gn_bootstrap.sh
run: bash scripts/bootstrap.sh
- name: Uploading bootstrap logs
uses: actions/upload-artifact@v3
if: ${{ always() && !env.ACT }}
Expand Down Expand Up @@ -485,7 +487,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: connectedhomeip/chip-build:0.6.47
image: connectedhomeip/chip-build:0.7.0
volumes:
- "/tmp/log_output:/tmp/test_logs"
options: --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
Expand All @@ -501,7 +503,7 @@ jobs:
attempt_limit: 3
attempt_delay: 2000
- name: Checkout submodules
run: scripts/checkout_submodules.py --shallow --platform linux
run: scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform linux

- name: Bootstrap cache
uses: actions/cache@v3
Expand All @@ -513,7 +515,7 @@ jobs:
build_overrides/pigweed_environment.gni
- name: Bootstrap
timeout-minutes: 10
run: scripts/build/gn_bootstrap.sh
run: bash scripts/bootstrap.sh
- name: Uploading bootstrap logs
uses: actions/upload-artifact@v3
if: ${{ always() && !env.ACT }}
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/chef.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: connectedhomeip/chip-build:0.6.47
image: connectedhomeip/chip-build:0.7.0
options: --user root

steps:
Expand All @@ -43,7 +43,7 @@ jobs:
attempt_limit: 3
attempt_delay: 2000
- name: Checkout submodules
run: scripts/checkout_submodules.py --shallow --platform linux
run: scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform linux
- name: Bootstrap cache
uses: actions/cache@v3
timeout-minutes: 10
Expand All @@ -54,7 +54,7 @@ jobs:
build_overrides/pigweed_environment.gni
- name: Bootstrap
timeout-minutes: 10
run: scripts/build/gn_bootstrap.sh
run: bash scripts/bootstrap.sh
- name: CI Examples Linux
shell: bash
run: |
Expand All @@ -66,7 +66,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: connectedhomeip/chip-build-esp32:0.6.47
image: connectedhomeip/chip-build-esp32:0.7.0
options: --user root

steps:
Expand All @@ -79,7 +79,7 @@ jobs:
attempt_limit: 3
attempt_delay: 2000
- name: Checkout submodules
run: scripts/checkout_submodules.py --shallow --platform esp32
run: scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform esp32
- name: Bootstrap cache
uses: actions/cache@v3
timeout-minutes: 10
Expand All @@ -90,7 +90,7 @@ jobs:
build_overrides/pigweed_environment.gni
- name: Bootstrap
timeout-minutes: 10
run: scripts/build/gn_bootstrap.sh
run: bash scripts/bootstrap.sh
- name: CI Examples ESP32
shell: bash
run: |
Expand All @@ -102,7 +102,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: connectedhomeip/chip-build-nrf-platform:0.6.47
image: connectedhomeip/chip-build-nrf-platform:0.7.0
options: --user root

steps:
Expand All @@ -115,7 +115,7 @@ jobs:
attempt_limit: 3
attempt_delay: 2000
- name: Checkout submodules
run: scripts/checkout_submodules.py --shallow --platform nrfconnect
run: scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform nrfconnect
- name: Bootstrap cache
uses: actions/cache@v3
timeout-minutes: 10
Expand All @@ -126,7 +126,7 @@ jobs:
build_overrides/pigweed_environment.gni
- name: Bootstrap
timeout-minutes: 10
run: scripts/build/gn_bootstrap.sh
run: bash scripts/bootstrap.sh
- name: CI Examples NRFConnect
shell: bash
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/cirque.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
timeout-minutes: 90

env:
DOCKER_RUN_VERSION: 0.6.47
DOCKER_RUN_VERSION: 0.7.0
GITHUB_CACHE_PATH: /tmp/cirque-cache

runs-on: ubuntu-latest
Expand All @@ -39,7 +39,7 @@ jobs:
# need to run with privilege, which isn't supported by job.XXX.contaner
# https://github.com/actions/container-action/issues/2
# container:
# image: connectedhomeip/chip-build-cirque:0.6.47
# image: connectedhomeip/chip-build-cirque:0.7.0
# volumes:
# - "/tmp:/tmp"
# - "/dev/pts:/dev/pts"
Expand All @@ -58,7 +58,7 @@ jobs:
attempt_limit: 3
attempt_delay: 2000
- name: Checkout submodules
run: scripts/checkout_submodules.py --shallow --platform linux
run: scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform linux

- name: Bootstrap cache
uses: actions/cache@v3
Expand All @@ -75,7 +75,7 @@ jobs:
integrations/docker/images/chip-build-cirque/run.sh \
-- sh -c " \
git config --global --add safe.directory '*' \
&& scripts/build/gn_bootstrap.sh \
&& bash scripts/bootstrap.sh \
&& chown -R $(id -u):$(id -g) .environment \
"
Expand Down
17 changes: 15 additions & 2 deletions .github/workflows/darwin-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
attempt_limit: 3
attempt_delay: 2000
- name: Checkout submodules
run: scripts/checkout_submodules.py --shallow --platform darwin
run: scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform darwin
- name: Setup Environment
# coreutils for stdbuf
run: brew install coreutils
Expand All @@ -76,7 +76,7 @@ jobs:
build_overrides/pigweed_environment.gni
- name: Bootstrap
timeout-minutes: 25
run: scripts/build/gn_bootstrap.sh
run: bash scripts/bootstrap.sh
- name: Uploading bootstrap logs
uses: actions/upload-artifact@v3
if: ${{ always() && !env.ACT }}
Expand Down Expand Up @@ -121,6 +121,19 @@ jobs:
--tv-app ./out/darwin-x64-tv-app-${BUILD_VARIANT}/chip-tv-app \
--bridge-app ./out/darwin-x64-bridge-${BUILD_VARIANT}/chip-bridge-app \
"
- name: Run OTA Test
timeout-minutes: 5
run: |
./scripts/run_in_build_env.sh \
"./scripts/tests/run_darwin_framework_ota_test.py \
run \
--darwin-framework-tool ./out/darwin-x64-darwin-framework-tool-${BUILD_VARIANT}/darwin-framework-tool \
--ota-requestor-app ./out/darwin-x64-ota-requestor-${BUILD_VARIANT}/chip-ota-requestor-app \
--ota-data-file /tmp/rawImage \
--ota-image-file /tmp/otaImage \
--ota-destination-file /tmp/downloadedImage \
--ota-candidate-file /tmp/otaCandidateJSON \
"
- name: Uploading core files
uses: actions/upload-artifact@v3
if: ${{ failure() && !env.ACT }}
Expand Down
Loading

0 comments on commit ef61c70

Please sign in to comment.