[wp-trac] [WordPress Trac] #49621: Travis: Download Chromium for e2e tests only
WordPress Trac
noreply at wordpress.org
Wed Mar 11 01:57:36 UTC 2020
#49621: Travis: Download Chromium for e2e tests only
------------------------------+--------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.4
Component: Build/Test Tools | Version:
Severity: normal | Keywords:
Focuses: |
------------------------------+--------------------
Every other commit or so, tests randomly fail with a message like this:
{{{
> puppeteer at 2.1.1 install /home/travis/build/WordPress/wordpress-
develop/node_modules/puppeteer
> node install.js
ERROR: Failed to download Chromium r722234! Set
"PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
{ Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
-- ASYNC --
at BrowserFetcher.<anonymous> (/home/travis/build/WordPress/wordpress-
develop/node_modules/puppeteer/lib/helper.js:111:15)
at Object.<anonymous> (/home/travis/build/WordPress/wordpress-
develop/node_modules/puppeteer/install.js:66:16)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js
(internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
at startup (internal/bootstrap/node.js:285:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3) errno:
'ECONNRESET', code: 'ECONNRESET', syscall: 'read' }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! puppeteer at 2.1.1 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the puppeteer at 2.1.1 install script.
}}}
Chromium is only needed for e2e tests and should not be downloaded for PHP
or JS tests.
This will also speed up the tests a bit by not downloading ~120 MB over
and over again on every run.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49621>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list