sitespeedio / sitespeedio/sitespeed.io

Lighthouse plugin make the process exit on latest build

Open
#4,403 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

awaiting response bug
Dominant language
JavaScript
Stars
5k
Forks
624
Avg merge
4h 8m
Merged PRs (30d)
2

Description

Have you read the documentation?
URL

https://www.bbc.co.uk

What are you trying to accomplish

I want to run lighthouse and have some of the key metrics around SEO, Accessibility and Performance output to json.

What browser did you use?

Chrome

How to reproduce
1 - Use latest docker image (sitespeedio/sitespeed.io:36-plus1).
2 - Run the command below

docker run --rm -v "${PWD}:/sitespeed.io" sitespeedio/sitespeed.io:36-plus1 https://www.bbc.co.uk `
  --lighthouse.enable `
  --lighthouse.settings.onlyCategories performance,accessibility,best-practices,seo `
  --browsertime.browser chrome `
  --browsertime.screenshot false `
  --browsertime.video false `
  --browsertime.visualMetrics false `
  --browsertime.cpu true `
  --json-output true `
  --axe.enable `
  --sustainable.useGreenWebHostingAPI true `
  --sustainable.enable `
  --plugins.add analysisstorer `
  --lighthouse.output json `
  --lighthouse.collectLighthouseResult true

3 - Check the output folder and notice there are no lighthouse results in the json data folder or any reference in html files

4 - Notice that disabled-by-default-lighthouse appears in the console output suggesting lighthouse isn't enabled
Log output
PS C:\sitespeed.io> docker run --rm -v "${PWD}:/sitespeed.io" sitespeedio/sitespeed.io:36-plus1 https://www.bbc.co.uk `
>> --lighthouse.enable `
>> --lighthouse.settings.onlyCategories performance,accessibility,best-practices,seo `
>> --browsertime.browser chrome `
>> --browsertime.screenshot false `
>> --browsertime.video false `
>> --browsertime.visualMetrics false `
>> --browsertime.cpu true `
>> --json-output true `
>> --axe.enable `
>> --sustainable.useGreenWebHostingAPI true `
>> --sustainable.enable `
>> --plugins.add analysisstorer `
>> --lighthouse.output json `
>> --lighthouse.collectLighthouseResult true
Google Chrome 131.0.6778.85
Mozilla Firefox 133.0
Microsoft Edge 131.0.2903.70
[2025-01-14 21:55:32] INFO: Versions OS: linux 5.15.167.4-microsoft-standard-WSL2 nodejs: v20.17.0 sitespeed.io: 36.0.0-alpha.2 browsertime: 24.0.0-alpha.5 coach: 8.1.1
[2025-01-14 21:55:32] INFO: Axe version 4.10.2 plugin activated
[2025-01-14 21:55:32] INFO: Use the sustainable web plugin with model 1byte
[2025-01-14 21:55:33] INFO: Running tests using Chrome - 3 iteration(s)
[2025-01-14 21:55:34] INFO: Use Chrome trace categories: -*,disabled-by-default-lighthouse,v8,v8.execute,blink.user_timing,devtools.timeline,disabled-by-default-devtools.timeline,disabled-by-default-devtools.timeline.stack,disabled-by-default-devtools.timeline.frame,disabled-by-default-devtools.timeline.invalidationTracking,loading,latencyInfo
[2025-01-14 21:55:34] INFO: Testing url https://www.bbc.co.uk iteration 1
[2025-01-14 21:55:43] INFO: Take cumulative layout shift screenshot
[2025-01-14 21:55:43] INFO: Take largest contentful paint screenshot
[2025-01-14 21:55:44] INFO: Configure AXE with {
  "enable": true
}
[2025-01-14 21:55:44] INFO: Run AXE with run options {}
[2025-01-14 21:55:47] INFO: https://www.bbc.co.uk TTFB: 140ms DOMContentLoaded: 227ms firstPaint: 227ms LCP: 308ms Load: 1.84s TBT: 580ms CLS:0.0006
[2025-01-14 21:55:48] INFO: Use Chrome trace categories: -*,disabled-by-default-lighthouse,v8,v8.execute,blink.user_timing,devtools.timeline,disabled-by-default-devtools.timeline,disabled-by-default-devtools.timeline.stack,disabled-by-default-devtools.timeline.frame,disabled-by-default-devtools.timeline.invalidationTracking,loading,latencyInfo
[2025-01-14 21:55:48] INFO: Testing url https://www.bbc.co.uk iteration 2
[2025-01-14 21:55:57] INFO: Take cumulative layout shift screenshot
[2025-01-14 21:55:57] INFO: Take largest contentful paint screenshot
[2025-01-14 21:55:58] INFO: Configure AXE with {
  "enable": true
}
[2025-01-14 21:55:58] INFO: Run AXE with run options {}
[2025-01-14 21:56:01] INFO: https://www.bbc.co.uk TTFB: 204ms DOMContentLoaded: 262ms firstPaint: 259ms LCP: 342ms Load: 1.83s TBT: 574ms CLS:0.0006
[2025-01-14 21:56:02] INFO: Use Chrome trace categories: -*,disabled-by-default-lighthouse,v8,v8.execute,blink.user_timing,devtools.timeline,disabled-by-default-devtools.timeline,disabled-by-default-devtools.timeline.stack,disabled-by-default-devtools.timeline.frame,disabled-by-default-devtools.timeline.invalidationTracking,loading,latencyInfo
[2025-01-14 21:56:02] INFO: Testing url https://www.bbc.co.uk iteration 3
[2025-01-14 21:56:10] INFO: Take cumulative layout shift screenshot
[2025-01-14 21:56:10] INFO: Take largest contentful paint screenshot
[2025-01-14 21:56:11] INFO: Configure AXE with {
  "enable": true
}
[2025-01-14 21:56:11] INFO: Run AXE with run options {}
[2025-01-14 21:56:14] INFO: https://www.bbc.co.uk TTFB: 92ms DOMContentLoaded: 171ms firstPaint: 172ms LCP: 385ms Load: 1.72s TBT: 566ms CLS:0.0006
[2025-01-14 21:56:14] INFO: https://www.bbc.co.uk 100 requests, TTFB: 140ms (σ46.00ms 31.6%), firstPaint: 227ms (σ36.00ms 16.4%), FCP: 227ms (σ36.00ms 16.4%), DOMContentLoaded: 227ms (σ37.00ms 17.0%), LCP: 342ms (σ32.00ms 9.1%), CLS: 0.0006 (σ0.00 0%), TBT: 574ms (σ6.00ms 1.0%), CPUBenchmark: 21ms (σ0.00ms 0%), Load: 1.83s (σ54.00ms 3.0%) (3 runs)
[2025-01-14 21:56:14] INFO: Fetch hosting information from The Green Web Foundation
[2025-01-14 21:56:14] INFO: Fetch hosting information from The Green Web Foundation
[2025-01-14 21:56:14] INFO: Fetch hosting information from The Green Web Foundation
[2025-01-14 21:56:19] INFO: HTML stored in /sitespeed.io/sitespeed-result/www.bbc.co.uk/2025-01-14-21-55-32

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the supplied Docker command with the sitespeed.io:36-plus1 image and inspect the Lighthouse plugin and generated output. Confirm why Lighthouse results are absent despite the enabled flags, then verify that the JSON and HTML output contain the collected Lighthouse results and that the process exits normally.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, javascript, node.js
Domain
performance, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.