Skip to content
Closed
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
12 changes: 12 additions & 0 deletions .github/workflows/_test_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ on:
required: false
type: string
default: ci-image:executorch-ubuntu-22.04-clang12
pytest-workers:
description: |
pytest-xdist worker count. Defaults to the pod's CPU allowance, which
is right unless a suite needs more memory per worker than the label's
8GiB per core.
required: false
type: string
default: ''

jobs:
docker-image:
Expand Down Expand Up @@ -77,6 +85,10 @@ jobs:
script: |
set -eux

if [[ -n "${{ inputs.pytest-workers }}" ]]; then
export PYTEST_XDIST_AUTO_NUM_WORKERS="${{ inputs.pytest-workers }}"
fi

source .ci/scripts/test_backend.sh "${{ matrix.suite }}" "${{ matrix.flow }}" "${RUNNER_ARTIFACT_DIR}"

package-golden-artifacts:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test-backend-arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ jobs:
timeout: 120
run-linux: true
docker-image: ci-image:executorch-ubuntu-22.04-arm-sdk
# The Ethos-U flows run a Corstone FVP per worker and the failures each
# emit a Vela dump of a few hundred thousand lines, which killed the pod
# once `auto` stopped discounting hyperthreads: linux.4xlarge.memory gave
# 8 workers 16GiB each, the OSDC label gives 15 workers 7.7GiB each. 8
# keeps what the suite had.
pytest-workers: 8

test-arm-vgf:
uses: ./.github/workflows/_test_backend.yml
Expand Down
Loading