From 7cd567d4881e0da6df6c2c733ab8ddc7fd53dda5 Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Thu, 24 Sep 2026 06:58:40 -0700 Subject: [PATCH] Make Fantom CI retries rerun the test suite Summary: 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 --- .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."