-
Notifications
You must be signed in to change notification settings - Fork 24.7k
Fix ruby unit tests #48498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ruby unit tests #48498
Conversation
@@ -513,9 +513,10 @@ def get_podspec_no_fabric_no_script | |||
'source' => { :git => '' }, | |||
'header_mappings_dir' => './', | |||
'platforms' => { | |||
:ios => '13.4', | |||
:ios => '15.1', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was updated since the tests ran last: #46137
def get_folly_config() | ||
return Helpers::Constants.folly_config | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No longer needed now that the Helpers
are accessed directly.
'OTHER_CPLUSPLUSFLAGS' => [ | ||
'$(inherited)', | ||
'-DFOLLY_NO_CONFIG', | ||
'-DFOLLY_MOBILE=1', | ||
'-DFOLLY_USE_LIBCPP=1', | ||
'-DFOLLY_CFG_NO_COROUTINES=1', | ||
'-DFOLLY_HAVE_CLOCK_GETTIME=1', | ||
'-Wno-comma', | ||
'-Wno-shorten-64-to-32', | ||
'-Wno-documentation' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per #46513
@@ -544,6 +556,7 @@ def get_podspec_no_fabric_no_script | |||
"ReactCommon/turbomodule/core": [], | |||
"hermes-engine": [], | |||
"React-NativeModulesApple": [], | |||
'React-RCTAppDelegate': [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per #47650
}, | ||
'source_files' => "**/*.{h,mm,cpp}", | ||
'exclude_files' => "RCTAppDependencyProvider.{h,mm}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per #47761
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks fo fixing this. The changes makes sense to me, and I agree that accessing the Helpers
is better.
The globals are there more for third party libraries that might need those values.
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@cipolleschi merged this pull request in 7a85b91. |
This pull request was successfully merged by @kraenhansen in 7a85b91 When will my fix make it into a release? | How to file a pick request? |
Summary:
As a prerequisite of enabling running unit tests on CI again, this PR suggests changes needed to the Ruby unit tests.
I've added comments on the code below, justifying changes where I deem a justification might be needed.
For use internally, I suggest accessing the folly_config and boost_config directly via the
Helpers
class instead of theget_folly_config
andget_boost_config
because these global functions are defined inreact_native_pods.rb
and requiring that file would be result in circular requires. An alternative would be to move these global functions to a separate file.Changelog:
[INTERNAL] [FIXED] - Fix Ruby unit tests.
Test Plan:
cd packages/react-native
./scripts/run_ruby_tests.sh