-
Notifications
You must be signed in to change notification settings - Fork 74
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
Fails to run silently in CI #118
Comments
Currently pwmetrics uses a commit-specific version of lighthouse see package.json. Lighthouse has had in the past some problems runnning in headless mode GoogleChrome/lighthouse#2008, ensure if the differences between our lighthouse version and stable one has an impact on the headless mode. We should converge with the stable lighthouse version as soon as a new major version is released (expected to be during Google I/O this week). Also your config file might be wrong, chrome-flags should be without '' I think. Never tested chrome-specific flags in pwmetrics. |
Ok maybe ill just wait till #119 is resolved If there is anything i can help with let me know .. thanks |
We are waiting for GoogleChrome/lighthouse#2251 to be resolved before we move to lighthouse v2 official non-alpha. There has been frequent daily work on the PR so it shouldn't be long. Maybe see if you can speed it along there? |
@jooj123 we've published v3. Can you still reproduce this issue? |
@denar90 ill try to test this out again tommorrow - thanks |
@jooj123 Just ran into the same issue as you. Checked the source and I noticed chrome flags has to pass an array into pwmetrics and the name is camel-cased. When I changed my options to: flags: {
'chromeFlags': ['--headless']
} I can get pwmetrics to run in headless Chrome. |
Updated the readme with #126. |
Not entirely sure if this is a bug - or incorrect usage of
pwmetrics
.If i try and run
pwmetrics
within my CI environment it seems to fireup headless chrome and then silently fails.Looking for suggestions on how to at least debug this (even if its not a bug).
Here is the output:
When i run this locally (non headless) i get output like:
Which is what im after.
What I dont get is - if i run lighthouse (outside of
pwmetrics
) inside the CI environment - it runs headless fine when running a command like:lighthouse http://www.google.com.au --chrome-flags='--headless'
Config / CLI options
My config file looks like:
Steps to reproduce.
Run against headless chrome
Stack trace
None.
Screenshot
Environment
pwmetrics
version: 2.0.2node:7.9.0-slim
Thanks !
ps. this tool is awesome !
The text was updated successfully, but these errors were encountered: