-
Notifications
You must be signed in to change notification settings - Fork 20
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
build: add Lighthouse CI integration (resolves #267) #293
Conversation
8e2a1fe
to
706bd18
Compare
@cindyli and @TeddTech could you please take a look at this PR. I have Desktop and Mobile runs, have removed throttling, removed the PWA category, and set thresholds for asserting the results for the categories. You should be able to view the results for failures through annotations on the build, which will also link to those results uploaded to the cloud. You can also download the results from the artifacts. |
@jobara this is super helpful. Some minScore assertion failures already help to capture some issues we didn't noticed before. I think @TeddTech or I should go through those pages individually, figure out causes and fix ones that are valid. The minScore failures on SEO are likely because of the blocking directive on servers, which we cannot do much. We probably should adjust the minScore for it. |
I agree the minScore for SEO can be lower |
The outstanding failures for this build seem to be all SEO or accessibility issues. SEO failures can be fixed by lowering its The following accessibility failures are due to the webpage layout and should be brought up at tomorrow's check-in with the designers present. Below are single examples of the two types of accessibility failures seen in the build.
|
The latest lighthouse CI failure reports the image on https://dev--wecount.netlify.app/initiatives/ is displayed with incorrect aspect ratio. However, looking at 3 sizes on the report, their calculated aspect ratios are:
The difference between aspect ratios is nowhere near 5%. I've filed a bug report with Google Chrome web.dev. |
According to the reply to my issue report with Google Chrome web.dev, the lighthouse report on "displayed with incorrect aspect ratio" is not complaining about the aspect ratio it's complaining about the total resolution (including DPR), but it linked to the incorrect documentation. Moreover, the improvement for calculating the total resolution was fixed in 6.1.0 (#10801) and will be in Chrome shortly. |
@cindyli thanks for looking into this. Unfortunately they haven't updated Lighthouse CI yet, it's still pointing at v6.0.0. I'm guessing once they update and create a new release, our CI should just pick it up. In regards to total resolution, it looks like it should be pointing at Serve responsive images. It's not clear if their calculation adjustments will remove the issue, or if there is still more work needed on our part. |
I'm closing this as the Netlify Lighthouse plugin can be used instead. |
npm run lint
without errorsnpm run start
and reviewing affected routesnpm run build
without errorsDescription
Adds Lighthouse CI integration.
Steps to test
Related issues
Resolves #267