mirror of
https://github.com/react/react-native.git
synced 2026-09-29 16:58:04 +08:00
Make Fantom CI retries rerun the test suite (#58672)
Summary: Pull Request resolved: https://github.com/react/react-native/pull/58672 Fantom CI retries used Jest's `--onlyFailures` cache after a failed full-suite run. Process-level failures such as `SIGSEGV` are not recorded as failed test results, so Jest selected no tests and both retries exited immediately. Run the full Fantom suite on each retry so transient runner crashes get real retry attempts. Changelog: [Internal] ___ Differential Revision: D121570534 fbshipit-source-id: 7d325eb8786848cbb018d9db6fea7e51650bb9e1
This commit is contained in:
committed by
meta-codesync[bot]
parent
88b9c3fb7c
commit
165acc04b6
@@ -27,17 +27,11 @@ runs:
|
||||
run: |
|
||||
for attempt in 1 2 3; do
|
||||
echo "Attempt $attempt of 3"
|
||||
if [ "$attempt" -eq 1 ]; then
|
||||
if yarn fantom; then
|
||||
exit 0
|
||||
fi
|
||||
else
|
||||
if yarn fantom --onlyFailures; then
|
||||
exit 0
|
||||
fi
|
||||
if yarn fantom; then
|
||||
exit 0
|
||||
fi
|
||||
if [ "$attempt" -lt 3 ]; then
|
||||
echo "Attempt $attempt failed. Retrying only failed tests..."
|
||||
echo "Attempt $attempt failed. Retrying..."
|
||||
fi
|
||||
done
|
||||
echo "All 3 attempts failed."
|
||||
|
||||
Reference in New Issue
Block a user