-
Notifications
You must be signed in to change notification settings - Fork 53
Conversation
This seems cool but CI is choking on the ‘node’ version (that is ‘current’, which is v12.5 I think right now) doing the JS bundle. That seems like it shouldn’t have anything to do with this(!?), so I’ll investigate that I will also see if I can add some sort of performance test (likely just wrapping the jetify call in |
Yes a performance test would be helpful! |
|
@mikehardy the build fails probably because in the install script you are using |
Nah, relying on a package-manager difference to make things work is voodoo I think. npm and yarn are both capable (i use both, depending on the project, but npm in my biggest one - it’s fine). it’s failing to bundle in RN0.60, not failing to jetify, something else is going on. I haven’t investigated yet, it’s still on the list as I work through items today. It will probably be simple, and I need to update rn-androidx-demo to RN0.60-RC3 anyway |
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.
ok, I can reproduce a couple things locally, neither of which seem to be a problem with this PR. RN0.60 + ./gradlew :app:bundleReleaseJsAndAssets
is taking a really really long time right now on linux (but not macOS it seems), and I can reproduce the missing dependency to node-pre-gyp on macOS + node v12. So this PR isn't blocked but I need to fix those things separately, and I'd like the messaging changes I proposed below? What do you think?
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.
Just about have CI all whipped into shape and re-checked this, all looks good. I’ll merge my CI tweaks then re-run this and all should be green (CI, reviews) and fast (this PR). Awesome man
Just for reference for later - the current rn-androidx-demo test suite is running at 3.4-4s forward and (because the build folder is huge) about 20s in reverse Once I commit the CI items and merge/re-run this we'll have the competitive timings from the update. I predict ~1s forward and 5s reverse. |
Well, timing was right on for scaling by CPUs with 2 CPUs, so in CI it was 2x faster - ~2s and ~10s. Nice to see it scales like that actually. This is a great addition, I can’t think of a single reason at this point why someone would object to relying on this to ease the AndroidX pain. Thanks @m4tt72 |
Jetify files in parallel using node
child_process
.Removing the
console.log
from the loop makes thejetifier
faster