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

Upgrade to Node 8 (LTS) on CI #1160

Closed
Reinmar opened this issue Jul 17, 2018 · 12 comments
Closed

Upgrade to Node 8 (LTS) on CI #1160

Reinmar opened this issue Jul 17, 2018 · 12 comments
Assignees
Labels
type:task This issue reports a chore (non-production change) and other types of "todos".
Milestone

Comments

@Reinmar
Copy link
Member

Reinmar commented Jul 17, 2018

Right now we've got this:

$ nvm install 6
Downloading and installing node v6.14.3...
Downloading https://nodejs.org/dist/v6.14.3/node-v6.14.3-linux-x64.tar.xz...
Computing checksum with sha256sum
Checksums matched!
Now using node v6.14.3 (npm v3.10.10)
$ node --version
v6.14.3
$ npm --version
3.10.10
$ nvm --version
0.33.11

This applies to ckeditor5, ckeditor5-* and ckeditor5-dev-*

@Reinmar Reinmar added status:confirmed type:task This issue reports a chore (non-production change) and other types of "todos". labels Jul 17, 2018
@Reinmar Reinmar added this to the iteration 20 milestone Jul 17, 2018
@pomek
Copy link
Member

pomek commented Jul 17, 2018

@pomek
Copy link
Member

pomek commented Jul 17, 2018

$ node --version
v8.11.3
$ npm --version
5.6.0

...

Chrome 67.0.3396 (Linux 0.0.0): Executed 8989 of 8989 SUCCESS (2 mins 47.073 secs / 25.071 secs)

I will update everything tomorrow.

@Reinmar
Copy link
Member Author

Reinmar commented Jul 17, 2018

Looking at this:

image

We're about to observe a nice performance boost :)

@pomek
Copy link
Member

pomek commented Jul 26, 2018

It works for the ckeditor5. However, it won't for the rest packages (ckeditor5-*).

I don't understand what happened and why it does not work.

After upgrading the version to 8, everything works fine until we call ckeditor5-dev-tests-install-dependencies. After working of this script, the next step (which is ckeditor5-dev-tests-travis) throws an error:

$ ckeditor5-dev-tests-travis
ckeditor5-dev-tests-travis: command not found

Somehow node_modules/.bin/ is empty. Some weird things happen between bootstrapping and testing. I will debug it…

@pomek
Copy link
Member

pomek commented Aug 23, 2018

Finally, it works! Npm must be installed in version 5.7.1 at least.

Npm could not find bin files because of package-lock.json which has higher priority than package.json (which Lerna creates in order to hoist dependencies). After disabling creating package-lock.json, everything seems to work.

pomek pushed a commit to ckeditor/ckeditor5-autoformat that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-alignment that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-adapter-ckfinder that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-autosave that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-basic-styles that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-block-quote that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-cloud-services that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-clipboard that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-easy-image that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-core that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-editor-balloon that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-editor-classic that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-editor-decoupled that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-editor-inline that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-enter that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-essentials that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-font that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-engine that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-highlight that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-heading that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-image that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-link that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-list that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-markdown-gfm that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-paragraph that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-table that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-typing that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-theme-lark that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-undo that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-ui that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-upload that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-utils that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to ckeditor/ckeditor5-widget that referenced this issue Aug 23, 2018
Internal: Upgraded version of Node on Travis. See ckeditor/ckeditor5#1160.
pomek pushed a commit to cksource/mrgit that referenced this issue Aug 23, 2018
pomek pushed a commit to ckeditor/ckeditor5-dev that referenced this issue Aug 23, 2018
@pomek pomek closed this as completed in cd24a12 Aug 23, 2018
@pomek
Copy link
Member

pomek commented Aug 23, 2018

A version of NPM must be at least @5.7.1 (npm/npm#17929 (comment)).

@Reinmar
Copy link
Member Author

Reinmar commented Aug 23, 2018

Why did you lock the version of npm to ^5.7.1? What about 5.8.0, 6.0.0, etc?

@pomek
Copy link
Member

pomek commented Aug 23, 2018

I locked npm@^5.7.1.

@Reinmar
Copy link
Member Author

Reinmar commented Aug 23, 2018

I know. That will install 5.8.0 (my mistake above), but won't install 6.0.0. Was that on purpose?

@pomek
Copy link
Member

pomek commented Aug 24, 2018

Yes. Node 8 installs NPM 5 by default. I just upgraded it to the latest version.

@Reinmar
Copy link
Member Author

Reinmar commented Aug 24, 2018

But did you limit that version to npm 5.x on purpose?

@pomek
Copy link
Member

pomek commented Aug 24, 2018

I decided to go with npm 5.x but at least 5.7.1 because I thought that npm 5 is somehow connected to Node 8.

If we would go with npm >=5.7.1, most probably everything should work as well.

Let me know whether I should update it or leave it as it is now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:task This issue reports a chore (non-production change) and other types of "todos".
Projects
None yet
Development

No branches or pull requests

2 participants