From 165acc04b6f52187e310fcf7da5de9921cbb3fab Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Thu, 24 Sep 2026 07:10:35 -0700 Subject: [PATCH] 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 --- .github/actions/run-fantom-tests/action.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/actions/run-fantom-tests/action.yml b/.github/actions/run-fantom-tests/action.yml index c2b4e231a66..254c22b8a53 100644 --- a/.github/actions/run-fantom-tests/action.yml +++ b/.github/actions/run-fantom-tests/action.yml @@ -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."