Skip to content
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

[Node 10] Prepare for Node 10 #19229

Closed
2 tasks done
hramos opened this issue May 11, 2018 · 14 comments
Closed
2 tasks done

[Node 10] Prepare for Node 10 #19229

hramos opened this issue May 11, 2018 · 14 comments
Labels
Help Wanted :octocat: Issues ideal for external contributors. JavaScript Resolution: Locked This issue was locked by the bot. Type: Discussion Long running discussion.

Comments

@hramos
Copy link
Contributor

hramos commented May 11, 2018

For Discussion

Node 10 is the current Node version as of this writing. While the project requires a minimum of Node 8, we should make sure Node 10 is well supported.

Things that need to be done:

cc @ide, @TheSavior, @grabbou

Environment

N/A

Steps to Reproduce

N/A

Expected Behavior

N/A

Actual Behavior

N/A

@react-native-bot

This comment has been minimized.

@hramos hramos added JavaScript Type: Discussion Long running discussion. Help Wanted :octocat: Issues ideal for external contributors. and removed ❔Needs More Information labels May 12, 2018
@react-native-bot
Copy link
Collaborator

Thanks for posting this! It looks like your issue may be missing some necessary information. Can you run react-native info and edit your issue to include these results under the Environment section?

Thank you for your contributions.

@gengjiawen
Copy link
Contributor

How about a new docker image instead of circle ci ?

@hramos
Copy link
Contributor Author

hramos commented May 16, 2018

We'll likely add a new workflow to run tests on Node 10 alongside the current Node 8 tests. It should be pretty straightforward to get that working, though we don't want to enable that on master until it's green.

@gengjiawen
Copy link
Contributor

I also want to keep node 8 along side with node 10. I just think circle official node image not suitable for react native. The node 10 image will use reactnativeci/android as base image.

@hramos
Copy link
Contributor Author

hramos commented May 17, 2018

What's special about Node 10 that would not work on Circle? What I have in mind is something close to what we already have set up on Circle, but using Node 10 instead. You can see an example here: #19299

It's only testing JavaScript at the moment, but it could be expanded to run all tests in Node 10 in parallel as well (i.e. build the JS bundle using Node 10 and pass that along to test_android).

Note that the build in that PR is failing because test_javascript was failing on master using Node 8 as well.

@gengjiawen
Copy link
Contributor

My thought is that the node 10 will bundle android related library so we just use one image. And also the image can be used by community for their ci system, which I think will save lots time.

@gengjiawen
Copy link
Contributor

Also I have some idea simpilify current ci, like avoid setup avd by using more docker.

@hramos
Copy link
Contributor Author

hramos commented May 18, 2018

Most of the work required to get that working is already in place. Take a look at the docker scripts here. You may need to rebuild the images locally as I am not yet automatically pushing new images to Docker Hub at the moment. I last gave this a try about a week ago and I believe I was blocked on one of the buck failures that was plaguing master. Once we get test_android working again, it should be possible to get that image to work within Circle CI.

@hramos
Copy link
Contributor Author

hramos commented May 18, 2018

You may need to update some of the Dockerfiles in the Containership directory, especially now that we've been bumping SDK versions.

@martabacc
Copy link

martabacc commented May 24, 2018

hi @gengjiawen , want to ask, why you specifically choose for node 8, not node 9?

One of my project is using react-native 0.4xx version, and we cannot run test/build using node 9, it's only works on node 8. Sort of confusing since both are unrelated directly (node and react-native).

Do you have any idea about this?

@fendorio
Copy link

@ronayumik I suspect it is related to the fact that node 9.x line will never enter a Long Term Support state (LTS), and is scheduled to reach end-of-life (EOL) shortly after Node 10 is released.

@gengjiawen
Copy link
Contributor

@ronayumik Can you try node 10 ?
@hramos I have add node 10 to appveyor.yml.

@hramos
Copy link
Contributor Author

hramos commented Sep 7, 2018

We have been running tests using Node 10 for a while now.

@hramos hramos closed this as completed Sep 7, 2018
@facebook facebook locked as resolved and limited conversation to collaborators Sep 7, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Help Wanted :octocat: Issues ideal for external contributors. JavaScript Resolution: Locked This issue was locked by the bot. Type: Discussion Long running discussion.
Projects
None yet
Development

No branches or pull requests

5 participants