test(ios): capture intermittent transcript layout diagnostics (#2325)

* test(ios): capture intermittent transcript layout diagnostics

* fix(ci): keep iPad diagnostics running after failures

* ci: retry iOS diagnostics after transient simulator failures
This commit is contained in:
Ananovo
2026-11-09 12:03:47 +08:00
committed by GitHub
parent fdea9432a6
commit 5ed3d14f88
4 changed files with 141 additions and 5 deletions
+7 -1
View File
@@ -17,7 +17,13 @@ print(max(items, key=lambda x: tuple(map(int, x["version"].split("."))))["identi
device=$(xcrun simctl create "HAPI Transcript Tests" "$device_type" "$runtime")
trap 'xcrun simctl delete "$device" >/dev/null 2>&1 || true' EXIT
result_bundle_args=()
if [[ -n "${HAPI_TEST_RESULT_BUNDLE_PATH:-}" ]]; then
result_bundle_args=(-resultBundlePath "$HAPI_TEST_RESULT_BUNDLE_PATH")
fi
xcodebuild test -project ios/Hapi.xcodeproj -scheme Hapi \
-destination "platform=iOS Simulator,id=$device" \
-derivedDataPath "${HAPI_TEST_DERIVED_DATA:-/tmp/hapi-transcript-tests}" \
-parallel-testing-enabled NO CODE_SIGNING_ALLOWED=NO "$@"
-parallel-testing-enabled NO CODE_SIGNING_ALLOWED=NO \
${result_bundle_args[@]+"${result_bundle_args[@]}"} "$@"