Android Test: target SDK 21 instead of 16#30280
Closed
fkgozali wants to merge 2 commits intofacebook:masterfrom
Closed
Android Test: target SDK 21 instead of 16#30280fkgozali wants to merge 2 commits intofacebook:masterfrom
fkgozali wants to merge 2 commits intofacebook:masterfrom
Conversation
Contributor
|
This pull request was exported from Phabricator. Differential Revision: D24643610 |
|
Base commit: 36b0f7d |
Summary: Take in the fix from facebook#30273 + force starting adb server before launching AVD. Changelog: [Internal] Differential Revision: D24638504 fbshipit-source-id: 510864cc8beb944abff344f96de182859132060e
Summary: Pull Request resolved: facebook#30280 Now that React Native targets minimum SDK of 21, use that SDK level to run test. For some reason the default was previously 16 (I couldn't figure out where this was configured). This fixes the following test failure: https://app.circleci.com/pipelines/github/facebook/react-native/6937/workflows/d2d365f8-3f5d-453d-af28-68a040fb4188/jobs/174719/parallel-runs/0 To test, using local Docker image: ``` root@d5618d33a37b:/app# buck test ReactAndroid/src/test/... Not using buckd because watchman isn't installed. Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 Parsing buck files: finished in 2.4 sec Creating action graph: finished in 0.6 sec Building: finished in 36.8 sec (100%) 577/577 jobs, 241 updated Total time: 39.9 sec Testing: finished in 02:19.7 min (167 PASS/0 FAIL) RESULTS FOR //ReactAndroid/src/test/java/com/facebook/react/animated:animated //ReactAndroid/src/test/java/com/facebook/react/bridge:bridge //ReactAndroid/src/test/java/com/facebook/react/devsupport:devsupport //ReactAndroid/src/test/java/com/facebook/react/modules:modules //ReactAndroid/src/test/java/com/facebook/react/packagerconnection:packagerconnection //ReactAndroid/src/test/java/com/facebook/react/uimanager/layoutanimation:layoutanimation //ReactAndroid/src/test/java/com/facebook/react/uimanager:uimanager //ReactAndroid/src/test/java/com/facebook/react/util:util //ReactAndroid/src/test/java/com/facebook/react/views:views //ReactAndroid/src/test/java/com/facebook/react:react PASS 18.3s 7 Passed 0 Skipped 0 Failed com.facebook.react.animated.NativeAnimatedInterpolationTest PASS 32.4s 24 Passed 0 Skipped 0 Failed com.facebook.react.animated.NativeAnimatedNodeTraversalTest PASS 25.2s 4 Passed 0 Skipped 0 Failed com.facebook.react.bridge.BaseJavaModuleTest PASS 1.8s 4 Passed 0 Skipped 0 Failed com.facebook.react.bridge.FallbackJSBundleLoaderTest PASS <100ms 1 Passed 0 Skipped 0 Failed com.facebook.react.bridge.JavaOnlyArrayTest PASS <100ms 2 Passed 0 Skipped 0 Failed com.facebook.react.bridge.JavaScriptModuleRegistryTest PASS 24.7s 10 Passed 0 Skipped 0 Failed com.facebook.react.devsupport.JSDebuggerWebSocketClientTest PASS 16.6s 4 Passed 0 Skipped 0 Failed com.facebook.react.devsupport.MultipartStreamReaderTest PASS 15.4s 5 Passed 0 Skipped 0 Failed com.facebook.react.devsupport.StackTraceHelperTest PASS 26.0s 6 Passed 0 Skipped 0 Failed com.facebook.react.modules.blob.BlobModuleTest PASS 21.6s 5 Passed 0 Skipped 0 Failed com.facebook.react.modules.camera.ImageStoreManagerTest PASS 15.1s 1 Passed 0 Skipped 0 Failed com.facebook.react.modules.clipboard.ClipboardModuleTest PASS 14.4s 5 Passed 0 Skipped 0 Failed com.facebook.react.modules.dialog.DialogModuleTest PASS <100ms 10 Passed 0 Skipped 0 Failed com.facebook.react.modules.network.HeaderUtilTest PASS 7.9s 14 Passed 0 Skipped 0 Failed com.facebook.react.modules.network.NetworkingModuleTest PASS 4.3s 9 Passed 0 Skipped 0 Failed com.facebook.react.modules.network.ProgressiveStringDecoderTest PASS 5.2s 4 Passed 0 Skipped 0 Failed com.facebook.react.modules.network.ReactCookieJarContainerTest PASS 9.0s 2 Passed 0 Skipped 0 Failed com.facebook.react.modules.share.ShareModuleTest PASS 9.3s 6 Passed 0 Skipped 0 Failed com.facebook.react.modules.storage.AsyncStorageModuleTest PASS 6.7s 10 Passed 0 Skipped 0 Failed com.facebook.react.modules.timing.TimingModuleTest PASS 22.2s 9 Passed 0 Skipped 0 Failed com.facebook.react.packagerconnection.JSPackagerClientTest PASS 18.3s 4 Passed 0 Skipped 0 Failed com.facebook.react.uimanager.layoutanimation.InterpolatorTypeTest PASS 16.9s 2 Passed 0 Skipped 0 Failed com.facebook.react.uimanager.BaseViewManagerTest PASS 15.9s 4 Passed 0 Skipped 0 Failed com.facebook.react.uimanager.MatrixMathHelperTest PASS 16.8s 3 Passed 0 Skipped 0 Failed com.facebook.react.uimanager.SimpleViewPropertyTest PASS <100ms 1 Passed 0 Skipped 0 Failed com.facebook.react.util.JSStackTraceTest PASS 19.9s 1 Passed 0 Skipped 0 Failed com.facebook.react.views.image.ImageResizeModeTest PASS 21.5s 4 Passed 0 Skipped 0 Failed com.facebook.react.views.image.ReactImagePropertyTest PASS 22.9s 4 Passed 0 Skipped 0 Failed com.facebook.react.CompositeReactPackageTest PASS 15.9s 2 Passed 0 Skipped 0 Failed com.facebook.react.RootViewTest Updated test logs: buck-out/log/test.log TESTS PASSED ``` Changelog: [Android][Deprecated] Deprecate support of Android API levels 19 and 20. Reviewed By: JoshuaGross Differential Revision: D24643610 fbshipit-source-id: 826f64bb551495b56d1c71a1b44da4587337c7d3
1abd014 to
22b690b
Compare
Contributor
|
This pull request was exported from Phabricator. Differential Revision: D24643610 |
Base commit: 36b0f7d |
Collaborator
|
This pull request was successfully merged by @fkgozali in 7dcecb2. When will my fix make it into a release? | Upcoming Releases |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Now that React Native targets minimum SDK of 21, use that SDK level to run test. For some reason the default was previously 16 (I couldn't figure out where this was configured). This fixes the following test failure:
https://app.circleci.com/pipelines/github/facebook/react-native/6937/workflows/d2d365f8-3f5d-453d-af28-68a040fb4188/jobs/174719/parallel-runs/0
Changelog: [Android][Deprecated] Deprecate support of Android API levels 19 and 20.
Reviewed By: JoshuaGross
Differential Revision: D24643610