From 5c6a0bdfdfa50d550e2bf0eb5455165f9b0b3c49 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Thu, 27 Jun 2024 05:23:39 -0700 Subject: [PATCH] Disable unit tests for flakyness in CircleCI (#45133) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45133 Recently, CircleCI has failed pretty often due to these tests. The reason is that we migrated these jobs to M1 machines, as circleCI is deprecating intel ones, and on these machines the simulators tend to freeze. Hence, every often we get stuck when running the tests. :( We are going to move to GHA, so that should not be a big issue. ## Changelog: [Internal] - Disable unit tests in CircleCI to improve CI robustness Reviewed By: cortinico Differential Revision: D58948614 --- .../configurations/test_workflows/testAll.yml | 2 +- .../configurations/test_workflows/testIOS.yml | 2 +- .github/actions/test_ios_rntester/action.yml | 14 +++++++------- .github/workflows/test-all.yml | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.circleci/configurations/test_workflows/testAll.yml b/.circleci/configurations/test_workflows/testAll.yml index 67dcf3c09d7d..59c2eefa5a22 100644 --- a/.circleci/configurations/test_workflows/testAll.yml +++ b/.circleci/configurations/test_workflows/testAll.yml @@ -88,7 +88,7 @@ parameters: jsengine: ["Hermes", "JSC"] - test_ios_rntester: - run_unit_tests: true + run_unit_tests: false use_frameworks: "StaticLibraries" ruby_version: "2.6.10" requires: diff --git a/.circleci/configurations/test_workflows/testIOS.yml b/.circleci/configurations/test_workflows/testIOS.yml index e1838f8ba4eb..e6b9092b7a98 100644 --- a/.circleci/configurations/test_workflows/testIOS.yml +++ b/.circleci/configurations/test_workflows/testIOS.yml @@ -75,7 +75,7 @@ parameters: jsengine: ["Hermes", "JSC"] - test_ios_rntester: - run_unit_tests: true + run_unit_tests: false use_frameworks: "StaticLibraries" ruby_version: "2.6.10" requires: diff --git a/.github/actions/test_ios_rntester/action.yml b/.github/actions/test_ios_rntester/action.yml index 0fd3592ca72f..bf318176f842 100644 --- a/.github/actions/test_ios_rntester/action.yml +++ b/.github/actions/test_ios_rntester/action.yml @@ -48,7 +48,7 @@ runs: with: ruby-version: ${{ inputs.ruby-version }} - name: Prepare IOS Tests - if: ${{ inputs.run-unit-tests == true }} + if: ${{ inputs.run-unit-tests == 'true' }} uses: ./.github/actions/prepare_ios_tests - name: Set HERMES_ENGINE_TARBALL_PATH envvar if Hermes tarball is present shell: bash @@ -114,7 +114,7 @@ runs: bundle install bundle exec pod install - name: Build RNTester - if: ${{ inputs.run-unit-tests != true }} + if: ${{ inputs.run-unit-tests != 'true' }} shell: bash run: | xcodebuild build \ @@ -122,11 +122,11 @@ runs: -scheme RNTester \ -sdk iphonesimulator - name: "Run Tests: iOS Unit and Integration Tests" - if: ${{ inputs.run-unit-tests == true }} + if: ${{ inputs.run-unit-tests == 'true' }} shell: bash run: yarn test-ios - name: Zip Derived data folder - if: ${{ inputs.run-unit-tests == true }} + if: ${{ inputs.run-unit-tests == 'true' }} shell: bash run: | echo "zipping tests results" @@ -135,17 +135,17 @@ runs: tar -zcvf xcresults.tar.gz $XCRESULT_PATH - name: Upload artifact uses: actions/upload-artifact@v2.2.4 - if: ${{ inputs.run-unit-tests == true }} + if: ${{ inputs.run-unit-tests == 'true' }} with: name: xcresults path: /Users/distiller/Library/Developer/Xcode/xcresults.tar.gz - name: Report bundle size - if: ${{ inputs.run-unit-tests == true }} + if: ${{ inputs.run-unit-tests == 'true' }} uses: ./.github/actions/report_bundle_size with: platform: ios - name: Store test results - if: ${{ inputs.run-unit-tests == true }} + if: ${{ inputs.run-unit-tests == 'true' }} uses: actions/upload-artifact@v2.2.4 with: name: test-results diff --git a/.github/workflows/test-all.yml b/.github/workflows/test-all.yml index 0d36a32735b0..9f56d2356fda 100644 --- a/.github/workflows/test-all.yml +++ b/.github/workflows/test-all.yml @@ -432,7 +432,7 @@ jobs: with: jsengine: ${{ matrix.jsengine }} architecture: ${{ matrix.architecture }} - run-unit-tests: true + run-unit-tests: 'true' use-frameworks: StaticLibraries hermes-version: ${{ needs.prepare_hermes_workspace.outputs.hermes-version }} react-native-version: ${{ needs.prepare_hermes_workspace.outputs.react-native-version }}