|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312 |
- /**
- * @license Copyright 2016 Google Inc. All Rights Reserved.
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
- */
- 'use strict';
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
- return new (P || (P = Promise))(function (resolve, reject) {
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
- step((generator = generator.apply(thisArg, _arguments || [])).next());
- });
- };
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.killAll = exports.launch = exports.Launcher = void 0;
- const childProcess = require("child_process");
- const fs = require("fs");
- const net = require("net");
- const rimraf = require("rimraf");
- const chromeFinder = require("./chrome-finder");
- const random_port_1 = require("./random-port");
- const flags_1 = require("./flags");
- const utils_1 = require("./utils");
- const log = require('lighthouse-logger');
- const spawn = childProcess.spawn;
- const execSync = childProcess.execSync;
- const isWsl = utils_1.getPlatform() === 'wsl';
- const isWindows = utils_1.getPlatform() === 'win32';
- const _SIGINT = 'SIGINT';
- const _SIGINT_EXIT_CODE = 130;
- const _SUPPORTED_PLATFORMS = new Set(['darwin', 'linux', 'win32', 'wsl']);
- const instances = new Set();
- const sigintListener = () => __awaiter(void 0, void 0, void 0, function* () {
- yield killAll();
- process.exit(_SIGINT_EXIT_CODE);
- });
- function launch(opts = {}) {
- return __awaiter(this, void 0, void 0, function* () {
- opts.handleSIGINT = utils_1.defaults(opts.handleSIGINT, true);
- const instance = new Launcher(opts);
- // Kill spawned Chrome process in case of ctrl-C.
- if (opts.handleSIGINT && instances.size === 0) {
- process.on(_SIGINT, sigintListener);
- }
- instances.add(instance);
- yield instance.launch();
- const kill = () => __awaiter(this, void 0, void 0, function* () {
- instances.delete(instance);
- if (instances.size === 0) {
- process.removeListener(_SIGINT, sigintListener);
- }
- return instance.kill();
- });
- return { pid: instance.pid, port: instance.port, kill, process: instance.chrome };
- });
- }
- exports.launch = launch;
- function killAll() {
- return __awaiter(this, void 0, void 0, function* () {
- let errors = [];
- for (const instance of instances) {
- try {
- yield instance.kill();
- // only delete if kill did not error
- // this means erroring instances remain in the Set
- instances.delete(instance);
- }
- catch (err) {
- errors.push(err);
- }
- }
- return errors;
- });
- }
- exports.killAll = killAll;
- class Launcher {
- constructor(opts = {}, moduleOverrides = {}) {
- this.opts = opts;
- this.tmpDirandPidFileReady = false;
- this.fs = moduleOverrides.fs || fs;
- this.rimraf = moduleOverrides.rimraf || rimraf;
- this.spawn = moduleOverrides.spawn || spawn;
- log.setLevel(utils_1.defaults(this.opts.logLevel, 'silent'));
- // choose the first one (default)
- this.startingUrl = utils_1.defaults(this.opts.startingUrl, 'about:blank');
- this.chromeFlags = utils_1.defaults(this.opts.chromeFlags, []);
- this.requestedPort = utils_1.defaults(this.opts.port, 0);
- this.chromePath = this.opts.chromePath;
- this.ignoreDefaultFlags = utils_1.defaults(this.opts.ignoreDefaultFlags, false);
- this.connectionPollInterval = utils_1.defaults(this.opts.connectionPollInterval, 500);
- this.maxConnectionRetries = utils_1.defaults(this.opts.maxConnectionRetries, 50);
- this.envVars = utils_1.defaults(opts.envVars, Object.assign({}, process.env));
- if (typeof this.opts.userDataDir === 'boolean') {
- if (!this.opts.userDataDir) {
- this.useDefaultProfile = true;
- this.userDataDir = undefined;
- }
- else {
- throw new utils_1.InvalidUserDataDirectoryError();
- }
- }
- else {
- this.useDefaultProfile = false;
- this.userDataDir = this.opts.userDataDir;
- }
- }
- get flags() {
- const flags = this.ignoreDefaultFlags ? [] : flags_1.DEFAULT_FLAGS.slice();
- flags.push(`--remote-debugging-port=${this.port}`);
- if (!this.ignoreDefaultFlags && utils_1.getPlatform() === 'linux') {
- flags.push('--disable-setuid-sandbox');
- }
- if (!this.useDefaultProfile) {
- // Place Chrome profile in a custom location we'll rm -rf later
- // If in WSL, we need to use the Windows format
- flags.push(`--user-data-dir=${isWsl ? utils_1.toWinDirFormat(this.userDataDir) : this.userDataDir}`);
- }
- flags.push(...this.chromeFlags);
- flags.push(this.startingUrl);
- return flags;
- }
- static defaultFlags() {
- return flags_1.DEFAULT_FLAGS.slice();
- }
- /** Returns the highest priority chrome installation. */
- static getFirstInstallation() {
- if (utils_1.getPlatform() === 'darwin')
- return chromeFinder.darwinFast();
- return chromeFinder[utils_1.getPlatform()]()[0];
- }
- /** Returns all available chrome installations in decreasing priority order. */
- static getInstallations() {
- return chromeFinder[utils_1.getPlatform()]();
- }
- // Wrapper function to enable easy testing.
- makeTmpDir() {
- return utils_1.makeTmpDir();
- }
- prepare() {
- const platform = utils_1.getPlatform();
- if (!_SUPPORTED_PLATFORMS.has(platform)) {
- throw new utils_1.UnsupportedPlatformError();
- }
- this.userDataDir = this.userDataDir || this.makeTmpDir();
- this.outFile = this.fs.openSync(`${this.userDataDir}/chrome-out.log`, 'a');
- this.errFile = this.fs.openSync(`${this.userDataDir}/chrome-err.log`, 'a');
- // fix for Node4
- // you can't pass a fd to fs.writeFileSync
- this.pidFile = `${this.userDataDir}/chrome.pid`;
- log.verbose('ChromeLauncher', `created ${this.userDataDir}`);
- this.tmpDirandPidFileReady = true;
- }
- launch() {
- return __awaiter(this, void 0, void 0, function* () {
- if (this.requestedPort !== 0) {
- this.port = this.requestedPort;
- // If an explict port is passed first look for an open connection...
- try {
- return yield this.isDebuggerReady();
- }
- catch (err) {
- log.log('ChromeLauncher', `No debugging port found on port ${this.port}, launching a new Chrome.`);
- }
- }
- if (this.chromePath === undefined) {
- const installation = Launcher.getFirstInstallation();
- if (!installation) {
- throw new utils_1.ChromeNotInstalledError();
- }
- this.chromePath = installation;
- }
- if (!this.tmpDirandPidFileReady) {
- this.prepare();
- }
- this.pid = yield this.spawnProcess(this.chromePath);
- return Promise.resolve();
- });
- }
- spawnProcess(execPath) {
- return __awaiter(this, void 0, void 0, function* () {
- const spawnPromise = (() => __awaiter(this, void 0, void 0, function* () {
- if (this.chrome) {
- log.log('ChromeLauncher', `Chrome already running with pid ${this.chrome.pid}.`);
- return this.chrome.pid;
- }
- // If a zero value port is set, it means the launcher
- // is responsible for generating the port number.
- // We do this here so that we can know the port before
- // we pass it into chrome.
- if (this.requestedPort === 0) {
- this.port = yield random_port_1.getRandomPort();
- }
- log.verbose('ChromeLauncher', `Launching with command:\n"${execPath}" ${this.flags.join(' ')}`);
- const chrome = this.spawn(execPath, this.flags, { detached: true, stdio: ['ignore', this.outFile, this.errFile], env: this.envVars });
- this.chrome = chrome;
- this.fs.writeFileSync(this.pidFile, chrome.pid.toString());
- log.verbose('ChromeLauncher', `Chrome running with pid ${chrome.pid} on port ${this.port}.`);
- return chrome.pid;
- }))();
- const pid = yield spawnPromise;
- yield this.waitUntilReady();
- return pid;
- });
- }
- cleanup(client) {
- if (client) {
- client.removeAllListeners();
- client.end();
- client.destroy();
- client.unref();
- }
- }
- // resolves if ready, rejects otherwise
- isDebuggerReady() {
- return new Promise((resolve, reject) => {
- const client = net.createConnection(this.port);
- client.once('error', err => {
- this.cleanup(client);
- reject(err);
- });
- client.once('connect', () => {
- this.cleanup(client);
- resolve();
- });
- });
- }
- // resolves when debugger is ready, rejects after 10 polls
- waitUntilReady() {
- const launcher = this;
- return new Promise((resolve, reject) => {
- let retries = 0;
- let waitStatus = 'Waiting for browser.';
- const poll = () => {
- if (retries === 0) {
- log.log('ChromeLauncher', waitStatus);
- }
- retries++;
- waitStatus += '..';
- log.log('ChromeLauncher', waitStatus);
- launcher.isDebuggerReady()
- .then(() => {
- log.log('ChromeLauncher', waitStatus + `${log.greenify(log.tick)}`);
- resolve();
- })
- .catch(err => {
- if (retries > launcher.maxConnectionRetries) {
- log.error('ChromeLauncher', err.message);
- const stderr = this.fs.readFileSync(`${this.userDataDir}/chrome-err.log`, { encoding: 'utf-8' });
- log.error('ChromeLauncher', `Logging contents of ${this.userDataDir}/chrome-err.log`);
- log.error('ChromeLauncher', stderr);
- return reject(err);
- }
- utils_1.delay(launcher.connectionPollInterval).then(poll);
- });
- };
- poll();
- });
- }
- kill() {
- return new Promise((resolve, reject) => {
- if (this.chrome) {
- this.chrome.on('close', () => {
- delete this.chrome;
- this.destroyTmp().then(resolve);
- });
- log.log('ChromeLauncher', `Killing Chrome instance ${this.chrome.pid}`);
- try {
- if (isWindows) {
- // While pipe is the default, stderr also gets printed to process.stderr
- // if you don't explicitly set `stdio`
- execSync(`taskkill /pid ${this.chrome.pid} /T /F`, { stdio: 'pipe' });
- }
- else {
- process.kill(-this.chrome.pid);
- }
- }
- catch (err) {
- const message = `Chrome could not be killed ${err.message}`;
- log.warn('ChromeLauncher', message);
- reject(new Error(message));
- }
- }
- else {
- // fail silently as we did not start chrome
- resolve();
- }
- });
- }
- destroyTmp() {
- return new Promise(resolve => {
- // Only clean up the tmp dir if we created it.
- if (this.userDataDir === undefined || this.opts.userDataDir !== undefined) {
- return resolve();
- }
- if (this.outFile) {
- this.fs.closeSync(this.outFile);
- delete this.outFile;
- }
- if (this.errFile) {
- this.fs.closeSync(this.errFile);
- delete this.errFile;
- }
- this.rimraf(this.userDataDir, () => resolve());
- });
- }
- }
- exports.Launcher = Launcher;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