Skip to content

Commit e4a0d62

Browse files
authored
Handle coverage flakiness more locally (#3350)
1 parent 37affc1 commit e4a0d62

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/build.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,13 @@ if [[ -n "${SANITIZERS:-}" ]]; then
179179
done
180180
fi
181181

182-
# Clean the Derived Data between builds to help reduce flakiness.
183-
rm -rf ~/Library/Developer/Xcode/DerivedData
184-
185182
case "$product-$method-$platform" in
186183
Firebase-xcodebuild-*)
184+
# Coverage collection often cause retries to fail because of partial
185+
# pre-existing data.
186+
# TODO(paulb777): Find a less blunt solution to this.
187+
rm -rf ~/Library/Developer/Xcode/DerivedData
188+
187189
RunXcodebuild \
188190
-workspace 'Example/Firebase.xcworkspace' \
189191
-scheme "AllUnitTests_$platform" \

0 commit comments

Comments
 (0)