From 4c330f970edc73bbfb0071a2135d7d3ff8e1ce22 Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Mon, 29 Jan 2024 16:41:28 +0100 Subject: [PATCH 1/2] fix: add --disable-dev-shm-usage to chrome flags --- lighthouse/runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lighthouse/runner.py b/lighthouse/runner.py index 53a37c0..867231c 100644 --- a/lighthouse/runner.py +++ b/lighthouse/runner.py @@ -116,7 +116,7 @@ def _run(self, url:str, form_factor:str='mobile', quiet:bool=True, 'lighthouse', url, '--quiet' if quiet else '', - '--chrome-flags="--headless --no-sandbox"', + '--chrome-flags="--headless --no-sandbox --disable-dev-shm-usage"', '--preset=perf', '--emulated-form-factor={0}'.format(form_factor), '--output=json', From 1f66e8e828e0f4c4d2055851c172df91cdf3c3d9 Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Mon, 29 Jan 2024 17:03:43 +0100 Subject: [PATCH 2/2] fix: add --no-enable-error-reporting lh flags --- lighthouse/runner.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lighthouse/runner.py b/lighthouse/runner.py index 867231c..6b6c0a5 100644 --- a/lighthouse/runner.py +++ b/lighthouse/runner.py @@ -122,6 +122,7 @@ def _run(self, url:str, form_factor:str='mobile', quiet:bool=True, '--output=json', '--output=html', '--output-path={0}'.format(self.report_path), + '--no-enable-error-reporting', ] # Run the Lighthouse CLI command