-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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 React-bridging header not found for third party modules #34214
Conversation
LogError: RequestError [HttpError]: Must have admin rights to Repository.
at /root/react-native/bots/node_modules/@octokit/request/dist-node/index.js:86:21
at processTicksAndRejections (internal/process/task_queues.js:95:5) {
status: 403,
response: {
url: 'https://api.github.com/repos/facebook/react-native/issues/34214/labels',
status: 403,
headers: {
'access-control-allow-origin': '*',
'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset',
connection: 'close',
'content-encoding': 'gzip',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Wed, 20 Jul 2022 16:05:39 GMT',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'github.com',
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
'transfer-encoding': 'chunked',
vary: 'Accept-Encoding, Accept, X-Requested-With',
'x-accepted-oauth-scopes': '',
'x-content-type-options': 'nosniff',
'x-frame-options': 'deny',
'x-github-media-type': 'github.v3; format=json',
'x-github-request-id': '8C7A:8B4A:7F4CA9:F1D430:62D827D3',
'x-oauth-scopes': 'public_repo',
'x-ratelimit-limit': '5000',
'x-ratelimit-remaining': '4992',
'x-ratelimit-reset': '1658336738',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '8',
'x-xss-protection': '0'
},
data: {
message: 'Must have admin rights to Repository.',
documentation_url: 'https://docs.github.com/rest/reference/issues#add-labels-to-an-issue'
}
},
request: {
method: 'POST',
url: 'https://api.github.com/repos/facebook/react-native/issues/34214/labels',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'octokit-rest.js/18.12.0 octokit-core.js/3.5.1 Node.js/14.19.0 (linux; x64)',
authorization: 'token [REDACTED]',
'content-type': 'application/json; charset=utf-8'
},
body: '{"labels":["Pick Request"]}',
request: { hook: [Function: bound bound register] }
}
}
danger-results://tmp/danger-results.json |
Base commit: 361d939 |
Hi @Kudo, thanks for the PR. I see that you created it against the |
@cipolleschi because the react_native_pods.rb is quite different on main because #33982, i am thinking to land this first on 0.69-stable. if the pr landed, i can create another pr for main branch. does this make sense to you? |
Yes, it makes sense. However, there are failures in CI that shouldn't be there. The only failure that should be there is the |
@cipolleschi i also wondered for the failures. however i don't have permissions to rerun the jobs. could you help to do that? |
So... for For the other task, the issue is that Hermes is deciding that it won't build from source.. I think that we need to take this case into consideration... |
if the ci failures come from pr based on 0.69-stable, i can also create a new pr based on main branch first and leave this pr as reference when cherry-picking to 0.69-stable. let me know which one makes sense to you. |
sounds good! i'll rebase after that pr is cherry-picked. thanks! |
@Kudo my PR landed and I've already cherry picked it in both 0.70 and 0.69 branches 👍 you can try rebasing your branch |
rebased, thanks @kelset! |
looks like the ci jobs failed at the same places again 🤔 |
Yep... Basically, in this setup we don't need to build hermes from source. The I'm working on a fix here: #34223 |
thanks @cipolleschi ! i'll rebase after #34223 landed. |
sure, thanks! let's see how it going. |
@cipolleschi looks like there're some failure jobs for building hermes, is it expected? |
No... I'm looking into it, right now. |
@cipolleschi all ci jobs finished. are they in good state or any further jobs you would like to pass? |
And now the CI is green! we can merge this! |
@cipolleschi cool, i don't have permission to merge. maybe you could help merging it. thanks! |
Summary: cherry-pick changes from #34214 to main. because the `react_native_pods.rb` on main is quite different from 0.69, i have separated pr for the change. ## Changelog [iOS] [Fixed] - Fix React-bridging headers import not found Pull Request resolved: #34271 Test Plan: RNTester + pod install and verify pod targets to have `React-bridging` in header search paths. Reviewed By: cipolleschi Differential Revision: D38122074 Pulled By: dmitryrykun fbshipit-source-id: 64569abbfa3a684f0d6b84c9e3222bfc9a171061
Summary: cherry-pick changes from #34214 to main. because the `react_native_pods.rb` on main is quite different from 0.69, i have separated pr for the change. ## Changelog [iOS] [Fixed] - Fix React-bridging headers import not found Pull Request resolved: #34271 Test Plan: RNTester + pod install and verify pod targets to have `React-bridging` in header search paths. Reviewed By: cipolleschi Differential Revision: D38122074 Pulled By: dmitryrykun fbshipit-source-id: 64569abbfa3a684f0d6b84c9e3222bfc9a171061
Summary: cherry-pick changes from facebook#34214 to main. because the `react_native_pods.rb` on main is quite different from 0.69, i have separated pr for the change. ## Changelog [iOS] [Fixed] - Fix React-bridging headers import not found Pull Request resolved: facebook#34271 Test Plan: RNTester + pod install and verify pod targets to have `React-bridging` in header search paths. Reviewed By: cipolleschi Differential Revision: D38122074 Pulled By: dmitryrykun fbshipit-source-id: 64569abbfa3a684f0d6b84c9e3222bfc9a171061
Summary: cherry-pick changes from facebook#34214 to main. because the `react_native_pods.rb` on main is quite different from 0.69, i have separated pr for the change. ## Changelog [iOS] [Fixed] - Fix React-bridging headers import not found Pull Request resolved: facebook#34271 Test Plan: RNTester + pod install and verify pod targets to have `React-bridging` in header search paths. Reviewed By: cipolleschi Differential Revision: D38122074 Pulled By: dmitryrykun fbshipit-source-id: 64569abbfa3a684f0d6b84c9e3222bfc9a171061
@Kudo This patch works in some configurations, but doesn't work when using pnpm as a package manager. In the case of pnpm the bridging headers get copied to the wrong directory. They end up at Where in the build process does it determine where to copy headers and why might it be using a bad path? I'm guessing it doesn't like pnpm's symlinking, but I'm not sure where to look to work around it. |
Summary
Some third party modules will have build errors on react-native 0.69.1 if they have dependency to
React-bridging
(orReactCommon/turbomodule/core
from transitive dependency). We setup correct header search paths in ReactCommon.podspec. We should also apply the change to third party modules. This PR is a workaround for the migration without introducing breaking changes to third party modules.Note that is pr is based on 0.69-stable. Because on main branch, the react_native_pods.rb has much refactoring. I'll probably create a new pr based on main branch after this one landed.
Fix #34102
Changelog
[iOS] [Fixed] - Fix React-bridging headers import not found
Test Plan