Skip to content

Fail the benchmark job if the export step fails #8786

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

Merged
merged 3 commits into from
Feb 28, 2025
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
4 changes: 2 additions & 2 deletions .github/workflows/android-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
description: Models to be benchmarked
required: false
type: string
default: stories110M
default: llama
devices:
description: Target devices to run benchmark
required: false
Expand All @@ -36,7 +36,7 @@ on:
description: Models to be benchmarked
required: false
type: string
default: stories110M
default: llama
devices:
description: Target devices to run benchmark
required: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/apple-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
description: Models to be benchmarked
required: false
type: string
default: stories110M
default: llama
devices:
description: Target devices to run benchmark
required: false
Expand All @@ -36,7 +36,7 @@ on:
description: Models to be benchmarked
required: false
type: string
default: stories110M
default: llama
devices:
description: Target devices to run benchmark
required: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ phases:

test:
commands:
# Fail the test if the model doesn't exist, doing it here so that AWS can report the status back
- echo "Verify model"
- curl -I --fail '{{ model_path }}' || false

# By default, the following ADB command is used by Device Farm to run your Instrumentation test.
# Please refer to Android's documentation for more options on running instrumentation tests with adb:
# https://developer.android.com/studio/test/command-line#run-tests-with-adb
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ phases:
# The test phase includes commands that run your test suite execution.
test:
commands:
# Fail the test if the model doesn't exist, doing it here so that AWS can report the status back
- echo "Verify model"
- curl -I --fail '{{ model_path }}' || false

# Run the benchmark
- xcodebuild test-without-building -destination id=$DEVICEFARM_DEVICE_UDID -xctestrun $DEVICEFARM_TEST_PACKAGE_PATH/*.xctestrun -derivedDataPath $DEVICEFARM_LOG_DIR

# The post test phase includes are commands that are run after your tests are executed.
Expand Down
Loading