-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,864 changed files
with
514,211 additions
and
261,667 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ jobs: | |
- uses: Wandalen/[email protected] | ||
name: Checkout | ||
with: | ||
action: actions/checkout@v3 | ||
action: actions/checkout@v3.5.2 | ||
with: | | ||
token: ${{ github.token }} | ||
attempt_limit: 3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,7 +56,7 @@ jobs: | |
- uses: Wandalen/[email protected] | ||
name: Checkout | ||
with: | ||
action: actions/checkout@v3 | ||
action: actions/checkout@v3.5.2 | ||
with: | | ||
token: ${{ github.token }} | ||
attempt_limit: 3 | ||
|
@@ -168,7 +168,7 @@ jobs: | |
- uses: Wandalen/[email protected] | ||
name: Checkout | ||
with: | ||
action: actions/checkout@v3 | ||
action: actions/checkout@v3.5.2 | ||
with: | | ||
token: ${{ github.token }} | ||
attempt_limit: 3 | ||
|
@@ -242,7 +242,7 @@ jobs: | |
run: | | ||
./scripts/run_in_build_env.sh "./scripts/run_codegen_targets.sh out/sanitizers" | ||
- name: Clang-tidy validation | ||
timeout-minutes: 45 | ||
timeout-minutes: 60 | ||
run: | | ||
./scripts/run_in_build_env.sh \ | ||
"./scripts/run-clang-tidy-on-compile-commands.py \ | ||
|
@@ -340,7 +340,7 @@ jobs: | |
- uses: Wandalen/[email protected] | ||
name: Checkout | ||
with: | ||
action: actions/checkout@v3 | ||
action: actions/checkout@v3.5.2 | ||
with: | | ||
token: ${{ github.token }} | ||
attempt_limit: 3 | ||
|
@@ -391,7 +391,7 @@ jobs: | |
- uses: Wandalen/[email protected] | ||
name: Checkout | ||
with: | ||
action: actions/checkout@v3 | ||
action: actions/checkout@v3.5.2 | ||
with: | | ||
token: ${{ github.token }} | ||
attempt_limit: 3 | ||
|
@@ -462,7 +462,7 @@ jobs: | |
run: | | ||
./scripts/run_in_build_env.sh "./scripts/run_codegen_targets.sh out/default" | ||
- name: Clang-tidy validation | ||
timeout-minutes: 45 | ||
timeout-minutes: 60 | ||
run: | | ||
./scripts/run_in_build_env.sh \ | ||
"./scripts/run-clang-tidy-on-compile-commands.py \ | ||
|
@@ -499,7 +499,7 @@ jobs: | |
- uses: Wandalen/[email protected] | ||
name: Checkout | ||
with: | ||
action: actions/checkout@v3 | ||
action: actions/checkout@v3.5.2 | ||
with: | | ||
token: ${{ github.token }} | ||
attempt_limit: 3 | ||
|
@@ -528,5 +528,5 @@ jobs: | |
.environment/pigweed-venv/*.log | ||
- name: Run Build Coverage | ||
timeout-minutes: 20 | ||
timeout-minutes: 30 | ||
run: ./scripts/build_coverage.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,14 +35,14 @@ jobs: | |
if: github.actor != 'restyled-io[bot]' | ||
|
||
container: | ||
image: connectedhomeip/chip-build:0.7.3 | ||
image: connectedhomeip/chip-build:0.7.16 | ||
options: --user root | ||
|
||
steps: | ||
- uses: Wandalen/[email protected] | ||
name: Checkout | ||
with: | ||
action: actions/checkout@v3 | ||
action: actions/checkout@v3.5.2 | ||
with: | | ||
token: ${{ github.token }} | ||
attempt_limit: 3 | ||
|
@@ -71,14 +71,14 @@ jobs: | |
if: github.actor != 'restyled-io[bot]' | ||
|
||
container: | ||
image: connectedhomeip/chip-build-esp32:0.7.3 | ||
image: connectedhomeip/chip-build-esp32:0.7.16 | ||
options: --user root | ||
|
||
steps: | ||
- uses: Wandalen/[email protected] | ||
name: Checkout | ||
with: | ||
action: actions/checkout@v3 | ||
action: actions/checkout@v3.5.2 | ||
with: | | ||
token: ${{ github.token }} | ||
attempt_limit: 3 | ||
|
@@ -107,14 +107,14 @@ jobs: | |
if: github.actor != 'restyled-io[bot]' | ||
|
||
container: | ||
image: connectedhomeip/chip-build-nrf-platform:0.7.3 | ||
image: connectedhomeip/chip-build-nrf-platform:0.7.16 | ||
options: --user root | ||
|
||
steps: | ||
- uses: Wandalen/[email protected] | ||
name: Checkout | ||
with: | ||
action: actions/checkout@v3 | ||
action: actions/checkout@v3.5.2 | ||
with: | | ||
token: ${{ github.token }} | ||
attempt_limit: 3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,7 @@ jobs: | |
- uses: Wandalen/[email protected] | ||
name: Checkout | ||
with: | ||
action: actions/checkout@v3 | ||
action: actions/checkout@v3.5.2 | ||
with: | | ||
token: ${{ github.token }} | ||
attempt_limit: 3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,7 @@ jobs: | |
- uses: Wandalen/[email protected] | ||
name: Checkout | ||
with: | ||
action: actions/checkout@v3 | ||
action: actions/checkout@v3.5.2 | ||
with: | | ||
token: ${{ github.token }} | ||
attempt_limit: 3 | ||
|
@@ -92,7 +92,7 @@ jobs: | |
run: defaults delete com.apple.dt.xctest.tool | ||
continue-on-error: true | ||
- name: Build Apps | ||
timeout-minutes: 75 | ||
timeout-minutes: 90 | ||
run: | | ||
./scripts/run_in_build_env.sh \ | ||
"./scripts/build/build_examples.py \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ jobs: | |
- uses: Wandalen/[email protected] | ||
name: Checkout | ||
with: | ||
action: actions/checkout@v3 | ||
action: actions/checkout@v3.5.2 | ||
with: | | ||
token: ${{ github.token }} | ||
attempt_limit: 3 | ||
|
@@ -136,23 +136,26 @@ jobs: | |
run: defaults delete com.apple.dt.xctest.tool | ||
continue-on-error: true | ||
- name: Run Framework Tests | ||
timeout-minutes: 20 | ||
timeout-minutes: 30 | ||
# For now disable unguarded-availability-new warnings because we | ||
# internally use APIs that we are annotating as only available on | ||
# new enough versions. Maybe we should change out deployment | ||
# target versions instead? | ||
run: | | ||
mkdir -p /tmp/darwin/framework-tests | ||
../../../out/debug/chip-all-clusters-app --interface-id -1 > >(tee /tmp/darwin/framework-tests/all-cluster-app.log) 2> >(tee /tmp/darwin/framework-tests/all-cluster-app-err.log >&2) & | ||
# Make each ota-requestor is using a different port, discriminator, and KVS from | ||
# Make sure each ota-requestor is using a different port, discriminator, and KVS from | ||
# all-clusters-app and from other requestors. | ||
# | ||
# And a different port from the test harness too; the test harness uses port 5541. | ||
../../../out/debug/chip-ota-requestor-app --interface-id -1 --secured-device-port 5542 --discriminator 1111 --KVS /tmp/chip-ota-requestor-kvs1 --otaDownloadPath /tmp/chip-ota-requestor-downloaded-image1 --autoApplyImage > >(tee /tmp/darwin/framework-tests/ota-requestor-app-1.log) 2> >(tee /tmp/darwin/framework-tests/ota-requestor-app-err-1.log >&2) & | ||
../../../out/debug/chip-ota-requestor-app --interface-id -1 --secured-device-port 5543 --discriminator 1112 --KVS /tmp/chip-ota-requestor-kvs2 --otaDownloadPath /tmp/chip-ota-requestor-downloaded-image2 --autoApplyImage > >(tee /tmp/darwin/framework-tests/ota-requestor-app-2.log) 2> >(tee /tmp/darwin/framework-tests/ota-requestor-app-err-2.log >&2) & | ||
# UndefinedBehaviorSanitizer is enabled in the Xcode scheme, so the code in Matter.framework gets instrumented, | ||
# -enableUndefinedBehaviorSanitizer instruments the code in Matter.framework, | ||
# but to instrument the code in the underlying libCHIP we need to pass CHIP_IS_UBSAN=YES | ||
xcodebuild test -target "Matter" -scheme "Matter Framework Tests" -sdk macosx OTHER_CFLAGS='${inherited} -Werror -Wconversion -Wno-incomplete-umbrella -Wno-unguarded-availability-new' CHIP_IS_UBSAN=YES > >(tee /tmp/darwin/framework-tests/darwin-tests.log) 2> >(tee /tmp/darwin/framework-tests/darwin-tests-err.log >&2) | ||
TEST_RUNNER_ASAN_OPTIONS=__CURRENT_VALUE__:detect_stack_use_after_return=1 xcodebuild test -target "Matter" -scheme "Matter Framework Tests" -sdk macosx -enableAddressSanitizer YES -enableUndefinedBehaviorSanitizer YES OTHER_CFLAGS='${inherited} -Werror -Wconversion -Wno-incomplete-umbrella -Wno-unguarded-availability-new' CHIP_IS_UBSAN=YES > >(tee /tmp/darwin/framework-tests/darwin-tests-asan.log) 2> >(tee /tmp/darwin/framework-tests/darwin-tests-asan-err.log >&2) | ||
# -enableThreadSanitizer instruments the code in Matter.framework, | ||
# but to instrument the code in the underlying libCHIP we need to pass CHIP_IS_TSAN=YES | ||
xcodebuild test -target "Matter" -scheme "Matter Framework Tests" -sdk macosx -enableThreadSanitizer YES OTHER_CFLAGS='${inherited} -Werror -Wconversion -Wno-incomplete-umbrella -Wno-unguarded-availability-new' CHIP_IS_TSAN=YES > >(tee /tmp/darwin/framework-tests/darwin-tests-tsan.log) 2> >(tee /tmp/darwin/framework-tests/darwin-tests-tsan-err.log >&2) | ||
working-directory: src/darwin/Framework | ||
- name: Uploading log files | ||
uses: actions/upload-artifact@v3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,7 +62,7 @@ jobs: | |
- uses: Wandalen/[email protected] | ||
name: Checkout | ||
with: | ||
action: actions/checkout@v3 | ||
action: actions/checkout@v3.5.2 | ||
with: | | ||
token: ${{ github.token }} | ||
attempt_limit: 3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,7 @@ jobs: | |
- uses: Wandalen/[email protected] | ||
name: Checkout | ||
with: | ||
action: actions/checkout@v3 | ||
action: actions/checkout@v3.5.2 | ||
with: | | ||
token: ${{ github.token }} | ||
attempt_limit: 3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# Copyright (c) 2023 Project CHIP Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
name: Build example - ASR | ||
|
||
on: | ||
push: | ||
pull_request: | ||
merge_group: | ||
|
||
concurrency: | ||
group: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
CHIP_NO_LOG_TIMESTAMPS: true | ||
# XXX: Workaround for https://github.com/actions/cache/issues/1141 | ||
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 | ||
|
||
jobs: | ||
asr: | ||
name: ASR | ||
|
||
runs-on: ubuntu-latest | ||
if: github.actor != 'restyled-io[bot]' | ||
|
||
container: | ||
image: connectedhomeip/chip-build-asr:0.7.14 | ||
options: --user root | ||
|
||
steps: | ||
- uses: Wandalen/[email protected] | ||
name: Checkout | ||
with: | ||
action: actions/[email protected] | ||
with: | | ||
token: ${{ github.token }} | ||
attempt_limit: 3 | ||
attempt_delay: 2000 | ||
- name: Checkout submodules | ||
run: scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform asr | ||
- name: Bootstrap cache | ||
uses: actions/cache@v3 | ||
timeout-minutes: 10 | ||
with: | ||
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} | ||
path: | | ||
.environment | ||
build_overrides/pigweed_environment.gni | ||
- name: Bootstrap | ||
run: bash scripts/bootstrap.sh | ||
- name: Build all ASR582X examples | ||
run: | | ||
./scripts/run_in_build_env.sh \ | ||
"./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-ota-requestor \ | ||
--target asr-asr582x-bridge \ | ||
--target asr-asr582x-temperature-measurement \ | ||
--target asr-asr582x-thermostat \ | ||
build \ | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,7 @@ jobs: | |
- uses: Wandalen/[email protected] | ||
name: Checkout | ||
with: | ||
action: actions/checkout@v3 | ||
action: actions/checkout@v3.5.2 | ||
with: | | ||
token: ${{ github.token }} | ||
attempt_limit: 3 | ||
|
Oops, something went wrong.