Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add param for only-categories flag in lighthouse integration #1759

Open
ivanfavi opened this issue Feb 13, 2023 · 0 comments
Open

Add param for only-categories flag in lighthouse integration #1759

ivanfavi opened this issue Feb 13, 2023 · 0 comments

Comments

@ivanfavi
Copy link

ivanfavi commented Feb 13, 2023

Output of the info page

Runtime error encountered: Waiting for DevTools protocol response has exceeded the allotted time. (Method: Runtime.evaluate)
LHError: PROTOCOL_TIMEOUT
    at /usr/lib/node_modules/lighthouse/lighthouse-core/gather/driver.js:348:50
    at new Promise (<anonymous>)
    at Driver.sendCommandToSession (/usr/lib/node_modules/lighthouse/lighthouse-core/gather/driver.js:346:28)
    at Driver.sendCommand (/usr/lib/node_modules/lighthouse/lighthouse-core/gather/driver.js:369:17)
    at ExecutionContext._evaluateInContext (/usr/lib/node_modules/lighthouse/lighthouse-core/gather/driver/execution-context.js:109:42)
    at ExecutionContext.evaluateAsync (/usr/lib/node_modules/lighthouse/lighthouse-core/gather/driver/execution-context.js:146:25)
    at async Function.afterPass (/usr/lib/node_modules/lighthouse/lighthouse-core/gather/gather-runner.js:341:7)
    at async Function.runPass (/usr/lib/node_modules/lighthouse/lighthouse-core/gather/gather-runner.js:614:5)
    at async Function.run (/usr/lib/node_modules/lighthouse/lighthouse-core/gather/gather-runner.js:507:29)
    at async Function._gatherArtifactsFromBrowser (/usr/lib/node_modules/lighthouse/lighthouse-core/runner.js:264:23)

Additional environment details (Operating System, Cloud provider, etc):
If you have a page that takes to much time loading Lighthouse actually completes with this error message:

Runtime error encountered: Waiting for DevTools protocol response has exceeded the allotted time. (Method: Runtime.evaluate)

The max-wait-for-load flag doesn't seem to be working either.

We realize that we can execute all categories except performance one.

Could you add a parameter to manage the flag only-categories values, please?

--only-categories     Only run the specified categories. Available categories: accessibility, best-practices, performance, pwa, se

Steps to reproduce the issue:

  1. lighthouse https://www.betfox.com.gh/sportsbook --output json --chrome-flags='--headless --no-sandbox --disable-dev-shm-usage --disable-storage-reset --disable-gpu' --only-categories performance

Additional information you deem important (e.g. issue happens only occasionally):

node -v  
v16.19.0
npm --version
9.4.2
lighthouse --version
9.6.7
datadog-lighthouse==2.1.1
linux/amd64 gcr.io/datadoghq/agent:7.38.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant