News for hackers. Stuff that matters.
Re:Prototype: Puppeteer for Firefox by mceachen on Tuesday July 23, 2019 @12:04PM (#20507797)
Just like any other module, but slower. There's a substantial bag of bits it needs to fetch (chromium), but that's cached.

I've also noticed that sometimes (in CI, less than 5% of the runs) the installation or run will fail deep in chromium. It's actually spawning a chrome process and tunneling remote commands to the child process to do work, so, I guess the flakiness is (almost) excusable?

Restarting the test always resolves the issue, fwiw.

Re:Prototype: Puppeteer for Firefox by jamesgeck0 on Tuesday July 23, 2019 @01:48PM (#20508671)
You can install Puppeteer without downloading the bundled Chromium (PUPPETEER_SKIP_CHROMIUM_DOWNLOAD env variable), but you need to be careful to use it with a version of Chrome/Chromium that has a compatible dev tools api version.

I too have experienced flakiness in CI where Chrome doesn't always seem to start or quit within a reasonable amount of time. I get around this in production with timeouts that give any lingering Chrome processes a series of increasingly aggressive requests to quit, but my hosted CI environment doesn't like it when I send kill signals to random PIDs.

I'm hoping that this Firefox client will be somewhat more reliable in that regard.

Re:Prototype: Puppeteer for Firefox by ppf on Wednesday July 24, 2019 @03:51AM (#20513106)
I meant installing npm itself.