-
Notifications
You must be signed in to change notification settings - Fork 651
Summary: Add MCU model verification to CI #13572
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -940,3 +940,42 @@ jobs: | |
build-mode: Release | ||
build-tool: cmake | ||
docker-image: ci-image:executorch-ubuntu-22.04-clang12 | ||
|
||
test-mcu-models: | ||
name: test-mcu-models | ||
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main | ||
strategy: | ||
matrix: | ||
include: | ||
- build-tool: cmake | ||
fail-fast: false | ||
permissions: | ||
id-token: write | ||
contents: read | ||
with: | ||
runner: linux.2xlarge | ||
docker-image: ci-image:executorch-ubuntu-22.04-arm-sdk | ||
submodules: 'recursive' | ||
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} | ||
timeout: 90 | ||
script: | | ||
BUILD_TOOL=${{ matrix.build-tool }} | ||
# The generic Linux job chooses to use base env, not the one setup by the image | ||
CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]") | ||
conda activate "${CONDA_ENV}" | ||
# Try to mirror these as closely as possible | ||
source .ci/scripts/utils.sh | ||
install_executorch "--use-pt-pinned-commit" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you need "--use-pt-pinned-commit"? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
No I don't think this is needed |
||
.ci/scripts/setup-arm-baremetal-tools.sh | ||
source examples/arm/ethos-u-scratch/setup_path.sh | ||
# Run selective Build | ||
chmod +x examples/selective_build/test_selective_build.sh | ||
examples/selective_build/test_selective_build.sh "${BUILD_TOOL}" | ||
# Run MCU models | ||
chmod +x examples/arm/run_mcu_models_fvp.sh | ||
examples/arm/run_mcu_models_fvp.sh --target=ethos-u85-128 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why do we need to have ethos targets for this script? just take cortex-m55, cortex-m85? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes this involves changing build_executor_runner.sh script (which the newly added 'run_mcu_models_fvp.sh' relies on). In the build_executor_runner.sh, it has something like this if [[ ${target} == "ethos-u55" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we support anything else?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont think we do, I was copy pasting this from other jobs. I will clean this up in the follow up pr