소스 검색

Handle coverage flakiness more locally (#3350)

Paul Beusterien 6 년 전
부모
커밋
e4a0d62cd5
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 3
      scripts/build.sh

+ 5 - 3
scripts/build.sh

@@ -179,11 +179,13 @@ if [[ -n "${SANITIZERS:-}" ]]; then
   done
 fi
 
-# Clean the Derived Data between builds to help reduce flakiness.
-rm -rf ~/Library/Developer/Xcode/DerivedData
-
 case "$product-$method-$platform" in
   Firebase-xcodebuild-*)
+    # Coverage collection often cause retries to fail because of partial
+    # pre-existing data.
+    # TODO(paulb777): Find a less blunt solution to this.
+    rm -rf ~/Library/Developer/Xcode/DerivedData
+
     RunXcodebuild \
         -workspace 'Example/Firebase.xcworkspace' \
         -scheme "AllUnitTests_$platform" \