-
Notifications
You must be signed in to change notification settings - Fork 21
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
Performance custom metric is_lcp_statically_discoverable
is incorrectly reporting false
#60
Comments
WPT will only store/process the bodies if they can be decoded as utf-8 in Python. Even though the response headers say it is utf-8, Python is throwing a decode error when trying to decode it:
I can probably modify the agent to ignore decode errors explicitly for responses with text content types which will help fill in missing responses but they will be filtered in that case (better than not present I guess). |
PR has been sent for the agent. The HA crawl uses a fork that I control though so the change has been rolled out for the HA agent and will be picked up in the January crawl and should be live on the HA test instance within an hour. I'll verify the fix on the HA test instance in an hour or so to make sure it also fixed the custom metric as a result. |
Verified that it is working for that page now: https://webpagetest.httparchive.org/result/221228_YV_A/ Coverage in the January crawl should be improved but I still won't guarantee 100% coverage on response bodies (though finding edge cases like this helps improve it). We can keep this open until you verify that it is fixed in the actual crawl. |
Thank you. Looks great. 🙏 |
I think we are able to measure the impact of the fix after the January crawl using
Currently:
|
As an upper bound anyway. We may still not get to 100% but good to know it's ~4% of origins. |
Test URL: https://webpagetest.httparchive.org/result/221228_GY_1/1/details/#waterfall_view_step1
The LCP image is https://marieefleurir.com/html/template/default/img/top/firstviw01.jpg and is included in the initial HTML document sent by the server. I understand this should be recorded as
is_lcp_statically_discoverable
astrue
.The root cause seems to be because
raw_html: {}
, which in turn is caused becauseWPT_BODIES[0].response_body: null
.See test: https://webpagetest.httparchive.org/result/221228_9S_4/1/details/#waterfall_view_step1 which includes custom metric:
Is this a known issue? Why is
response_body
bodynull
?The text was updated successfully, but these errors were encountered: