-
Notifications
You must be signed in to change notification settings - Fork 649
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
Proposal: use PageSpeed Insights API to collect results #251
Comments
Thanks @alekseykulikov! A few reasons I'm hesitant to proceed with PSI as a runner:
|
You are right, I totally forgot about the cache. In this case, parallelization will work only on a large number of URLs.
It could become significantly better. PSI environment improves. |
@patrickhulce made a good argument for PSI+LHCI: GoogleChrome/lighthouse#10511 (comment) |
@patrickhulce I'm a little bit confused by your statement. I could very well be misunderstanding:
Isn't the whole point of Lighthouse to ensure your web applications are performing well for users? We definitely use this project for our websites because we want to detect regressions with any new deployments. I guess I'm just surprised that we would be in the minority. |
Of course! But Lighthouse CI is specifically designed to catch Lighthouse issues before they're deployed to your users. From conversations and interactions on most issues I've had to date, the larger use case is typically running As @alekseykulikov points out though, I've noted that if we shift the focus of Lighthouse CI messaging to also be around the production monitoring use case (it sounds like you're already using LHCI for this, see #5 for more on our thoughts there), then PSI suddenly makes a lot more sense to avoid setting up a separate testing environment. |
@patrickhulce That makes sense. For us, we use a beta subdomain for our front facing products that we merge into before we merge into production. This subdomain is entirely meta no indexed to avoid duplicate content issues. When we merge into production we run the lhci checks on the beta subdomain. By having the public beta subdomain, we can also hook into other tools to validate things (structured data, mobile friendly test, etc.) that otherwise don't place nice with login walls. |
Nice! That sounds like a great setup :) I've been thinking it might be nice to collect some of these different examples into a "Usage Patterns" doc with a showcase of how folks have used LHCI in different ways. Would you be interested sharing some of the details in such a doc? |
@patrickhulce I'd be more than happy in sharing our details for that doc! |
this was fixed by #340 🎉 |
Problem: It's hard to ensure consistent performance results.
Burstable or uncontrollable CI VMs, like Github Actions treosh/lighthouse-ci-action#14, may lead to inaccurate results.
It significantly reduces the value of CI testing, since results can't be trusted.
Proposal: using a dedicated Lighthouse as a Service API, like PSI, may help to provide consistent results and improve the collection time:
Trade-off: it doesn't support any custom features or configs, and local testing is not possible. So it's only for public-facing URLs.
The text was updated successfully, but these errors were encountered: