Uh oh!
There was an error while loading. Please reload this page.
Fixing tests for npm 2/3 - #6346
Conversation
facebook-github-bot
commented
Mar 7, 2016
By analyzing the blame information on this pull request, we identified @cpojer, @martinbigio and @spicyj to be potential reviewers. |
skevy
commented
Mar 7, 2016
🚢 🚢 🚢 |
mkonicek
commented
Mar 7, 2016
@facebook-github-bot shipit |
facebook-github-bot
commented
Mar 7, 2016
Thanks for importing. If you are an FB employee go to Phabricator to review. |
mkonicek
commented
Mar 8, 2016
Failed internal tests, will continue merging this with David tomorrow. |
bestander
commented
Mar 8, 2016
Hey @skevy, We are building the JS with BUCK and packager for internal apps and this error gets popped up: The folder Right now we can't merge this PR. |
bestander
commented
Mar 8, 2016
The problem is probably in packager being executed not from |
mkonicek
commented
Mar 8, 2016
Just talked about this a bit more with David, the root cause is the difference in the internal and open source setup:
|
mkonicek
commented
Mar 8, 2016
Also, React is a dev dependency of React Native, we run This mean that anyone who runs There's no easy way to change how the shrinkwrap generation works because we share that file both internally and in open source and the setup in each is very different. We should stop publishing |
davidaurelio
commented
Mar 8, 2016
I just realized that this cannot possibly work The changes to node-haste (in 2.6) make incorrect assumptions:
|
mkonicek
commented
Mar 8, 2016
Thanks David, I'll close the PR. @skevy you can reopen but don't see any way to merge this. |
mkonicek
commented
Mar 8, 2016
Should we revert some changes in node-haste? |
mkonicek
commented
Mar 8, 2016
Sorry it's probably not obvious at all how the internal setup works. I've only learned about it yesterday and today. |
Summary:See comments on #6346 We cannot publish the shrinkwrap file to npm and make the same file work with the internal fb infra. We've never had the shrinkwrap file in a release of RN, keeping it that way for now should be ok. Reviewed By: bestander Differential Revision: D3024260 fb-gh-sync-id: 477509eb9a9890c1955a957ece922d692cd35aab shipit-source-id: 477509eb9a9890c1955a957ece922d692cd35aab
mkonicek
commented
Mar 8, 2016
FYI I've removed shrinkwrap from what we publish to npm here: 10e990f |
janicduplessis
commented
Mar 8, 2016
It would be nice to publish a version of node-haste that has the Windows fix in it but not the haste module resolution changes to fix Windows support before the next release. Unless you think you can fix the bad assumptions so it work in your internal setup before that. |
davidaurelio
commented
Mar 8, 2016
Agreed. Let’s wait what @skevy thinks about is. I could publish node-haste 2.6.2 and remove the other 2.6.x releases |
cpojer
commented
Mar 8, 2016
Please let's just make sure we aren't breaking Jest again. |
skevy
commented
Mar 8, 2016
So, am I understanding right that we have to back out my changes to node-haste re |
skevy
commented
Mar 8, 2016
Ok yah, I guess we do. I still feel like we need to fix how that part of the packager works some how. Not sure if anyone has any ideas here. |
davidaurelio
commented
Mar 8, 2016
The best thing I can think of right now is not to use haste imports in react native at all, either by changing that directly in the source, or by rewriting it during @cpojer that would be nice :-) I just checked, and jest still uses node-haste@^2.5.0. i.e. we should be good? |
cpojer
commented
Mar 8, 2016
@davidaurelio as long as we revert to whatever 2.5 did is fine. 2.6.0 breaks Jest pretty badly (and rn too I think). |
davidaurelio
commented
Mar 8, 2016
👍 I will be careful |
Supersedes #6343.
Note...this is just updating some Jest/node-haste configuration and the Shrinkwrap. The shrinkwrap update is what is key here.
Do not merge until CI passes :)
cc @mkonicek@bestander