From 7e4fa70a12d1c52f5c99281ebfcb9c0efd47cf17 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Tue, 6 Jan 2026 06:30:51 -0800 Subject: [PATCH] Rerun failed fantom tests (#55053) Summary: Fantom tests are a bit flaky, so we are rerunning them in case they fails. ## Changelog: [Internal] - Pull Request resolved: https://github.com/facebook/react-native/pull/55053 Test Plan: GHA Reviewed By: cortinico Differential Revision: D90174181 Pulled By: cipolleschi fbshipit-source-id: 131d6fb68a9a53eaef5b36c0f0fe9adf989219b3 --- .github/workflows/test-all.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-all.yml b/.github/workflows/test-all.yml index 2e237ce6526..3c060bb104c 100644 --- a/.github/workflows/test-all.yml +++ b/.github/workflows/test-all.yml @@ -512,7 +512,7 @@ jobs: # This is exactly the same as rerunning failed tests from the GH UI, but automated. rerun-failed-jobs: runs-on: ubuntu-latest - needs: [test_e2e_ios_rntester, test_e2e_android_rntester, test_e2e_ios_templateapp, test_e2e_android_templateapp] + needs: [test_e2e_ios_rntester, test_e2e_android_rntester, test_e2e_ios_templateapp, test_e2e_android_templateapp, run_fantom_tests] if: ${{ github.ref == 'refs/heads/main' && always() }} steps: - name: Checkout @@ -530,13 +530,15 @@ jobs: TEMPLATE_ANDROID_FAILED=${{ needs.test_e2e_android_templateapp.result == 'failure' }} RNTESTER_IOS_FAILED=${{ needs.test_e2e_ios_rntester.result == 'failure' }} TEMPLATE_IOS_FAILED=${{ needs.test_e2e_ios_templateapp.result == 'failure' }} + FANTOM_TESTS_FAILED=${{ needs.run_fantom_tests.result == 'failure' }} echo "RNTESTER_ANDROID_FAILED: $RNTESTER_ANDROID_FAILED" echo "TEMPLATE_ANDROID_FAILED: $TEMPLATE_ANDROID_FAILED" echo "RNTESTER_IOS_FAILED: $RNTESTER_IOS_FAILED" echo "TEMPLATE_IOS_FAILED: $TEMPLATE_IOS_FAILED" + echo "FANTOM_TESTS_FAILED: $FANTOM_TESTS_FAILED" - if [[ $RNTESTER_ANDROID_FAILED == "true" || $TEMPLATE_ANDROID_FAILED == "true" || $RNTESTER_IOS_FAILED == "true" || $TEMPLATE_IOS_FAILED == "true" ]]; then + if [[ $RNTESTER_ANDROID_FAILED == "true" || $TEMPLATE_ANDROID_FAILED == "true" || $RNTESTER_IOS_FAILED == "true" || $TEMPLATE_IOS_FAILED == "true" || $FANTOM_TESTS_FAILED == "true" ]]; then echo "Rerunning failed jobs in the current workflow" gh workflow run retry-workflow.yml -F run_id=${{ github.run_id }} fi