Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
40 changes: 1 addition & 39 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_dispatch:
inputs:
device_serial:
description: 'Android device serial'
description: 'Mobile device serial'
required: false

jobs:
Expand All @@ -20,41 +20,3 @@ jobs:
with:
os: ${{ matrix.os }}
device_serial: ${{ github.event.inputs.device_serial || 'emulator-5554' }}

# Optional: Run on a self-hosted runner with a real device
device-test-adb:
if: github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, '[device-test-adb]')
needs: ci-matrix
runs-on: self-hosted
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
pip install -e .

- name: Check ADB devices
run: adb devices

- name: Run minimal benchmark
env:
DEVICE_SERIAL: ${{ github.event.inputs.device_serial || 'emulator-5554' }}
run: |
ovmobilebench list-devices
# Uncomment when ready:
# ovmobilebench all -c experiments/android_example.yaml --dry-run

- name: Upload results
if: always()
uses: actions/upload-artifact@v4
with:
name: benchmark-results-adb
path: experiments/results/
retention-days: 30
41 changes: 41 additions & 0 deletions .github/workflows/reusable-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,44 @@ jobs:
name: benchmark-results-ssh-${{ inputs.os }}
path: experiments/results/
retention-days: 30

# Optional: Run on a self-hosted runner with a real device
device-test-adb:
# Only run if explicitly triggered and only once (not for each OS in matrix)
if: (github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, '[device-test-adb]')) && inputs.os == 'ubuntu-latest'
needs:
- build-package
- dry-run
runs-on: self-hosted
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
pip install -e .

- name: Check ADB devices
run: adb devices

- name: Run minimal benchmark
env:
DEVICE_SERIAL: ${{ inputs.device_serial }}
run: |
ovmobilebench list-devices
# Uncomment when ready:
# ovmobilebench all -c experiments/android_example.yaml --dry-run

- name: Upload results
if: always()
uses: actions/upload-artifact@v4
with:
name: benchmark-results-adb-${{ inputs.os }}
path: experiments/results/
retention-days: 30
Loading