diff --git a/.ado/jobs/build-test-rntester.yml b/.ado/jobs/build-test-rntester.yml index 8f0a07c679d4f7..d243ef28d7f85f 100644 --- a/.ado/jobs/build-test-rntester.yml +++ b/.ado/jobs/build-test-rntester.yml @@ -129,37 +129,39 @@ jobs: CCACHE_DISABLE: 1 displayName: Build ${{ slice.scheme }} - # Skip testing on visionOS via the conditions below - - ${{ if ne(slice.scheme, 'RNTester-visionOS') }}: - - task: ShellScript@2 - displayName: Setup packager and WebSocket test server - inputs: - scriptPath: .ado/scripts/ado-test-setup.sh - disableAutoCwd: true - cwd: '' + # https://github.com/microsoft/react-native-macos/issues/2297 + # Skip native tests as they tend to be flaky - - script: | - echo Preparing the packager for platform $PLATFORM - curl --retry-connrefused --connect-timeout 5 --max-time 10 --retry 10 --retry-delay 5 --retry-max-time 120 "http://localhost:8081/packages/rn-tester/js/RNTesterApp.${PLATFORM}.bundle?platform=${PLATFORM}&dev=true" -o /dev/null - curl --retry-connrefused --connect-timeout 5 --max-time 10 --retry 10 --retry-delay 5 --retry-max-time 120 "http://localhost:8081/packages/rn-tester/js/RNTesterApp.${PLATFORM}.bundle?platform=${PLATFORM}&dev=true&minify=false" -o /dev/null - curl --retry-connrefused --connect-timeout 5 --max-time 10 --retry 10 --retry-delay 5 --retry-max-time 120 "http://localhost:8081/IntegrationTests/IntegrationTestsApp.bundle?platform=${PLATFORM}&dev=true" -o /dev/null - curl --retry-connrefused --connect-timeout 5 --max-time 10 --retry 10 --retry-delay 5 --retry-max-time 120 "http://localhost:8081/IntegrationTests/RCTRootViewIntegrationTestApp.bundle?platform=${PLATFORM}&dev=true" -o /dev/null - env: - PLATFORM: ${{ slice.packager_platform }} - displayName: Fetch JS bundles from dev server + # - ${{ if ne(slice.scheme, 'RNTester-visionOS') }}: + # - task: ShellScript@2 + # displayName: Setup packager and WebSocket test server + # inputs: + # scriptPath: .ado/scripts/ado-test-setup.sh + # disableAutoCwd: true + # cwd: '' - - script: | - set -eox pipefail - .ado/scripts/xcodebuild.sh packages/rn-tester/RNTesterPods.xcworkspace ${{ slice.sdk }} ${{ slice.scheme }} test - env: - CCACHE_DISABLE: 1 - displayName: Test ${{ slice.scheme }} + # - script: | + # echo Preparing the packager for platform $PLATFORM + # curl --retry-connrefused --connect-timeout 5 --max-time 10 --retry 10 --retry-delay 5 --retry-max-time 120 "http://localhost:8081/packages/rn-tester/js/RNTesterApp.${PLATFORM}.bundle?platform=${PLATFORM}&dev=true" -o /dev/null + # curl --retry-connrefused --connect-timeout 5 --max-time 10 --retry 10 --retry-delay 5 --retry-max-time 120 "http://localhost:8081/packages/rn-tester/js/RNTesterApp.${PLATFORM}.bundle?platform=${PLATFORM}&dev=true&minify=false" -o /dev/null + # curl --retry-connrefused --connect-timeout 5 --max-time 10 --retry 10 --retry-delay 5 --retry-max-time 120 "http://localhost:8081/IntegrationTests/IntegrationTestsApp.bundle?platform=${PLATFORM}&dev=true" -o /dev/null + # curl --retry-connrefused --connect-timeout 5 --max-time 10 --retry 10 --retry-delay 5 --retry-max-time 120 "http://localhost:8081/IntegrationTests/RCTRootViewIntegrationTestApp.bundle?platform=${PLATFORM}&dev=true" -o /dev/null + # env: + # PLATFORM: ${{ slice.packager_platform }} + # displayName: Fetch JS bundles from dev server + + # - script: | + # set -eox pipefail + # .ado/scripts/xcodebuild.sh packages/rn-tester/RNTesterPods.xcworkspace ${{ slice.sdk }} ${{ slice.scheme }} test + # env: + # CCACHE_DISABLE: 1 + # displayName: Test ${{ slice.scheme }} - - task: ShellScript@2 - displayName: Cleanup packager and WebSocket test server - inputs: - scriptPath: .ado/scripts/ado-test-cleanup.sh - disableAutoCwd: true - cwd: '' - condition: always() + # - task: ShellScript@2 + # displayName: Cleanup packager and WebSocket test server + # inputs: + # scriptPath: .ado/scripts/ado-test-cleanup.sh + # disableAutoCwd: true + # cwd: '' + # condition: always()