-
-
Notifications
You must be signed in to change notification settings - Fork 601
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
Lighthouse on non-docker sitespeed #4230
Comments
Hi @yashgarde yes you should install https://github.com/sitespeedio/plugin-lighthouse on the server globally ( Please let me know if it works or if something is missing. I can update the documentation tomorrow so its included. |
I tried this on my local deployment for testing purposes and it does not seem to work. I have installed the lighthouse plugin globally and changed that config in the Do I need to modify anything on the testrunner side? Are there any sitespeed configs I need to add in the JSON config file? |
Server: https://github.com/sitespeedio/onlinetest/blob/main/server/config/default.yaml#L68 Then before you start your test you need to enable Lighthouse: That will pass on information to the test runner to add/run Lighthouse plugin. |
Unfortunately this didn't work either. Earlier I was triggering tests using the API so I thought perhaps the GUI checkbox was needed to trigger lighthouse but this didn't seem to change anything either. Any other suggestions? |
Hmm when I just tried it works for me?
Is those the steps you tried? Do you get the change in the GUI but no Lighthouse tests run? |
This is exactly what I did, I'll give it another shot today and follow up here. The Lighthouse checkbox does appear and I selected it but I did not see the Lighthouse tab in the results. Additionally, is there a way to trigger lighthouse from the API side of things without the UI element? |
If you check the log for the test runner do you see anything there? I think you could add |
I have gone through a few scenarios regarding Lighthouse, here are the findings:
NOTE: When I am running the API tests, instead of using the CLI API, I am making use of REST requests as this is the final use case for our application of sitespeed.io. All other command line options (ex: |
Ah ok, I see, I didn't first get that it was user scenarios that do not work. Lighthouse does not work for user scenarios, only for single URLs. The reason is that Lighthouse use their own Chrome instance instead of the Browsertime version (maybe there could be a way to work around that) and Lighthouse use the Chromium only Puppeteer to drive the browser instead of the W3C standard webdriver. |
Ah I see, thanks for the information and the update. Will close this issue for now then! |
Your question
I am currently in the process of deploying the Onlinetest product within sitespeed and we are not using the dockerized version of the sitespeed.io tool to run the tests from the testrunner. We are directly running the sitespeed.io command after installing the npm package globally on the server and running it through that.
My question is whether there is a way to have Lighthouse metrics be generated when using sitespeed.io in this way (not using the -plus1 docker image) and if so, are there steps anywhere for this as well?
The text was updated successfully, but these errors were encountered: