-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[Frontend] upgrade node to 12 LTS #2386
Comments
/area front-end |
/priority p2 |
There's an error building frontend docker image related to grpc and node 9, but it goes away with node 12. I don't know why it builds normally during test and release. I think for this reason we should prioritize more on this. /priority p1 |
/remove-priority p2 |
/priority p1 |
Because the package-lock.json is not in sync with package.json. None of the grpc packages are listed inside package-lock.json. We should target to use Cuz I noticed there are alot of implicit version dependencies that can fails anytime - i.e. if we use the versions specified in package-lock.json, the build will fail because there are quite a few bugs which are fixed in later versions of the dependencies. |
@eterna2 thanks for the suggestions, I agree with we should use
For this specific issue, I don't think that's the root cause. They are in https://github.com/kubeflow/pipelines/blob/master/frontend/src/generated/src/apis/metadata/package-lock.json#L203. |
FYI, I found out the error when building docker image is caused by having node_modules in the working dir. If you delete all of them (like in CI environment), the build will pass. |
We are currently using node 9 in dockerfile, but 11 in travis CI. We should sync both to the same version.
Latest LTS node 12 should be the best option.
problem we met: #2305 (comment)
However, I don't think this is very urgent.
Our node server runtime is using node 9. We don't have unit tests for node server.
Client UI code run in the browser, so it doesn't matter. Client UI unit tests run in node 11, it's okay.
Having a single version of node will help clear some confusion, but doesn't solve any real problem. I think it's better to first write some basic unit test coverage for the node server before upgrading node.
Places with node version:
pipelines/frontend/Dockerfile
Line 1 in df41f3f
The text was updated successfully, but these errors were encountered: