onnxruntime/tools/ci_build/github/azure-pipelines/templates
Scott McKay ae211999dd
Attempt to make the usage of the Android emulator in CIs more robust (#17903)
### Description
<!-- Describe your changes. -->
Android emulator usage updates:
- Change approach to detecting boot has completed
- use `-delay-adb` and a simple command (`ls`) with `wait-for-device` as
the first step
    - this ensures enough startup has occurred for adb to be responsive
- use secondary loop on the python side to check for sys.boot_completed
to be set
- doing the check on the python side provides more feedback and seems to
work well
- make the 'stop' logic more precise by using psutil
- add internal timeout of 20 mins for emulator startup
  - waiting for the CI jobs overall timeout is way too long
- value is hardcoded for now (most CIs startup in under 10 mins) but
could be made configurable if needed

CI updates:
- add template for using the Android emulator
  - update CIs to use template
- reorder React Native CI
- minimize the time the Android emulator or iOS simulator is running by
moving some build steps around
  - don't run both at the same time
- unnecessary and potentially adds significant memory pressure to the
machine
- fix QNN Android emulator CI as much as possible
- now everything works apart from running onnx_test_runner with the QNN
EP

### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
Fix inconsistent detection of the emulator boot completing.

---------

Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
2023-10-15 08:42:36 +10:00
..
jobs Update onnx python package and setuptools (#17709) 2023-09-27 07:54:48 -07:00
stages Use name of temporary provisioning profile. (#17459) 2023-09-12 10:56:35 -07:00
android-binary-size-check-stage.yml Upgrade Centos7 to Alamlinux8 (#16907) 2023-08-29 21:05:36 -07:00
android-dump-logs-from-steps.yml
android-java-api-aar-test.yml Attempt to make the usage of the Android emulator in CIs more robust (#17903) 2023-10-15 08:42:36 +10:00
android-java-api-aar.yml Upgrade Centos7 to Alamlinux8 (#16907) 2023-08-29 21:05:36 -07:00
build-linux-wasm-step.yml
c-api-artifacts-package-and-publish-steps-posix.yml
c-api-artifacts-package-and-publish-steps-windows.yml [TensorRT EP] Refactor OrtTensorRTProviderOptions initialization and make it easy to add new field (#17617) 2023-10-06 14:12:20 -07:00
c-api-cpu.yml Revert the yaml file changes in "Nodejs_Packaging_CPU" build job (#17441) 2023-09-06 20:20:55 -07:00
c-api-linux-cpu.yml Remove dnf update from docker build scripts (#17551) 2023-09-21 07:33:29 -07:00
check-cache-stats.yml
clean-agent-build-directory-step.yml Build nuget pkg for ROCm (#16791) 2023-08-28 13:35:08 +08:00
common-variables.yml Update cmake to 3.27 and upgrade Linux CUDA docker files from CentOS7 to UBI8 (#16856) 2023-09-05 18:12:10 -07:00
compliance.yml Delete all Prefast tasks (#17522) 2023-09-12 17:40:49 -07:00
component-governance-component-detection-steps.yml Move DML build job's Prefast task to a CPU machine pool (#17192) 2023-08-17 13:16:29 -07:00
download-deps.yml ONNX 1.15 integration (#17125) 2023-09-26 14:44:48 -07:00
esrp_nuget.yml
explicitly-defined-final-tasks.yml
flex-downloadPipelineArtifact.yml Run Final_Jar_Testing_Linux_GPU in docker (#17533) 2023-09-15 08:35:55 -07:00
get-docker-image-steps.yml
install-appcenter.yml
java-api-artifacts-package-and-publish-steps-posix.yml
linux-build-step-with-cache.yml
linux-ci.yml Update nodejs to 18.x (#17657) 2023-09-25 14:12:11 -07:00
linux-cpu-packaging-pipeline.yml Update cmake to 3.27 and upgrade Linux CUDA docker files from CentOS7 to UBI8 (#16856) 2023-09-05 18:12:10 -07:00
linux-gpu-tensorrt-packaging-pipeline.yml Update cmake to 3.27 and upgrade Linux CUDA docker files from CentOS7 to UBI8 (#16856) 2023-09-05 18:12:10 -07:00
linux-wasm-ci.yml Update linux-wasm-ci.yml: remove the ln command (#17735) 2023-09-28 21:43:29 -07:00
linux-web-init-and-check.yml
mac-build-step-with-cache.yml
mac-cpu-packaging-pipeline.yml
mac-cpu-packaging-steps.yml
mac-cpu-packing-jobs.yml Update nodejs to 18.x (#17657) 2023-09-25 14:12:11 -07:00
mac-esrp-dylib.yml
nodejs-artifacts-package-and-publish-steps-posix.yml
nodejs-artifacts-package-and-publish-steps-windows.yml
ondevice-training-cpu-packaging-pipeline.yml
orttraining-linux-gpu-test-ci-pipeline.yml Updates to training pipelines (#17292) 2023-09-08 11:57:12 -07:00
publish-nuget.yml Build nuget pkg for ROCm (#16791) 2023-08-28 13:35:08 +08:00
py-linux-gpu.yml Update cmake to 3.27 and upgrade Linux CUDA docker files from CentOS7 to UBI8 (#16856) 2023-09-05 18:12:10 -07:00
py-linux.yml Update cmake to 3.27 and upgrade Linux CUDA docker files from CentOS7 to UBI8 (#16856) 2023-09-05 18:12:10 -07:00
py-package-smoking-test.yml Remove dnf update from docker build scripts (#17551) 2023-09-21 07:33:29 -07:00
py-packaging-linux-test-cpu.yml Remove dnf update from docker build scripts (#17551) 2023-09-21 07:33:29 -07:00
py-packaging-linux-test-cuda.yml Remove dnf update from docker build scripts (#17551) 2023-09-21 07:33:29 -07:00
py-packaging-selectable-stage.yml
py-packaging-stage.yml Include CoreML in mac os python packages (#17844) 2023-10-10 11:44:32 +10:00
py-packaging-training-cuda-stage.yml Update cmake to 3.27 and upgrade Linux CUDA docker files from CentOS7 to UBI8 (#16856) 2023-09-05 18:12:10 -07:00
py-win-gpu.yml Delete all Prefast tasks (#17522) 2023-09-12 17:40:49 -07:00
react-native-ci.yml Attempt to make the usage of the Android emulator in CIs more robust (#17903) 2023-10-15 08:42:36 +10:00
rocm.yml [ROCm] Add ROCm Debug wheels to private ADO Feeds (#17887) 2023-10-13 10:28:10 +08:00
run-docker-build-steps.yml
set-nightly-build-option-variable-step.yml
set-python-manylinux-variables-step.yml
set-version-number-variables-step.yml
telemetry-steps.yml
upload-code-coverage-data.yml
use-android-emulator.yml Attempt to make the usage of the Android emulator in CIs more robust (#17903) 2023-10-15 08:42:36 +10:00
use-android-ndk.yml Update NDK to 26.0.10792818 (#17852) 2023-10-12 14:08:43 -07:00
use-xcode-version.yml
validate-package.yml
web-browserstack-ci.yml Update nodejs to 18.x (#17657) 2023-09-25 14:12:11 -07:00
web-ci.yml Update nodejs to 18.x (#17657) 2023-09-25 14:12:11 -07:00
win-ci.yml Update nodejs to 18.x (#17657) 2023-09-25 14:12:11 -07:00
win-esrp-dll.yml
win-wasm-ci.yml Update nodejs to 18.x (#17657) 2023-09-25 14:12:11 -07:00
win-web-ci.yml [js/web] allow gpu IO binding tests to fail temporarily (#17892) 2023-10-11 21:21:21 -07:00
win-web-multi-browsers.yml Update nodejs to 18.x (#17657) 2023-09-25 14:12:11 -07:00
with-container-registry-steps.yml