-
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
chore(travis): Test on Node 5, don't update npm in newer Nodes #1672
Conversation
Everything passed except Node 4. Not sure what's going on here... |
Retriggered, lets see what happens |
I think what's going here is the build is failing because the log is too long - travis fails the build after 4mb of output - the node5 build has the same errors/warnings as the node4 build but does succeed. |
It might have something to do with |
ok build-essential and g++ are already installed at their latest versions so that doesn't help. trying loglevel silent. the version of npm that comes with 4.2.1 (2.14.7) acts differently than npm with node5 (3.3.6) and latest npm (3.3.10) |
I think they have to be in a new enough version if you want to compile something, the v8 used in Node>=4 can't be compiled via old gcc. Take a look at these lines in .travis.yml of node-sass. |
welp got travis to pass with npm output set to silent: https://travis-ci.org/karma-runner/karma/builds/88365243 |
There were the following issues with your Pull Request
Guidelines are available at http://karma-runner.github.io/0.13/dev/git-commit-msg.html This message was auto-generated by https://gitcop.com |
@mzgol unfortunately both 4.7 and 4.8 both report themselves as 199711 |
There were the following issues with your Pull Request
Guidelines are available at http://karma-runner.github.io/0.13/dev/git-commit-msg.html This message was auto-generated by https://gitcop.com |
node-sass compiles fine on Travis on Node 5: https://travis-ci.org/sass/node-sass/jobs/88302086. I'm checking what else do we need from their config to make it work. |
I'm trying to install the proper gcc/g++ versions and export proper env variables to make the commands use it but |
thanks there's also this: nodejs/nan#506 (comment) |
Hmm, I didn't add any flag and it compiled correctly this time: https://travis-ci.org/karma-runner/karma/jobs/88381644. |
@zoo from the comment:
So my PR in its current state should be fine. :) |
I wonder if the gcc upgrade is needed, maybe g++ is enough? |
yes! installing 4.8 and setting 'CXX=g++-4.8' is the magic - great! |
OK, I've removed some excessive variables & packages, this should still work but let's see. |
71578f8
to
bf5b942
Compare
OK, I've tried with g++5 but the bundles are huge (https://travis-ci.org/karma-runner/karma/jobs/88392214), ~50 MB compared to ~8 MB for 4.8 so I reverted back to 4.8. The tests passed last time so it should be fine but we can wait to be 100% sure. :) |
agreed 5.0 unnecessary - 4.8 is fine thanks |
Thanks guys for working through the compiler swamp :) |
Haha, between my last 2 attempts a new ESLint version got released and the build now fails because of one excessive space. 👯 |
classic - this was as good of a time of this to happen as any tho |
The following code in proxy.js is the problem: exports.create = function (/* config */ config, /* config.proxies */ proxies) {
return createProxyHandler(parseProxyConfig(proxies, config), config.urlRoot)
} Sounds like a regression in ESLint to me, I reported an issue: eslint/eslint#4302. We'll need to workaround it for now, though, I'll have to remove spaces between comments & variable names to make it pass. |
Node 5 includes npm 3 by default so we don't have to update npm to make sure it works on that version. On the other hand, most people don't upgrade npm and just use the default included version, especially that it's very hard to update npm on Windows. It's good to make sure Karma still works with npm 2, especially that Node 4, current LTS will never upgrade to npm 3. g++ got upgraded so that native module compilation works on Node >= 4; otherwise lots of optional packages fail, making the log too large for Travis which in turn kills the job.
Oops, I forgot to add |
@zzo @dignifiedquire All tests passed. This should be ready to go. :) |
spectacular lgtm |
chore(travis): Test on Node 5, don't update npm in newer Nodes
Thanks |
Node.js 4 and newer require g++ newer than the one included in Travis by default. Using the default g++ causes `npm install` to fail on compiled dependencies - currently every such dependency of Protractor is optional so the whole build doesn't fail but it still causes errors & excessive logging. If the number of compiled dependencies grows, install logs might become so big that Travis stops - Karma has been hit by this problem recently. Refs karma-runner/karma#1672
Node.js 4 and newer require g++ newer than the one included in Travis by default. Using the default g++ causes `npm install` to fail on compiled dependencies - currently every such dependency of Protractor is optional so the whole build doesn't fail but it still causes errors & excessive logging. If the number of compiled dependencies grows, install logs might become so big that Travis stops - Karma has been hit by this problem recently. Refs karma-runner/karma#1672
Node.js 4 and newer require g++ newer than the one included in Travis by default. Using the default g++ causes `npm install` to fail on compiled dependencies - currently every such dependency of Protractor is optional so the whole build doesn't fail but it still causes errors & excessive logging. If the number of compiled dependencies grows, install logs might become so big that Travis stops - Karma has been hit by this problem recently. Refs karma-runner/karma#1672
Node.js 4 and newer require g++ newer than the one included in Travis by default. Using the default g++ causes `npm install` to fail on compiled dependencies - currently every such dependency of Protractor is optional so the whole build doesn't fail but it still causes errors & excessive logging. If the number of compiled dependencies grows, install logs might become so big that Travis stops - Karma has been hit by this problem recently. Refs karma-runner/karma#1672
Node.js 4 and newer require g++ newer than the one included in Travis by default. Using the default g++ causes `npm install` to fail on compiled dependencies - currently every such dependency of Protractor is optional so the whole build doesn't fail but it still causes errors & excessive logging. If the number of compiled dependencies grows, install logs might become so big that Travis stops - Karma has been hit by this problem recently. Refs karma-runner/karma#1672
Node.js 4 and newer require g++ newer than the one included in Travis by default. Using the default g++ causes `npm install` to fail on compiled dependencies - currently every such dependency of Protractor is optional so the whole build doesn't fail but it still causes errors & excessive logging. If the number of compiled dependencies grows, install logs might become so big that Travis stops - Karma has been hit by this problem recently. Refs karma-runner/karma#1672
Node 5 includes npm 3 by default so we don't have to update npm to make sure
it works on that version. On the other hand, most people don't upgrade npm
and just use the default included version, especially that it's very hard
to update npm on Windows. It's good to make sure Karma still works with npm 2,
especially that Node 4, current LTS will never upgrade to npm 3.