-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
new_audit: json-ld audit #8328
new_audit: json-ld audit #8328
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks pretty good! hurray for splitting out the sd validation piece and making this a piece of cake to review :)
lighthouse-core/test/audits/seo/structured-data-automatic-test.js
Outdated
Show resolved
Hide resolved
Co-Authored-By: mattzeunert <matt@mostlystatic.com>
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the ℹ️ Googlers: Go here for more info. |
@patrickhulce Do you have any thoughts on this failure? I know we used to have that problem, and I think it disappeared when we worked on the JSON-LD logic because that wasn't included in the bundle yet. Browserify is trying to resolve this require:
I can look into this more tomorrow, just wanted to check if you already have thoughts on what the solution is. |
sorry @mattzeunert not sure off the top of my head, that file is indeed missing from that directory for me, so we might need to shim something or install another dep? |
It's inlined in that file already, so there's no need to require it. Will look into convincing Browserify it's there 👍 |
@paulirish Is there something I gotta do about the CLA or the bundlesize? When I run |
@paulirish I'm not sure what's up with the bundlesize but I think this PR is ready to move forward? |
uncompressed: (2410564 - 1544755) / 1000 = +865KB to devtools bundles. Can expect slightly less if PR is updated to include recent build improvements. |
this was rather recently superseded by another effort to bring structured data audit to LH: #12324 , so closing for that. |
Summary
Use the JSON-LD validator to audit JSON-LD snippets with Lighthouse.
Sample Lighthouse report
Related Issues/PRs
Closes #4359