Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tizen] CI workflow for running QEMU-based tests #24871

Merged
merged 19 commits into from
Feb 28, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Tizen QEMU tests workflow
  • Loading branch information
arkq committed Feb 6, 2023
commit 0e81c052b1cd794a9a4559636cb08403dced10f0
49 changes: 47 additions & 2 deletions .github/workflows/qemu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ env:
CHIP_NO_LOG_TIMESTAMPS: true

jobs:
qemu:

qemu-esp32:
name: ESP32
timeout-minutes: 85

Expand All @@ -37,7 +38,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: connectedhomeip/chip-build-esp32-qemu:0.6.35
image: connectedhomeip/chip-build-esp32-qemu:0.6.39
volumes:
- "/tmp/log_output:/tmp/test_logs"

Expand Down Expand Up @@ -83,3 +84,47 @@ jobs:
with:
name: qemu-esp32-logs
path: /tmp/log_output

qemu-tizen:
name: Tizen

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

container:
image: connectedhomeip/chip-build-tizen-qemu:0.6.39
volumes:
- "/tmp/log_output:/tmp/test_logs"

steps:
- uses: Wandalen/wretry.action@v1.0.36
name: Checkout
with:
action: actions/checkout@v3
with: |
token: ${{ github.token }}
attempt_limit: 3
attempt_delay: 2000
- name: Checkout submodules
run: scripts/checkout_submodules.py --shallow --platform tizen

- name: Bootstrap
run: scripts/build/gn_bootstrap.sh

- name: Build Tizen examples used by QEMU test runner
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py \
--enable-flashbundle \
--target tizen-arm-chip-tool-no-ble \
--target tizen-arm-light-no-ble \
build
"

- name: Run tests
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py \
--target tizen-qemu-tests-no-ble \
build
"
5 changes: 5 additions & 0 deletions scripts/build/builders/tizen.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ def is_tpk(self):
"""If True, this app is a TPK."""
return isinstance(self.value, App)

@property
def is_test(self):
arkq marked this conversation as resolved.
Show resolved Hide resolved
"""If True, this app is a test driver."""
return isinstance(self.value, TestDriver)

@property
def package_name(self):
return self.manifest.get('package')
Expand Down