onnxruntime/tools/ci_build/github/azure-pipelines
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
..
nodejs/templates
nuget/templates Move compliance check before publishing pipeline artifact (#17857) 2023-10-12 15:48:04 +08:00
templates Attempt to make the usage of the Android emulator in CIs more robust (#17903) 2023-10-15 08:42:36 +10:00
triggers Pr trggiers generated by code (#17247) 2023-08-30 05:57:03 +08:00
android-arm64-v8a-QNN-crosscompile-ci-pipeline.yml Attempt to make the usage of the Android emulator in CIs more robust (#17903) 2023-10-15 08:42:36 +10:00
android-x86_64-crosscompile-ci-pipeline.yml Attempt to make the usage of the Android emulator in CIs more robust (#17903) 2023-10-15 08:42:36 +10:00
binary-size-checks-pipeline.yml
build-perf-test-binaries-pipeline.yml
c-api-noopenmp-packaging-pipelines.yml Run Final_Jar_Testing_Linux_GPU in docker (#17533) 2023-09-15 08:35:55 -07:00
clean-build-docker-image-cache-pipeline.yml
linux-ci-pipeline.yml Update nodejs to 18.x (#17657) 2023-09-25 14:12:11 -07:00
linux-cpu-aten-pipeline.yml Update nodejs to 18.x (#17657) 2023-09-25 14:12:11 -07:00
linux-cpu-eager-pipeline.yml Pr trggiers generated by code (#17247) 2023-08-30 05:57:03 +08:00
linux-cpu-minimal-build-ci-pipeline.yml Refine build script for adding disable selected data types option (#17284) 2023-08-31 13:32:55 -07:00
linux-dnnl-ci-pipeline.yml Upgrade Centos7 to Alamlinux8 (#16907) 2023-08-29 21:05:36 -07:00
linux-gpu-ci-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-ci-pipeline.yml Fix Bug: Step failed but not exited with error (#17442) 2023-09-07 14:33:31 +08:00
linux-gpu-tensorrt-daily-perf-pipeline.yml
linux-migraphx-ci-pipeline.yml [ROCm] Update ROCm and MIGraphX CI to ROCm5.7 (#17834) 2023-10-09 10:29:11 +08:00
linux-multi-gpu-tensorrt-ci-pipeline.yml Update nodejs to 18.x (#17657) 2023-09-25 14:12:11 -07:00
linux-openvino-ci-pipeline.yml Update nodejs to 18.x (#17657) 2023-09-25 14:12:11 -07:00
linux-qnn-ci-pipeline.yml [QNN EP] Qnn cache improvement (#17757) 2023-10-06 15:56:33 -07:00
mac-ci-pipeline.yml Pr trggiers generated by code (#17247) 2023-08-30 05:57:03 +08:00
mac-coreml-ci-pipeline.yml Pr trggiers generated by code (#17247) 2023-08-30 05:57:03 +08:00
mac-ios-ci-pipeline.yml Update C/C++ dependencies: abseil, date, nsync, googletest, wil, mp11, cpuinfo and safeint (#15470) 2023-09-08 13:35:04 -07:00
mac-ios-packaging-pipeline.yml Remove swift files on ORT main repo (#17799) 2023-10-05 15:27:15 -07:00
mac-objc-static-analysis-ci-pipeline.yml
mac-react-native-ci-pipeline.yml Pr trggiers generated by code (#17247) 2023-08-30 05:57:03 +08:00
npm-packaging-pipeline.yml Change how "NPM packaging pipeline" downloads packages from another pipeline (#17838) 2023-10-11 21:07:27 -07:00
orttraining-linux-ci-pipeline.yml Update nodejs to 18.x (#17657) 2023-09-25 14:12:11 -07:00
orttraining-linux-gpu-ci-pipeline.yml Update nodejs to 18.x (#17657) 2023-09-25 14:12:11 -07:00
orttraining-linux-gpu-ortmodule-distributed-test-ci-pipeline.yml ONNX-Native Tensor Parallel: Using Distributed MatMul as Example (#17695) 2023-10-05 14:22:25 -07:00
orttraining-linux-nightly-ortmodule-test-pipeline.yml update acpt image for the training ci nightly (#17521) 2023-09-12 22:32:20 -07:00
orttraining-mac-ci-pipeline.yml Pr trggiers generated by code (#17247) 2023-08-30 05:57:03 +08:00
orttraining-pai-ci-pipeline.yml [ROCm] Update ROCm and MIGraphX CI to ROCm5.7 (#17834) 2023-10-09 10:29:11 +08:00
orttraining-py-packaging-pipeline-cpu.yml Upgrade Centos7 to Alamlinux8 (#16907) 2023-08-29 21:05:36 -07:00
orttraining-py-packaging-pipeline-cuda.yml Updates to training pipelines (#17292) 2023-09-08 11:57:12 -07:00
orttraining-py-packaging-pipeline-rocm.yml [ROCm] Add ROCm Debug wheels to private ADO Feeds (#17887) 2023-10-13 10:28:10 +08:00
post-merge-jobs.yml Add test for iOS dynamic framework (#17790) 2023-10-05 11:18:51 -07:00
py-package-build-pipeline.yml
py-package-test-pipeline.yml Remove dnf update from docker build scripts (#17551) 2023-09-21 07:33:29 -07:00
py-packaging-pipeline.yml
qnn-ep-nuget-packaging-pipeline.yml [QNN EP] Update QNN SDK to version 2.14.1 (#17467) 2023-09-11 21:07:50 -07:00
web-ci-pipeline.yml [web] a few updates to web pipeline (#17485) 2023-09-11 11:43:42 -07:00
win-ci-fuzz-testing.yml Update nodejs to 18.x (#17657) 2023-09-25 14:12:11 -07:00
win-ci-pipeline.yml Delete all Prefast tasks (#17522) 2023-09-12 17:40:49 -07:00
win-gpu-ci-pipeline.yml Delete all Prefast tasks (#17522) 2023-09-12 17:40:49 -07:00
win-gpu-reduce-op-ci-pipeline.yml
win-gpu-tensorrt-ci-pipeline.yml Pr trggiers generated by code (#17247) 2023-08-30 05:57:03 +08:00
win-qnn-arm64-ci-pipeline.yml [QNN EP] Update QNN SDK to version 2.14.1 (#17467) 2023-09-11 21:07:50 -07:00
win-qnn-ci-pipeline.yml Improve Win QNNEP pipeline (#17586) 2023-09-19 07:36:17 +08:00