Page MenuHomePhabricator

`npm run selenium` fails on MW Vagrant (SyntaxError: Unexpected identifier; due to Node 6)
Closed, DuplicatePublic

Description

1~/Documents/gerrit/mediawiki/vagrant$ vagrant ssh
2...
3
4vagrant@vagrant:/vagrant/mediawiki$ node -v
5v6.17.1
6
7vagrant@vagrant:/vagrant/mediawiki$ npm -v
82.15.12
9
10vagrant@vagrant:~$ cd /vagrant/mediawiki/
11
12vagrant@vagrant:/vagrant/mediawiki$ rm -rf node_modules/
13
14vagrant@vagrant:/vagrant/mediawiki$ npm install
15...
16
17vagrant@vagrant:/vagrant/mediawiki$ npm run selenium
18
19> @ selenium /vagrant/mediawiki
20> wdio ./tests/selenium/wdio.conf.js
21
22/vagrant/mediawiki/node_modules/@wdio/cli/build/launcher.js:62
23 async run() {
24 ^^^
25
26SyntaxError: Unexpected identifier
27 at createScript (vm.js:56:10)
28 at Object.runInThisContext (vm.js:97:10)
29 at Module._compile (module.js:549:28)
30 at Object.Module._extensions..js (module.js:586:10)
31 at Module.load (module.js:494:32)
32 at tryModuleLoad (module.js:453:12)
33 at Function.Module._load (module.js:445:3)
34 at Module.require (module.js:504:17)
35 at require (internal/module.js:20:19)
36 at Object.<anonymous> (/vagrant/mediawiki/node_modules/@wdio/cli/build/index.js:14:40)
37
38npm ERR! Linux 4.9.0-9-amd64
39npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "selenium"
40npm ERR! node v6.17.1
41npm ERR! npm v2.15.12
42npm ERR! code ELIFECYCLE
43npm ERR! @ selenium: `wdio ./tests/selenium/wdio.conf.js`
44npm ERR! Exit status 1
45npm ERR!
46npm ERR! Failed at the @ selenium script 'wdio ./tests/selenium/wdio.conf.js'.
47npm ERR! This is most likely a problem with the package,
48npm ERR! not with npm itself.
49npm ERR! Tell the author that this fails on your system:
50npm ERR! wdio ./tests/selenium/wdio.conf.js
51npm ERR! You can get information on how to open an issue for this project with:
52npm ERR! npm bugs
53npm ERR! Or if that isn't available, you can get their info via:
54npm ERR!
55npm ERR! npm owner ls
56npm ERR! There is likely additional logging output above.
57
58npm ERR! Please include the following file with any support request:
59npm ERR! /vagrant/mediawiki/npm-debug.log

TODO

Event Timeline

@Krinkle I guess that's caused by node v6 in mediawiki-vagrant?

Yes, all our CI requires Node 10 and npm 6.5+ as of a few months ago.

If you're personally blocked, perhaps use Fresh-node to run these tests. That should work even against MediaWiki-Vagrant.

zeljkofilipin updated the task description. (Show Details)
zeljkofilipin updated the task description. (Show Details)

@Krinkle thank for the quick reply. I'm not blocked. There are other ways of running tests, as you have said.

Jdforrester-WMF renamed this task from `npm run selenium` fails with `SyntaxError: Unexpected identifier` to `npm run selenium` fails with `SyntaxError: Unexpected identifier` when trying to run on node 6.Oct 23 2019, 5:34 PM
Jdforrester-WMF subscribed.

If you add npm::node_version: 10 to hieradata/common.yaml it should work.

Krinkle renamed this task from `npm run selenium` fails with `SyntaxError: Unexpected identifier` when trying to run on node 6 to `npm run selenium` fails on MW Vagrant (SyntaxError: Unexpected identifier; due to Node 6).Oct 23 2019, 5:38 PM

Change 545832 had a related patch set uploaded (by Zfilipin; owner: Zfilipin):
[mediawiki/vagrant@master] WIP Update Node.js to v10

https://gerrit.wikimedia.org/r/545832

Something is still wrong. :/

1vagrant@vagrant:/vagrant/mediawiki$ node -v
2v10.17.0
3
4vagrant@vagrant:/vagrant/mediawiki$ npm -v
52.15.12
6
7vagrant@vagrant:/vagrant/mediawiki$ rm -rf node_modules/
8
9vagrant@vagrant:/vagrant/mediawiki$ time npm i
10npm WARN peerDependencies The peer dependency eslint@>=2.3.0 included from eslint-plugin-mediawiki will no
11npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
12npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
13npm WARN peerDependencies The peer dependency stylelint@^11.0.0 included from grunt-stylelint will no
14npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
15npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
16npm WARN engine fibers_node_v8@3.1.5: wanted: {"node":">=8.0.0 <10.0.0"} (current: {"node":"10.17.0","npm":"2.15.12"})
17npm WARN optional dep failed, continuing fsevents@2.1.1
18
19> fibers_node_v8@3.1.5 preinstall /vagrant/mediawiki/node_modules/@wdio/sync/node_modules/fibers_node_v8
20> node preinstall.js
21
22
23> fibers_node_v8@3.1.5 install /vagrant/mediawiki/node_modules/@wdio/sync/node_modules/fibers_node_v8
24> node build.js
25
26ignore install
27npm WARN optional dep failed, continuing fsevents@1.2.9
28
29> fibers@4.0.2 install /vagrant/mediawiki/node_modules/@wdio/sync/node_modules/fibers
30> node build.js || nodejs build.js
31
32`linux-x64-64-glibc` exists; testing
33Binary is fine; exiting
34npm WARN deprecated circular-json@0.5.9: CircularJSON is in maintenance only, flatted is its successor.
35
36> puppeteer-core@1.20.0 install /vagrant/mediawiki/node_modules/@wdio/devtools-service/node_modules/puppeteer-core
37> node install.js
38
39|
40> chromedriver@73.0.0 install /vagrant/mediawiki/node_modules/chromedriver
41> node install.js
42
43ChromeDriver binary exists. Validating...
44Current existing ChromeDriver binary is unavailable, proceding with download and extraction.
45Downloading from file: https://chromedriver.storage.googleapis.com/73.0.3683.20/chromedriver_linux64.zip
46Saving to file: /tmp/73.0.3683.20/chromedriver/chromedriver_linux64.zip
47Received 781K...
48Received 1568K...
49Received 2352K...
50Received 3136K...
51Received 3920K...
52Received 4704K...
53Received 4892K total.
54Extracting zip contents
55Copying to target path /vagrant/mediawiki/node_modules/chromedriver/lib/chromedriver
56Fixing file permissions
57Done. ChromeDriver binary available at /vagrant/mediawiki/node_modules/chromedriver/lib/chromedriver/chromedriver
58\
59> sauce-connect-launcher@1.3.1 postinstall /vagrant/mediawiki/node_modules/@wdio/sauce-service/node_modules/sauce-connect-launcher
60> node scripts/install.js || nodejs scripts/install.js
61
62
63> core-js@2.6.10 postinstall /vagrant/mediawiki/node_modules/karma/node_modules/core-js
64> node postinstall || echo "ignore"
65
66
67> core-js@3.2.1 postinstall /vagrant/mediawiki/node_modules/@wdio/devtools-service/node_modules/core-js
68> node scripts/postinstall || echo "ignore"
69
70karma-qunit@2.1.0 node_modules/karma-qunit
71
72jpeg-js@0.3.5 node_modules/jpeg-js
73
74karma-firefox-launcher@1.1.0 node_modules/karma-firefox-launcher
75
76grunt-banana-checker@0.8.1 node_modules/grunt-banana-checker
77
78karma-chrome-launcher@2.2.0 node_modules/karma-chrome-launcher
79├── fs-access@1.0.1 (null-check@1.0.0)
80└── which@1.3.1 (isexe@2.0.0)
81
82grunt-contrib-copy@1.0.0 node_modules/grunt-contrib-copy
83├── file-sync-cmp@0.1.1
84└── chalk@1.1.3 (escape-string-regexp@1.0.5, supports-color@2.0.0, ansi-styles@2.2.1, strip-ansi@3.0.1, has-ansi@2.0.0)
85
86karma-mocha-reporter@2.2.5 node_modules/karma-mocha-reporter
87├── log-symbols@2.2.0
88├── strip-ansi@4.0.0 (ansi-regex@3.0.0)
89└── chalk@2.4.2 (escape-string-regexp@1.0.5, supports-color@5.5.0, ansi-styles@3.2.1)
90
91@wdio/dot-reporter@5.13.2 node_modules/@wdio/dot-reporter
92├── chalk@2.4.2 (escape-string-regexp@1.0.5, supports-color@5.5.0, ansi-styles@3.2.1)
93└── @wdio/reporter@5.13.2 (fs-extra@8.1.0)
94
95qunit@2.9.1 node_modules/qunit
96├── commander@2.12.2
97├── node-watch@0.6.0
98├── minimatch@3.0.4 (brace-expansion@1.1.11)
99├── js-reporters@1.2.1
100└── resolve@1.5.0 (path-parse@1.0.6)
101
102@wdio/sync@5.13.2 node_modules/@wdio/sync
103├── @wdio/utils@5.13.2 (deepmerge@4.2.1)
104├── fibers_node_v8@3.1.5 (detect-libc@1.0.3)
105├── @wdio/logger@5.13.2 (loglevel-plugin-prefix@0.8.4, strip-ansi@5.2.0, loglevel@1.6.4, chalk@2.4.2)
106├── @wdio/config@5.13.2 (deepmerge@4.2.1, glob@7.1.5)
107└── fibers@4.0.2 (detect-libc@1.0.3)
108
109wdio-chromedriver-service@5.0.2 node_modules/wdio-chromedriver-service
110└── fs-extra@0.30.0 (path-is-absolute@1.0.1, klaw@1.3.1, jsonfile@2.4.0, graceful-fs@4.2.3, rimraf@2.7.1)
111
112postcss-less@2.0.0 node_modules/postcss-less
113└── postcss@5.2.18 (supports-color@3.2.3, js-base64@2.5.1, source-map@0.5.7, chalk@1.1.3)
114
115chromedriver@73.0.0 node_modules/chromedriver
116├── tcp-port-used@1.0.1 (debug@4.1.0, is2@2.0.1)
117├── mkdirp@0.5.1 (minimist@0.0.8)
118├── extract-zip@1.6.7 (debug@2.6.9, yauzl@2.4.1, concat-stream@1.6.2)
119├── del@3.0.0 (is-path-cwd@1.0.0, pify@3.0.0, p-map@1.2.0, is-path-in-cwd@1.0.1, globby@6.1.0, rimraf@2.7.1)
120└── request@2.88.0 (aws-sign2@0.7.0, forever-agent@0.6.1, tunnel-agent@0.6.0, oauth-sign@0.9.0, caseless@0.12.0, is-typedarray@1.0.0, safe-buffer@5.2.0, aws4@1.8.0, isstream@0.1.2, json-stringify-safe@5.0.1, extend@3.0.2, performance-now@2.1.0, qs@6.5.2, uuid@3.3.3, combined-stream@1.0.8, mime-types@2.1.24, tough-cookie@2.4.3, form-data@2.3.3, http-signature@1.2.0, har-validator@5.1.3)
121
122grunt-svgmin@5.0.0 node_modules/grunt-svgmin
123├── pretty-bytes@4.0.2
124├── log-symbols@2.2.0
125├── each-async@1.1.1 (set-immediate-shim@1.0.1, onetime@1.1.0)
126├── chalk@2.4.2 (escape-string-regexp@1.0.5, supports-color@5.5.0, ansi-styles@3.2.1)
127└── svgo@1.3.0 (sax@1.2.4, unquote@1.1.1, stable@0.1.8, css-select-base-adapter@0.1.1, coa@2.0.2, mkdirp@0.5.1, css-select@2.0.2, js-yaml@3.13.1, object.values@1.1.0, util.promisify@1.0.0, css-tree@1.0.0-alpha.33, csso@3.5.1)
128
129wdio-mediawiki@0.5.0 node_modules/wdio-mediawiki
130└── mwbot@1.0.10 (bluebird@3.7.1, semlog@0.6.10, request@2.88.0)
131
132grunt-contrib-watch@1.1.0 node_modules/grunt-contrib-watch
133├── gaze@1.1.3 (globule@1.2.1)
134├── tiny-lr@1.1.1 (object-assign@4.1.1, livereload-js@2.4.0, qs@6.9.0, debug@3.2.6, body@5.1.0, faye-websocket@0.10.0)
135├── async@2.6.3
136└── lodash@4.17.15
137
138grunt-karma@3.0.2 node_modules/grunt-karma
139└── lodash@4.17.15
140
141@wdio/junit-reporter@5.13.2 node_modules/@wdio/junit-reporter
142├── json-stringify-safe@5.0.1
143├── @wdio/reporter@5.13.2 (fs-extra@8.1.0)
144├── validator@11.1.0
145└── junit-report-builder@1.3.3 (date-format@0.0.2, xmlbuilder@10.1.1, mkdirp@0.5.1, lodash@4.17.15)
146
147grunt@1.0.4 node_modules/grunt
148├── grunt-known-options@1.1.1
149├── path-is-absolute@1.0.1
150├── eventemitter2@0.4.14
151├── exit@0.1.2
152├── nopt@3.0.6 (abbrev@1.1.1)
153├── coffeescript@1.10.0
154├── glob@7.0.6 (inherits@2.0.4, fs.realpath@1.0.0, once@1.4.0, inflight@1.0.6)
155├── minimatch@3.0.4 (brace-expansion@1.1.11)
156├── iconv-lite@0.4.24 (safer-buffer@2.1.2)
157├── mkdirp@0.5.1 (minimist@0.0.8)
158├── findup-sync@0.3.0 (glob@5.0.15)
159├── rimraf@2.6.3 (glob@7.1.5)
160├── grunt-cli@1.2.0 (resolve@1.1.7)
161├── js-yaml@3.13.1 (esprima@4.0.1, argparse@1.0.10)
162├── dateformat@1.0.12 (get-stdin@4.0.1, meow@3.7.0)
163├── grunt-legacy-log@2.0.0 (hooker@0.2.3, colors@1.1.2, grunt-legacy-log-utils@2.0.1, lodash@4.17.15)
164└── grunt-legacy-util@1.1.1 (getobject@0.1.0, async@1.5.2, hooker@0.2.3, which@1.3.1, underscore.string@3.3.5, lodash@4.17.15)
165
166@wdio/sauce-service@5.13.2 node_modules/@wdio/sauce-service
167├── @wdio/logger@5.13.2 (loglevel-plugin-prefix@0.8.4, strip-ansi@5.2.0, loglevel@1.6.4, chalk@2.4.2)
168├── saucelabs@2.3.0 (change-case@3.1.0, hash.js@1.1.7, yargs@13.3.0, request@2.88.0)
169└── sauce-connect-launcher@1.3.1 (adm-zip@0.4.13, rimraf@2.7.1, https-proxy-agent@3.0.1, async@2.6.3, lodash@4.17.15)
170
171@wdio/local-runner@5.13.2 node_modules/@wdio/local-runner
172├── async-exit-hook@2.0.1
173├── stream-buffers@3.0.2
174├── @wdio/logger@5.13.2 (loglevel-plugin-prefix@0.8.4, strip-ansi@5.2.0, loglevel@1.6.4, chalk@2.4.2)
175├── @wdio/repl@5.13.2 (@wdio/config@5.13.2)
176└── @wdio/runner@5.13.2 (@wdio/utils@5.13.2, deepmerge@4.2.1, @wdio/config@5.13.2, gaze@1.1.3)
177
178@wdio/mocha-framework@5.13.2 node_modules/@wdio/mocha-framework
179├── @wdio/config@5.13.2 (deepmerge@4.2.1, glob@7.1.5)
180├── @wdio/logger@5.13.2 (loglevel-plugin-prefix@0.8.4, strip-ansi@5.2.0, loglevel@1.6.4, chalk@2.4.2)
181└── mocha@6.2.2 (browser-stdout@1.3.1, escape-string-regexp@1.0.5, strip-json-comments@2.0.1, ms@2.1.1, ansi-colors@3.2.3, he@1.2.0, growl@1.10.5, debug@3.2.6, supports-color@6.0.0, yargs-parser@13.1.1, which@1.3.1, diff@3.5.0, glob@7.1.3, minimatch@3.0.4, object.assign@4.1.0, wide-align@1.1.3, mkdirp@0.5.1, find-up@3.0.0, log-symbols@2.2.0, js-yaml@3.13.1, yargs@13.3.0, node-environment-flags@1.0.5, yargs-unparser@1.6.0)
182
183webdriverio@5.13.2 node_modules/webdriverio
184├── lodash.isplainobject@4.0.6
185├── lodash.zip@4.2.0
186├── lodash.isobject@3.0.2
187├── @wdio/repl@5.13.2
188├── lodash.clonedeep@4.5.0
189├── css-value@0.0.1
190├── rgb2hex@0.1.9
191├── grapheme-splitter@1.0.4
192├── resq@1.6.1 (fast-deep-equal@2.0.1)
193├── @wdio/utils@5.13.2 (deepmerge@4.2.1)
194├── serialize-error@5.0.0 (type-fest@0.8.1)
195├── @wdio/logger@5.13.2 (loglevel-plugin-prefix@0.8.4, strip-ansi@5.2.0, loglevel@1.6.4, chalk@2.4.2)
196├── @wdio/config@5.13.2 (deepmerge@4.2.1, glob@7.1.5)
197├── webdriver@5.13.2 (lodash.merge@4.6.2, @wdio/protocols@5.13.2, request@2.88.0)
198└── archiver@3.1.1 (buffer-crc32@0.2.13, tar-stream@2.1.0, glob@7.1.5, readable-stream@3.4.0, archiver-utils@2.1.0, zip-stream@2.1.2, async@2.6.3)
199
200karma@3.1.4 node_modules/karma
201├── combine-lists@1.0.1
202├── range-parser@1.2.1
203├── safe-buffer@5.2.0
204├── rimraf@2.7.1
205├── graceful-fs@4.2.3
206├── di@0.0.1
207├── flatted@2.0.1
208├── qjobs@1.2.0
209├── tmp@0.0.33 (os-tmpdir@1.0.2)
210├── mime@2.4.4
211├── colors@1.4.0
212├── source-map@0.6.1
213├── isbinaryfile@3.0.3 (buffer-alloc@1.2.0)
214├── dom-serialize@2.2.1 (void-elements@2.0.1, custom-event@1.0.1, extend@3.0.2, ent@2.2.0)
215├── glob@7.1.5 (path-is-absolute@1.0.1, inherits@2.0.4, fs.realpath@1.0.0, inflight@1.0.6, once@1.4.0)
216├── minimatch@3.0.4 (brace-expansion@1.1.11)
217├── useragent@2.3.0 (lru-cache@4.1.5)
218├── bluebird@3.7.1
219├── optimist@0.6.1 (wordwrap@0.0.3, minimist@0.0.10)
220├── connect@3.7.0 (utils-merge@1.0.1, parseurl@1.3.3, debug@2.6.9, finalhandler@1.1.2)
221├── body-parser@1.19.0 (content-type@1.0.4, bytes@3.1.0, depd@1.1.2, qs@6.7.0, on-finished@2.3.0, raw-body@2.4.0, http-errors@1.7.2, debug@2.6.9, type-is@1.6.18, iconv-lite@0.4.24)
222├── http-proxy@1.18.0 (requires-port@1.0.0, eventemitter3@4.0.0, follow-redirects@1.9.0)
223├── expand-braces@0.1.2 (array-unique@0.2.1, array-slice@0.2.3, braces@0.1.5)
224├── log4js@3.0.6 (rfdc@1.1.4, date-format@1.2.0, circular-json@0.5.9, debug@3.2.6, streamroller@0.7.0)
225├── socket.io@2.1.1 (socket.io-adapter@1.1.1, has-binary2@1.0.3, socket.io-parser@3.2.0, debug@3.1.0, engine.io@3.2.1, socket.io-client@2.1.1)
226├── chokidar@2.1.8 (async-each@1.0.3, path-is-absolute@1.0.1, normalize-path@3.0.0, inherits@2.0.4, upath@1.2.0, is-glob@4.0.1, is-binary-path@1.0.1, glob-parent@3.1.0, braces@2.3.2, anymatch@2.0.0, readdirp@2.2.1)
227├── lodash@4.17.15
228└── core-js@2.6.10
229
230stylelint-config-wikimedia@0.7.0 node_modules/stylelint-config-wikimedia
231└── stylelint@11.1.1 (postcss-resolve-nested-selector@0.1.1, imurmurhash@0.1.4, mathml-tag-names@2.1.1, slash@3.0.0, balanced-match@1.0.0, globjoin@0.1.4, leven@3.1.0, get-stdin@7.0.0, resolve-from@5.0.0, v8-compile-cache@2.1.0, svg-tags@1.0.0, import-lazy@4.0.0, log-symbols@3.0.0, signal-exit@3.0.2, postcss-safe-parser@4.0.1, postcss-media-query-parser@0.2.3, ignore@5.1.4, style-search@0.1.0, known-css-properties@0.16.0, normalize-selector@0.2.0, postcss-value-parser@4.0.2, html-tags@3.1.0, postcss-less@3.1.4, specificity@0.4.1, postcss-scss@2.0.0, sugarss@2.0.0, postcss-syntax@0.36.2, strip-ansi@5.2.0, postcss-reporter@6.0.1, string-width@4.1.0, debug@4.1.1, execall@2.0.0, global-modules@2.0.0, chalk@2.4.2, postcss-selector-parser@3.1.1, postcss-sass@0.4.1, micromatch@4.0.2, postcss@7.0.19, file-entry-cache@5.0.1, postcss-html@0.36.0, cosmiconfig@5.2.1, postcss-markdown@0.36.0, meow@5.0.0, postcss-jsx@0.36.3, globby@9.2.0, table@5.4.6, autoprefixer@9.7.0, lodash@4.17.15)
232
233stylelint@11.1.1 node_modules/stylelint
234├── postcss-resolve-nested-selector@0.1.1
235├── mathml-tag-names@2.1.1
236├── imurmurhash@0.1.4
237├── globjoin@0.1.4
238├── balanced-match@1.0.0
239├── leven@3.1.0
240├── slash@3.0.0
241├── resolve-from@5.0.0
242├── get-stdin@7.0.0
243├── import-lazy@4.0.0
244├── svg-tags@1.0.0
245├── v8-compile-cache@2.1.0
246├── log-symbols@3.0.0
247├── signal-exit@3.0.2
248├── postcss-safe-parser@4.0.1
249├── known-css-properties@0.16.0
250├── postcss-media-query-parser@0.2.3
251├── ignore@5.1.4
252├── style-search@0.1.0
253├── normalize-selector@0.2.0
254├── postcss-value-parser@4.0.2
255├── html-tags@3.1.0
256├── postcss-less@3.1.4
257├── specificity@0.4.1
258├── postcss-scss@2.0.0
259├── sugarss@2.0.0
260├── postcss-syntax@0.36.2
261├── strip-ansi@5.2.0 (ansi-regex@4.1.0)
262├── postcss-reporter@6.0.1 (log-symbols@2.2.0)
263├── string-width@4.1.0 (is-fullwidth-code-point@3.0.0, emoji-regex@8.0.0)
264├── debug@4.1.1 (ms@2.1.2)
265├── execall@2.0.0 (clone-regexp@2.2.0)
266├── global-modules@2.0.0 (global-prefix@3.0.0)
267├── chalk@2.4.2 (escape-string-regexp@1.0.5, supports-color@5.5.0, ansi-styles@3.2.1)
268├── postcss-selector-parser@3.1.1 (indexes-of@1.0.1, uniq@1.0.1, dot-prop@4.2.0)
269├── postcss-sass@0.4.1 (gonzales-pe@4.2.4)
270├── micromatch@4.0.2 (picomatch@2.0.7, braces@3.0.2)
271├── postcss@7.0.19 (supports-color@6.1.0, source-map@0.6.1)
272├── file-entry-cache@5.0.1 (flat-cache@2.0.1)
273├── postcss-html@0.36.0 (htmlparser2@3.10.1)
274├── cosmiconfig@5.2.1 (is-directory@0.3.1, parse-json@4.0.0, import-fresh@2.0.0, js-yaml@3.13.1)
275├── postcss-markdown@0.36.0 (unist-util-find-all-after@1.0.4, remark@10.0.1)
276├── meow@5.0.0 (trim-newlines@2.0.0, minimist-options@3.0.2, redent@2.0.0, decamelize-keys@1.1.0, camelcase-keys@4.2.0, yargs-parser@10.1.0, loud-rejection@1.6.0, read-pkg-up@3.0.0, normalize-package-data@2.5.0)
277├── postcss-jsx@0.36.3 (@babel/core@7.6.4)
278├── globby@9.2.0 (slash@2.0.0, pify@4.0.1, ignore@4.0.6, array-union@1.0.2, dir-glob@2.2.2, glob@7.1.5, @types/glob@7.1.1, fast-glob@2.2.7)
279├── table@5.4.6 (string-width@3.1.0, slice-ansi@2.1.0, ajv@6.10.2)
280├── autoprefixer@9.7.0 (normalize-range@0.1.2, num2fraction@1.2.2, browserslist@4.7.2, caniuse-lite@1.0.30001004)
281└── lodash@4.17.15
282
283grunt-stylelint@0.12.0 node_modules/grunt-stylelint
284└── chalk@2.4.2 (escape-string-regexp@1.0.5, supports-color@5.5.0, ansi-styles@3.2.1)
285
286@wdio/devtools-service@5.13.2 node_modules/@wdio/devtools-service
287├── stable@0.1.8
288├── weighted-mean@1.0.2
289├── @wdio/logger@5.13.2 (loglevel-plugin-prefix@0.8.4, strip-ansi@5.2.0, loglevel@1.6.4, chalk@2.4.2)
290├── chrome-remote-interface@0.28.0 (commander@2.11.0, ws@6.2.1)
291├── puppeteer-core@1.20.0 (progress@2.0.3, proxy-from-env@1.0.0, mime@2.4.4, debug@4.1.1, ws@6.2.1, rimraf@2.7.1, extract-zip@1.6.7, https-proxy-agent@2.2.3)
292├── speedline@1.4.2 (image-ssim@0.2.0, babar@0.2.0, loud-rejection@1.6.0, @types/node@12.11.6, jpeg-js@0.1.2, meow@3.7.0)
293├── core-js@3.2.1
294└── lighthouse@5.6.0 (lookup-closest-locale@6.0.4, details-element-polyfill@2.4.0, lodash.set@4.3.2, lodash.isequal@4.5.0, http-link-header@0.8.0, js-library-detector@5.5.0, parse-cache-control@1.0.1, robots-parser@2.1.1, metaviewport-parser@0.2.0, semver@5.7.1, open@6.4.0, yargs-parser@7.0.0, ws@3.3.2, intl-pluralrules@1.1.1, configstore@3.1.2, third-party-web@0.11.0, mkdirp@0.5.1, lighthouse-logger@1.2.0, raven@2.6.4, intl-messageformat@4.4.0, yargs@3.32.0, rimraf@2.7.1, jpeg-js@0.1.2, chrome-launcher@0.11.2, speedline-core@1.4.2, update-notifier@2.5.0, cssstyle@1.2.1, jsonlint-mod@1.7.5, jsonld@1.8.1, axe-core@3.3.0, intl@1.2.5, inquirer@3.3.0)
295
296@wdio/cli@5.13.2 node_modules/@wdio/cli
297├── lodash.flattendeep@4.4.0
298├── lodash.union@4.6.0
299├── lodash.pickby@4.6.0
300├── async-exit-hook@2.0.1
301├── cli-spinners@2.2.0
302├── ejs@2.7.1
303├── @wdio/utils@5.13.2 (deepmerge@4.2.1)
304├── @wdio/logger@5.13.2 (loglevel-plugin-prefix@0.8.4, strip-ansi@5.2.0, loglevel@1.6.4)
305├── chalk@2.4.2 (escape-string-regexp@1.0.5, supports-color@5.5.0, ansi-styles@3.2.1)
306├── fs-extra@8.1.0 (universalify@0.1.2, jsonfile@4.0.0, graceful-fs@4.2.3)
307├── log-update@3.3.0 (ansi-escapes@3.2.0, cli-cursor@2.1.0, wrap-ansi@5.1.0)
308├── @wdio/config@5.13.2 (deepmerge@4.2.1, glob@7.1.5)
309├── chokidar@3.2.2 (glob-parent@5.1.0, normalize-path@3.0.0, is-glob@4.0.1, is-binary-path@2.1.0, readdirp@3.2.0, anymatch@3.1.1, braces@3.0.2)
310├── yargs@14.2.0 (decamelize@1.2.0, require-main-filename@2.0.0, set-blocking@2.0.0, which-module@2.0.0, y18n@4.0.0, get-caller-file@2.0.5, require-directory@2.1.1, yargs-parser@15.0.0, string-width@3.1.0, find-up@3.0.0, cliui@5.0.0)
311├── yarn-install@1.0.0 (chalk@1.1.3, cross-spawn@4.0.2, cac@3.0.4)
312└── inquirer@7.0.0 (mute-stream@0.0.8, cli-width@2.2.0, through@2.3.8, strip-ansi@5.2.0, figures@3.1.0, run-async@2.3.0, string-width@4.1.0, ansi-escapes@4.2.1, cli-cursor@3.1.0, external-editor@3.1.0, lodash@4.17.15, rxjs@6.5.3)
313
314eslint@6.5.1 node_modules/eslint
315├── natural-compare@1.4.0
316├── glob-parent@5.1.0
317├── imurmurhash@0.1.4
318├── strip-json-comments@3.0.1
319├── v8-compile-cache@2.1.0
320├── globals@11.12.0
321├── eslint-visitor-keys@1.1.0
322├── progress@2.0.3
323├── ignore@4.0.6
324├── functional-red-black-tree@1.0.1
325├── esutils@2.0.3
326├── semver@6.3.0
327├── doctrine@3.0.0
328├── eslint-utils@1.4.3
329├── text-table@0.2.0
330├── json-stable-stringify-without-jsonify@1.0.1
331├── is-glob@4.0.1 (is-extglob@2.1.1)
332├── strip-ansi@5.2.0 (ansi-regex@4.1.0)
333├── esquery@1.0.1 (estraverse@4.3.0)
334├── debug@4.1.1 (ms@2.1.2)
335├── regexpp@2.0.1
336├── levn@0.3.0 (type-check@0.3.2, prelude-ls@1.1.2)
337├── optionator@0.8.2 (fast-levenshtein@2.0.6, type-check@0.3.2, wordwrap@1.0.0, deep-is@0.1.3, prelude-ls@1.1.2)
338├── eslint-scope@5.0.0 (esrecurse@4.2.1, estraverse@4.3.0)
339├── import-fresh@3.1.0 (resolve-from@4.0.0, parent-module@1.0.1)
340├── @babel/code-frame@7.5.5 (@babel/highlight@7.5.0)
341├── minimatch@3.0.4 (brace-expansion@1.1.11)
342├── mkdirp@0.5.1 (minimist@0.0.8)
343├── cross-spawn@6.0.5 (path-key@2.0.1, nice-try@1.0.5, semver@5.7.1, shebang-command@1.2.0, which@1.3.1)
344├── espree@6.1.2 (acorn-jsx@5.1.0, acorn@7.1.0)
345├── chalk@2.4.2 (escape-string-regexp@1.0.5, supports-color@5.5.0, ansi-styles@3.2.1)
346├── file-entry-cache@5.0.1 (flat-cache@2.0.1)
347├── js-yaml@3.13.1 (esprima@4.0.1, argparse@1.0.10)
348├── table@5.4.6 (string-width@3.1.0, slice-ansi@2.1.0)
349├── ajv@6.10.2 (fast-deep-equal@2.0.1, json-schema-traverse@0.4.1, fast-json-stable-stringify@2.0.0, uri-js@4.2.2)
350├── lodash@4.17.15
351└── inquirer@6.5.2 (ansi-escapes@3.2.0, cli-width@2.2.0, through@2.3.8, figures@2.0.0, mute-stream@0.0.7, run-async@2.3.0, string-width@2.1.1, cli-cursor@2.1.0, external-editor@3.1.0, rxjs@6.5.3)
352
353eslint-plugin-mediawiki@0.1.0 node_modules/eslint-plugin-mediawiki
354
355grunt-eslint@22.0.0 node_modules/grunt-eslint
356├── chalk@2.4.2 (escape-string-regexp@1.0.5, supports-color@5.5.0, ansi-styles@3.2.1)
357└── eslint@6.5.1 (natural-compare@1.4.0, glob-parent@5.1.0, imurmurhash@0.1.4, v8-compile-cache@2.1.0, strip-json-comments@3.0.1, globals@11.12.0, eslint-visitor-keys@1.1.0, progress@2.0.3, ignore@4.0.6, functional-red-black-tree@1.0.1, esutils@2.0.3, semver@6.3.0, doctrine@3.0.0, eslint-utils@1.4.3, text-table@0.2.0, json-stable-stringify-without-jsonify@1.0.1, is-glob@4.0.1, strip-ansi@5.2.0, esquery@1.0.1, debug@4.1.1, regexpp@2.0.1, levn@0.3.0, optionator@0.8.2, eslint-scope@5.0.0, import-fresh@3.1.0, @babel/code-frame@7.5.5, minimatch@3.0.4, cross-spawn@6.0.5, mkdirp@0.5.1, espree@6.1.2, file-entry-cache@5.0.1, js-yaml@3.13.1, table@5.4.6, ajv@6.10.2, lodash@4.17.15, inquirer@6.5.2)
358
359eslint-config-wikimedia@0.15.0 node_modules/eslint-config-wikimedia
360├── eslint-plugin-qunit@4.0.0
361├── eslint-plugin-no-jquery@2.3.0
362├── eslint-plugin-json@1.4.0 (vscode-json-languageservice@3.3.5)
363└── eslint@6.5.1 (natural-compare@1.4.0, imurmurhash@0.1.4, glob-parent@5.1.0, strip-json-comments@3.0.1, v8-compile-cache@2.1.0, globals@11.12.0, eslint-visitor-keys@1.1.0, progress@2.0.3, ignore@4.0.6, functional-red-black-tree@1.0.1, esutils@2.0.3, semver@6.3.0, doctrine@3.0.0, eslint-utils@1.4.3, text-table@0.2.0, json-stable-stringify-without-jsonify@1.0.1, is-glob@4.0.1, strip-ansi@5.2.0, esquery@1.0.1, regexpp@2.0.1, debug@4.1.1, levn@0.3.0, optionator@0.8.2, eslint-scope@5.0.0, import-fresh@3.1.0, @babel/code-frame@7.5.5, minimatch@3.0.4, cross-spawn@6.0.5, mkdirp@0.5.1, espree@6.1.2, chalk@2.4.2, file-entry-cache@5.0.1, js-yaml@3.13.1, table@5.4.6, ajv@6.10.2, lodash@4.17.15, inquirer@6.5.2)
364
365real 17m57.283s
366user 3m10.928s
367sys 19m11.556s

1vagrant@vagrant:/vagrant/mediawiki$ npm run selenium
2
3> @ selenium /vagrant/mediawiki
4> wdio ./tests/selenium/wdio.conf.js
5
6
7Execution of 6 spec files started at 2019-10-24T12:48:09.892Z
8
9/vagrant/mediawiki/node_modules/chromedriver/lib/chromedriver/chromedriver: 1: /vagrant/mediawiki/node_modules/chromedriver/lib/chromedriver/chromedriver: Syntax error: Unterminated quoted string
102019-10-24T12:48:21.377Z ERROR @wdio/cli:utils: A service failed in the 'onPrepare' hook
11Error: timeout
12 at Timeout.timeoutFunc (/vagrant/mediawiki/node_modules/tcp-port-used/index.js:204:25)
13 at ontimeout (timers.js:436:11)
14 at tryOnTimeout (timers.js:300:5)
15 at listOnTimeout (timers.js:263:5)
16 at Timer.processTimers (timers.js:223:10)
17
18Continue...
19[0-0] RUNNING in chrome - /tests/selenium/wdio-mediawiki/specs/BlankPage.js
20[0-0] 2019-10-24T12:48:30.127Z ERROR webdriver: Request failed due to Error: connect ECONNREFUSED 127.0.0.1:4444
21 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
22[0-0] 2019-10-24T12:48:30.129Z ERROR @wdio/runner: Error: connect ECONNREFUSED 127.0.0.1:4444
23 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
240-0 worker error { name: 'Error',
25 message: 'connect ECONNREFUSED 127.0.0.1:4444',
26 stack:
27 'Error: connect ECONNREFUSED 127.0.0.1:4444\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)' }
28[0-0] 2019-10-24T12:48:30.130Z ERROR @wdio/local-runner: Failed launching test session: TypeError: Cannot read property 'capabilities' of null
29 at Runner.run (/vagrant/mediawiki/node_modules/@wdio/runner/build/index.js:68:74)
30 at process._tickCallback (internal/process/next_tick.js:68:7)
31[0-0] FAILED in chrome - /tests/selenium/wdio-mediawiki/specs/BlankPage.js
32[0-1] RUNNING in chrome - /tests/selenium/specs/page.js
33[0-1] 2019-10-24T12:48:38.694Z ERROR webdriver: Request failed due to Error: connect ECONNREFUSED 127.0.0.1:4444
34 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
35[0-1] 2019-10-24T12:48:38.698Z ERROR @wdio/runner: Error: connect ECONNREFUSED 127.0.0.1:4444
36 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
370-1 worker error { name: 'Error',
38 message: 'connect ECONNREFUSED 127.0.0.1:4444',
39 stack:
40 'Error: connect ECONNREFUSED 127.0.0.1:4444\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)' }
41[0-1] 2019-10-24T12:48:38.701Z ERROR @wdio/local-runner: Failed launching test session: TypeError: Cannot read property 'capabilities' of null
42 at Runner.run (/vagrant/mediawiki/node_modules/@wdio/runner/build/index.js:68:74)
43 at process._tickCallback (internal/process/next_tick.js:68:7)
44[0-1] FAILED in chrome - /tests/selenium/specs/page.js
45[0-2] RUNNING in chrome - /tests/selenium/specs/rollback.js
46[0-2] 2019-10-24T12:48:47.736Z ERROR webdriver: Request failed due to Error: connect ECONNREFUSED 127.0.0.1:4444
47 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
48[0-2] 2019-10-24T12:48:47.739Z ERROR @wdio/runner: Error: connect ECONNREFUSED 127.0.0.1:4444
49 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
500-2 worker error { name: 'Error',
51 message: 'connect ECONNREFUSED 127.0.0.1:4444',
52 stack:
53 'Error: connect ECONNREFUSED 127.0.0.1:4444\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)' }
54[0-2] 2019-10-24T12:48:47.742Z ERROR @wdio/local-runner: Failed launching test session: TypeError: Cannot read property 'capabilities' of null
55 at Runner.run (/vagrant/mediawiki/node_modules/@wdio/runner/build/index.js:68:74)
56 at process._tickCallback (internal/process/next_tick.js:68:7)
57[0-2] FAILED in chrome - /tests/selenium/specs/rollback.js
58[0-3] RUNNING in chrome - /tests/selenium/specs/specialrecentchanges.js
59[0-3] 2019-10-24T12:48:56.695Z ERROR webdriver: Request failed due to Error: connect ECONNREFUSED 127.0.0.1:4444
60 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
61[0-3] 2019-10-24T12:48:56.699Z ERROR @wdio/runner: Error: connect ECONNREFUSED 127.0.0.1:4444
62 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
630-3 worker error { name: 'Error',
64 message: 'connect ECONNREFUSED 127.0.0.1:4444',
65 stack:
66 'Error: connect ECONNREFUSED 127.0.0.1:4444\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)' }
67[0-3] 2019-10-24T12:48:56.700Z ERROR @wdio/local-runner: Failed launching test session: TypeError: Cannot read property 'capabilities' of null
68 at Runner.run (/vagrant/mediawiki/node_modules/@wdio/runner/build/index.js:68:74)
69 at process._tickCallback (internal/process/next_tick.js:68:7)
70[0-3] FAILED in chrome - /tests/selenium/specs/specialrecentchanges.js
71[0-4] RUNNING in chrome - /tests/selenium/specs/specialwatchlist.js
72[0-4] 2019-10-24T12:49:05.503Z ERROR webdriver: Request failed due to Error: connect ECONNREFUSED 127.0.0.1:4444
73 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
74[0-4] 2019-10-24T12:49:05.506Z ERROR @wdio/runner: Error: connect ECONNREFUSED 127.0.0.1:4444
75 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
760-4 worker error { name: 'Error',
77 message: 'connect ECONNREFUSED 127.0.0.1:4444',
78 stack:
79 'Error: connect ECONNREFUSED 127.0.0.1:4444\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)' }
80[0-4] 2019-10-24T12:49:05.507Z ERROR @wdio/local-runner: Failed launching test session: TypeError: Cannot read property 'capabilities' of null
81 at Runner.run (/vagrant/mediawiki/node_modules/@wdio/runner/build/index.js:68:74)
82 at process._tickCallback (internal/process/next_tick.js:68:7)
83[0-4] FAILED in chrome - /tests/selenium/specs/specialwatchlist.js
84[0-5] RUNNING in chrome - /tests/selenium/specs/user.js
85[0-5] 2019-10-24T12:49:14.665Z ERROR webdriver: Request failed due to Error: connect ECONNREFUSED 127.0.0.1:4444
86 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
87[0-5] 2019-10-24T12:49:14.668Z ERROR @wdio/runner: Error: connect ECONNREFUSED 127.0.0.1:4444
88 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
890-5 worker error { name: 'Error',
90 message: 'connect ECONNREFUSED 127.0.0.1:4444',
91 stack:
92 'Error: connect ECONNREFUSED 127.0.0.1:4444\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)' }
93[0-5] 2019-10-24T12:49:14.669Z ERROR @wdio/local-runner: Failed launching test session: TypeError: Cannot read property 'capabilities' of null
94 at Runner.run (/vagrant/mediawiki/node_modules/@wdio/runner/build/index.js:68:74)
95 at process._tickCallback (internal/process/next_tick.js:68:7)
96[0-5] FAILED in chrome - /tests/selenium/specs/user.js
97
98Spec Files: 0 passed, 6 failed, 6 total (100% completed) in 00:01:04
99
100
101npm ERR! Linux 4.9.0-9-amd64
102npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "selenium"
103npm ERR! node v10.17.0
104npm ERR! npm v2.15.12
105npm ERR! code ELIFECYCLE
106npm ERR! @ selenium: `wdio ./tests/selenium/wdio.conf.js`
107npm ERR! Exit status 1
108npm ERR!
109npm ERR! Failed at the @ selenium script 'wdio ./tests/selenium/wdio.conf.js'.
110npm ERR! This is most likely a problem with the package,
111npm ERR! not with npm itself.
112npm ERR! Tell the author that this fails on your system:
113npm ERR! wdio ./tests/selenium/wdio.conf.js
114npm ERR! You can get information on how to open an issue for this project with:
115npm ERR! npm bugs
116npm ERR! Or if that isn't available, you can get their info via:
117npm ERR!
118npm ERR! npm owner ls
119npm ERR! There is likely additional logging output above.
120
121npm ERR! Please include the following file with any support request:
122npm ERR! /vagrant/mediawiki/npm-debug.log

That is an exact duplicate of T217113 : namely upgrade MediaWiki Vagrant to use NodeJS 10 :]

We had / have the same issue with Cindy the Browser Bot, see also T229033