From 34fad506675589a772fb933f70aae934833b1d73 Mon Sep 17 00:00:00 2001 From: Anthony Shoumikhin Date: Thu, 9 Oct 2025 10:04:33 -0700 Subject: [PATCH 1/5] Set Git HTTP version to 1.1 for cloning iOS demo app Configure Git to use HTTP/1.1 to avoid SPM clone issues. https://github.com/pytorch/executorch/issues/14824 --- .ci/scripts/test_ios_ci.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.ci/scripts/test_ios_ci.sh b/.ci/scripts/test_ios_ci.sh index a89c2cc5809..5e4a1998147 100755 --- a/.ci/scripts/test_ios_ci.sh +++ b/.ci/scripts/test_ios_ci.sh @@ -36,6 +36,9 @@ say() { say "Cloning the Demo App" +# Work around intermittent SPM clone failures over HTTP/2 ("expected 'packfile'") +git config --global http.version HTTP/1.1 + git clone --depth 1 https://github.com/meta-pytorch/executorch-examples.git say "Installing CoreML Backend Requirements" From 1feacf928b6e4657586082649cf90f4428dac86e Mon Sep 17 00:00:00 2001 From: Anthony Shoumikhin Date: Thu, 9 Oct 2025 10:30:19 -0700 Subject: [PATCH 2/5] Add package dependency resolution for iOS tests --- .ci/scripts/test_ios_ci.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.ci/scripts/test_ios_ci.sh b/.ci/scripts/test_ios_ci.sh index 5e4a1998147..70480ef4d2f 100755 --- a/.ci/scripts/test_ios_ci.sh +++ b/.ci/scripts/test_ios_ci.sh @@ -66,6 +66,8 @@ xcrun simctl create "$SIMULATOR_NAME" "iPhone 15" say "Running Tests" +xcodebuild -resolvePackageDependencies -project "$APP_PATH.xcodeproj" -scheme MobileNetClassifierTest + xcodebuild test \ -project "$APP_PATH.xcodeproj" \ -scheme MobileNetClassifierTest \ From 0d8c27e5a512da24ea70121ce8cf89893efef2e4 Mon Sep 17 00:00:00 2001 From: Anthony Shoumikhin Date: Thu, 9 Oct 2025 10:30:38 -0700 Subject: [PATCH 3/5] Remove HTTP/2 workaround for git clone Removed workaround for SPM clone failures over HTTP/2. --- .ci/scripts/test_ios_ci.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/.ci/scripts/test_ios_ci.sh b/.ci/scripts/test_ios_ci.sh index 70480ef4d2f..5dce0c9a5c7 100755 --- a/.ci/scripts/test_ios_ci.sh +++ b/.ci/scripts/test_ios_ci.sh @@ -36,9 +36,6 @@ say() { say "Cloning the Demo App" -# Work around intermittent SPM clone failures over HTTP/2 ("expected 'packfile'") -git config --global http.version HTTP/1.1 - git clone --depth 1 https://github.com/meta-pytorch/executorch-examples.git say "Installing CoreML Backend Requirements" From 300e0e824a11a455ec4cf69fe5e0a1f4b1df6662 Mon Sep 17 00:00:00 2001 From: Anthony Shoumikhin Date: Thu, 9 Oct 2025 10:56:18 -0700 Subject: [PATCH 4/5] Update test_ios_ci.sh --- .ci/scripts/test_ios_ci.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.ci/scripts/test_ios_ci.sh b/.ci/scripts/test_ios_ci.sh index 5dce0c9a5c7..81476ac45b3 100755 --- a/.ci/scripts/test_ios_ci.sh +++ b/.ci/scripts/test_ios_ci.sh @@ -63,7 +63,12 @@ xcrun simctl create "$SIMULATOR_NAME" "iPhone 15" say "Running Tests" -xcodebuild -resolvePackageDependencies -project "$APP_PATH.xcodeproj" -scheme MobileNetClassifierTest +# Cleanup all caches +rm -rf \ + ~/Library/org.swift.swiftpm \ + ~/Library/Caches/org.swift.swiftpm \ + ~/Library/Caches/com.apple.dt.Xcode \ + ~/Library/Developer/Xcode/DerivedData xcodebuild test \ -project "$APP_PATH.xcodeproj" \ From 4d8d2c89438fedee1743316889878eccfb87aed8 Mon Sep 17 00:00:00 2001 From: Anthony Shoumikhin Date: Thu, 9 Oct 2025 12:13:26 -0700 Subject: [PATCH 5/5] Adjust Git post buffer size in CI script Increased Git HTTP post buffer size for cloning. --- .ci/scripts/test_ios_ci.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.ci/scripts/test_ios_ci.sh b/.ci/scripts/test_ios_ci.sh index 81476ac45b3..46c3f71f021 100755 --- a/.ci/scripts/test_ios_ci.sh +++ b/.ci/scripts/test_ios_ci.sh @@ -36,6 +36,7 @@ say() { say "Cloning the Demo App" +git config --global http.postBuffer 524288000 git clone --depth 1 https://github.com/meta-pytorch/executorch-examples.git say "Installing CoreML Backend Requirements" @@ -63,13 +64,6 @@ xcrun simctl create "$SIMULATOR_NAME" "iPhone 15" say "Running Tests" -# Cleanup all caches -rm -rf \ - ~/Library/org.swift.swiftpm \ - ~/Library/Caches/org.swift.swiftpm \ - ~/Library/Caches/com.apple.dt.Xcode \ - ~/Library/Developer/Xcode/DerivedData - xcodebuild test \ -project "$APP_PATH.xcodeproj" \ -scheme MobileNetClassifierTest \