-
Notifications
You must be signed in to change notification settings - Fork 647
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
Many new assertion errors giving score 0 #994
Comments
Same issue in my project |
Lighthouse 11.2 changed how many audits are scored to be based directly on the estimated metric savings. These audits are an example of that. GoogleChrome/lighthouse#15447 It was not considered how this change would effect LHCI. We'll need to discuss internally how to address this. Given the time of year, this likely won't be solved until after the new year. In the meantime, a few options for you:
|
Thanks for the details! I'll stick to 0.12.0 for now and keep an eye on this issue to see how to move forward. |
Same on my side! Waiting for the next version @connorjclark 😎 |
Just in case someone's looking for a workaround for now for {
"ci": {
"assert": {
"assertions": {
"total-byte-weight": ["error", {"maxNumericValue": 1677721600}]
}
}
}
} This ensures total byte size of requested resources stays under 1,600 KiB as docs recommend |
This workaround works for us, maybe it's sufficient to document that you can change the asserts like this if needed? |
It seems to me like this is fixed now |
Yup, looks fixed for me 2 in 0.14 |
Describe the bug
I haven't changed my assertions and I haven't made any drastic changes to our code and suddenly I get many assertion failures in my tests even though according to the report they are okay.
To Reproduce
preset: lighthouse:no-pwa
npx --yes --package=@lhci/cli@latest -- lhci autorun
Expected behavior
Passed asserts
Logs/Screenshots
Note: Unused javascript has been changed from the preset and it used to pass.
This is the report generated which shows the assets should pass.
Here's the exact same config/code running on 0.12:
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: