Skip to content

Commit

Permalink
Adding agreed upon timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
woody-apple authored and pull[bot] committed Aug 25, 2021
1 parent 4cf7f65 commit 1038376
Show file tree
Hide file tree
Showing 14 changed files with 70 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ on:
jobs:
android:
name: Build Android
timeout-minutes: 60

strategy:
matrix:
type: [arm, arm64, x64]
Expand All @@ -44,11 +46,14 @@ jobs:
with:
submodules: true
- name: Bootstrap
timeout-minutes: 3
run: scripts/build/gn_bootstrap.sh
- name: Build libs
timeout-minutes: 2
run: |
./scripts/examples/android_app.sh
- name: Build App
timeout-minutes: 5
run: |
yes | "$ANDROID_HOME"/tools/bin/sdkmanager --licenses
cd src/android/CHIPTool
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ on:
jobs:
build:
name: Build
timeout-minutes: 60

strategy:
matrix:
Expand Down Expand Up @@ -50,6 +51,7 @@ jobs:
languages: "cpp"

- name: Bootstrap
timeout-minutes: 3
run: scripts/build/gn_bootstrap.sh
- name: Setup Build
run: |
Expand All @@ -64,8 +66,10 @@ jobs:
scripts/build/gn_gen.sh --args="$GN_ARGS"
- name: Run Build
timeout-minutes: 10
run: scripts/build/gn_build.sh
- name: Run Tests
timeout-minutes: 2
run: scripts/tests/gn_tests.sh
# TODO Log Upload https://github.com/project-chip/connectedhomeip/issues/2227
# TODO https://github.com/project-chip/connectedhomeip/issues/1512
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/cirque.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ on: workflow_dispatch
jobs:
cirque:
name: Cirque

timeout-minutes: 60

env:
DOCKER_RUN_VERSION: 0.4.21
GITHUB_CACHE_PATH: /tmp/cirque-cache/
Expand Down Expand Up @@ -58,6 +59,7 @@ jobs:
key: ${{ runner.os }}-cirque-${{ steps.cirque-key.outputs.val }}

- name: Bootstrap
timeout-minutes: 10
run: |
integrations/docker/images/chip-build-cirque/run.sh \
--env GITHUB_ACTION_RUN=1 \
Expand All @@ -72,6 +74,7 @@ jobs:
if_true: "${{ github.sha }}"
if_false: "pull-${{ github.event.pull_request.number }}"
- name: Run Tests
timeout-minutes: 15
run: |
integrations/docker/images/chip-build-cirque/run.sh \
--env LOG_DIR=/tmp/cirque_test_output \
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ on:
pull_request:

jobs:
darwin_build:
name: Build
darwin:
name: Build Darwin
timeout-minutes: 60

runs-on: macos-latest

Expand All @@ -40,12 +41,14 @@ jobs:
OPEN_SSL_VERSION=`ls -la /usr/local/Cellar/[email protected] | cat | tail -n1 | awk '{print $NF}'`
ln -s /usr/local/Cellar/[email protected]/$OPEN_SSL_VERSION/lib/pkgconfig/* .
- name: Run iOS Build
timeout-minutes: 5
working-directory: src/darwin/Framework
run: xcodebuild -target "CHIP" -sdk iphoneos
- name: Clean Build
run: xcodebuild clean
working-directory: src/darwin/Framework
- name: Run macOS Build
timeout-minutes: 5
# Enable -Werror by hand here, because the Xcode config can't
# enable it for various reasons. Keep whatever Xcode settings
# for OTHER_CFLAGS exist by using ${inherited}.
Expand All @@ -68,11 +71,14 @@ jobs:
run: xcodebuild clean
working-directory: src/darwin/Framework
- name: Bootstrap
timeout-minutes: 3
run: scripts/build/gn_bootstrap.sh
- name: Run Build Test Server
timeout-minutes: 5
run: |
scripts/examples/gn_build_example.sh examples/all-clusters-app/linux out/debug chip_config_network_layer_ble=false
- name: Run Tests
timeout-minutes: 5
run: |
../../../out/debug/chip-all-clusters-app &
xcodebuild test -target "CHIP" -scheme "CHIP Framework Tests" -sdk macosx
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/doxygen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ on:
jobs:
doxygen:
name: Build Doxygen
timeout-minutes: 5

runs-on: ubuntu-20.04
if: github.actor != 'restyled-io[bot]'

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/examples-efr32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ on:
jobs:
efr32:
name: EFR32
timeout-minutes: 60

env:
EFR32_BOARD: BRD4161A
BUILD_TYPE: gn_efr32
Expand All @@ -45,19 +47,23 @@ jobs:
# with:
# languages: "cpp, python"
- name: Build example EFR32 Lock App for BRD4161A
timeout-minutes: 5
run:
scripts/examples/gn_efr32_example.sh examples/lock-app/efr32/
out/lock_app_debug BRD4161A
- name: Build example EFR32 Lighting App for BRD4161A
timeout-minutes: 5
run:
scripts/examples/gn_efr32_example.sh
examples/lighting-app/efr32/ out/lighting_app_debug BRD4161A
- name: Build example EFR32 Lighting App for BRD4161A with RPCs
timeout-minutes: 5
run:
scripts/examples/gn_efr32_example.sh
examples/lighting-app/efr32/ out/lighting_app_debug_rpc BRD4161A
-args='import("//with_pw_rpc.gni")'
- name: Build example EFR32 Window Covering for BRD4161A
timeout-minutes: 5
run:
scripts/examples/gn_efr32_example.sh examples/window-app/efr32/
out/window_app_debug BRD4161A
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/examples-esp32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
# TODO ESP32 https://github.com/project-chip/connectedhomeip/issues/1510
esp32:
name: ESP32
timeout-minutes: 60

env:
BUILD_TYPE: esp32
Expand All @@ -47,13 +48,15 @@ jobs:
# with:
# languages: "cpp, python"
- name: Build example All Clusters App
timeout-minutes: 15
run: scripts/examples/esp_example.sh all-clusters-app
- name: Copy aside build products
run: |
mkdir -p example_binaries/$BUILD_TYPE-build
cp examples/all-clusters-app/esp32/build/chip-all-clusters-app.elf \
example_binaries/$BUILD_TYPE-build/chip-all-clusters-app.elf
- name: Build example Pigweed App
timeout-minutes: 5
run: scripts/examples/esp_example.sh pigweed-app
- name: Copy aside build products
run: |
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/examples-k32w.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ on:
jobs:
k32w:
name: K32W
timeout-minutes: 60

env:
BUILD_TYPE: gn_k32w

Expand All @@ -45,9 +47,11 @@ jobs:
# languages: "cpp"
# queries: +security-and-quality
- name: Build example K32W Lock App
timeout-minutes: 5
run: scripts/examples/k32w_example.sh
examples/lock-app/k32w out/lock_app_debug
- name: Build example K32W Lighting App
timeout-minutes: 5
run: scripts/examples/k32w_example.sh
examples/lighting-app/k32w out/lighting_app_debug
- name: Binary artifact suffix
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/examples-linux-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ on:
jobs:
linux_standalone:
name: Linux Standalone
timeout-minutes: 60

env:
BUILD_TYPE: gn_linux
Expand All @@ -46,24 +47,30 @@ jobs:
# with:
# languages: "cpp, python"
- name: Bootstrap
timeout-minutes: 3
run: scripts/build/gn_bootstrap.sh
- name: Build example Standalone Echo Client
timeout-minutes: 5
run:
scripts/examples/gn_build_example.sh examples/chip-tool
out/chip_tool_debug
- name: Build example Standalone Shell
timeout-minutes: 5
run:
scripts/examples/gn_build_example.sh examples/shell/standalone
out/shell_debug
- name: Build example Standalone All Clusters Server
timeout-minutes: 5
run:
scripts/examples/gn_build_example.sh examples/all-clusters-app/linux
out/all_clusters_debug chip_bypass_rendezvous=true
- name: Build example lighting app with RPCs
timeout-minutes: 5
run:
scripts/examples/gn_build_example.sh examples/lighting-app/linux
out/lighting_app_debug_rpc 'import("//with_pw_rpc.gni")'
- name: Build example Standalone Bridge
timeout-minutes: 5
run:
scripts/examples/gn_build_example.sh examples/bridge-app/linux out/bridge_debug
- name: Binary artifact suffix
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/examples-nrfconnect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ on:
jobs:
nrfconnect:
name: nRF Connect SDK
timeout-minutes: 60

env:
BUILD_TYPE: nrfconnect

Expand All @@ -41,6 +43,7 @@ jobs:
fetch-depth: 0
submodules: true
- name: Update nRF Connect SDK revision to the currently recommended.
timeout-minutes: 5
run: scripts/run_in_build_env.sh "python3 scripts/setup/nrfconnect/update_ncs.py --update"
# https://github.com/project-chip/connectedhomeip/issues/3100
# - name: Initialize CodeQL
Expand All @@ -49,22 +52,31 @@ jobs:
# languages: "cpp, python"
# queries: +security-and-quality
- name: Build example nRF Connect SDK Lock App on nRF52840 DK
timeout-minutes: 5
run: scripts/examples/nrfconnect_example.sh lock-app nrf52840dk_nrf52840
- name: Build example nRF Connect SDK Lighting App on nRF52840 DK
timeout-minutes: 5
run: scripts/examples/nrfconnect_example.sh lighting-app nrf52840dk_nrf52840
- name: Build example nRF Connect SDK Lighting App on nRF52840 DK with RPC
timeout-minutes: 5
run: scripts/examples/nrfconnect_example.sh lighting-app nrf52840dk_nrf52840 -DOVERLAY_CONFIG=rpc.overlay
- name: Build example nRF Connect SDK Shell on nRF52840 DK
timeout-minutes: 5
run: scripts/examples/nrfconnect_example.sh shell nrf52840dk_nrf52840
- name: Build example nRF Connect SDK Pigweed on nRF52840 DK
timeout-minutes: 5
run: scripts/examples/nrfconnect_example.sh pigweed-app nrf52840dk_nrf52840
- name: Build example nRF Connect SDK Lock App on nRF5340 DK
timeout-minutes: 5
run: scripts/examples/nrfconnect_example.sh lock-app nrf5340dk_nrf5340_cpuapp
- name: Build example nRF Connect SDK Lighting App on nRF5340 DK
timeout-minutes: 5
run: scripts/examples/nrfconnect_example.sh lighting-app nrf5340dk_nrf5340_cpuapp
- name: Build example nRF Connect SDK Shell on nRF5340 DK
timeout-minutes: 5
run: scripts/examples/nrfconnect_example.sh shell nrf5340dk_nrf5340_cpuapp
- name: Run unit tests for Zephyr native_posix_64 platform
timeout-minutes: 5
run:
scripts/run_in_build_env.sh "scripts/tests/nrfconnect_native_posix_tests.sh native_posix_64"
- name: Copy aside build products
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/examples-qpg6100.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ on:
jobs:
qpg6100:
name: QPG6100
timeout-minutes: 60

env:
BUILD_TYPE: gn_qpg6100

Expand All @@ -44,9 +46,11 @@ jobs:
# with:
# languages: "cpp"
- name: Build example QPG6100 Lock App
timeout-minutes: 5
run: scripts/examples/gn_build_example.sh
examples/lock-app/qpg6100 out/lock_app_debug
- name: Build example QPG6100 Lighting App
timeout-minutes: 5
run: scripts/examples/gn_build_example.sh
examples/lighting-app/qpg6100 out/lighting_app_debug
- name: Binary artifact suffix
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/qemu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ on:
jobs:
qemu:
name: ESP32
timeout-minutes: 60

env:
BUILD_TYPE: esp32-qemu
Expand All @@ -39,8 +40,10 @@ jobs:
with:
submodules: true
- name: Build example All Clusters App
timeout-minutes: 15
run: scripts/examples/esp_example.sh all-clusters-app
- name: Build ESP32 QEMU and Run Tests
timeout-minutes: 15
run: scripts/tests/esp32_qemu_tests.sh /tmp/test_logs
- name: Uploading Logs
uses: actions/upload-artifact@v1
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/unit_integration_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ on:
jobs:
unit_tests:
name: Unit / Interation Tests
timeout-minutes: 60

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

strategy:
Expand All @@ -45,6 +47,7 @@ jobs:
with:
submodules: true
- name: Bootstrap
timeout-minutes: 3
run: |
mkdir -p /tmp/happy_test_logs ;
mkdir -p /tmp/log_output ;
Expand All @@ -69,8 +72,10 @@ jobs:
scripts/build/gn_gen.sh --args="$GN_ARGS chip_enable_happy_tests=true"
- name: Run Build
timeout-minutes: 5
run: scripts/build/gn_build.sh
- name: Run Tests
timeout-minutes: 5
run: RUN_HAPPY_TESTS=1 scripts/tests/gn_tests.sh
- name: Uploading Happy Test Log
uses: actions/upload-artifact@v1
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/zap_templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ on:
jobs:
zap_templates:
name: ZAP templates generation
timeout-minutes: 60

runs-on: ubuntu-18.04
if: github.actor != 'restyled-io[bot]'
Expand All @@ -38,13 +39,15 @@ jobs:
- run: sudo apt-get update
- run: sudo apt-get install --fix-missing libpixman-1-dev libcairo-dev libsdl-pango-dev libjpeg-dev libgif-dev
- name: Setup ZAP
timeout-minutes: 5
run: |
cd third_party/zap/repo/
npm ci
npm run version-stamp
npm rebuild canvas --update-binary
npm run build-spa
- name: Generate all
timeout-minutes: 5
run: scripts/tools/zap_regen_all.py
- name: Check for uncommited changes
run: |
Expand Down

0 comments on commit 1038376

Please sign in to comment.