onnxruntime/tools/python
Caroline Zhu 0221693e43
[Mobile] Add E2E BrowserStack tests for iOS tests (#22610)
### Description
- Changes running the E2E iOS tests from running in App Center to
running in BrowserStack
- Steps for running locally can be found in the OneNote

### Motivation and Context
- Follow-up of #22117 
- App Center (the previous platform for running E2E mobile tests) is
getting deprecated in 2025

### Misc info
Additional build steps were required to get the necessary testing
artifacts for BrowserStack. App Center consumed an entire folder, while
BrowserStack requests the following:
1. a ZIP file of all the tests
2. an IPA file of the test app

#### Flow
Here is a rough outline of what is happening in the pipeline:
1. The build_and_assemble_apple_pods.py script builds the relevant
frameworks (currently, this means packages for iOS and Mac)
4. The test_apple_packages.py script installs the necessary cocoapods
for later steps
5. XCode task to build for testing builds the iOS target for the test
app
6. Now that the test app and the tests have been built, we can zip them,
creating the tests .zip file
7. To create the IPA file, we need to create a .plist XML file which is
generated by the generate_plist.py script.
- Attempts to use the Xcode@5 task to automatically generate the plist
file failed.
- Also, building for testing generates some plist files -- these cannot
be used to export an IPA file.
8. We run the Xcode task to build an .xcarchive file, which is required
for creating an IPA file.
9. We use xcodebuild in a script step to build an IPA file with the
xcarchive and plist files from the last two steps.
10. Finally, we can run the tests using the BrowserStack script.

---------

Co-authored-by: Scott McKay <skottmckay@gmail.com>
Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
2024-11-06 11:22:29 -08:00
..
util Fix usability checker CoreML config file path. (#21626) 2024-08-06 12:42:57 -07:00
__init__.py
check_onnx_model_mobile_usability.py
convert_onnx_models_to_ort.py
create_reduced_build_config.py
dump_ort_model.py Bump ruff to 0.3.2 and black to 24 (#19878) 2024-03-13 10:00:32 -07:00
dump_subgraphs.py
example_operator_perf_test.py
find_optimizer_opset_version_updates_required.py Bump ruff to 0.3.2 and black to 24 (#19878) 2024-03-13 10:00:32 -07:00
fix_long_lines.py Bump ruff linter to 0.2.1 (#19471) 2024-02-08 16:08:27 -08:00
gen_contrib_doc.py Bump ruff to 0.3.2 and black to 24 (#19878) 2024-03-13 10:00:32 -07:00
gen_opkernel_doc.py Bump ruff linter to 0.2.1 (#19471) 2024-02-08 16:08:27 -08:00
get_submodules.py
onnx2tfevents.py
onnx_test_data_utils.py Update ruff and clang-format versions (#21479) 2024-07-24 11:50:11 -07:00
ort_test_dir_utils.py Bump ruff linter to 0.2.1 (#19471) 2024-02-08 16:08:27 -08:00
PythonTools.md
remove_initializer_from_input.py
run_adb.py
run_android_emulator.py Attempt to make the usage of the Android emulator in CIs more robust (#17903) 2023-10-15 08:42:36 +10:00
run_CIs_for_branch.py Update script to run CIs for a branch. (#19797) 2024-03-08 17:52:47 +10:00
run_CIs_for_external_pr.py update pipeline name list in run_CIs_for_external_pr.py (#22540) 2024-10-22 17:14:48 -07:00
sparsify_initializers.py
update_version.py
upload_and_run_browserstack_tests.py [Mobile] Add E2E BrowserStack tests for iOS tests (#22610) 2024-11-06 11:22:29 -08:00