Page MenuHomePhabricator

Upgrade to Chrome 97 increased first visual change metrics for synthetic testing
Closed, ResolvedPublic

Assigned To
Authored By
Peter
Jan 24 2022, 10:19 AM
Referenced Files
F36897892: Screenshot 2023-03-08 at 13.09.27.png
Mar 8 2023, 12:13 PM
F36897891: Screenshot 2023-03-08 at 13.09.10.png
Mar 8 2023, 12:13 PM
F35147968: Screenshot 2022-05-17 at 12.10.00.png
May 17 2022, 10:11 AM
F34946569: firstvisualchange-and-firstcontentfulpaint-webpagetest.png
Feb 9 2022, 12:04 PM
F34946573: chrome-96->97-traffic.png
Feb 9 2022, 12:04 PM
F34946575: FCP-chrome-users-fastest.png
Feb 9 2022, 12:04 PM
F34946574: FCP-chrome-users-median.png
Feb 9 2022, 12:04 PM
Subscribers

Description

There's been so many alerts since T298945 so I missed the alerts firing for upgrading to 97 but only when we run emulated mobile:

Screenshot 2022-01-24 at 11.13.02.png (740×1 px, 136 KB)

Could easily verify that TTFB are stable:

Screenshot 2022-01-24 at 11.16.39.png (1×2 px, 692 KB)

Looking at the tests without WebPageReplay using emulated Chrome there's the same pattern:

Screenshot 2022-01-24 at 11.17.58.png (1×2 px, 568 KB)

See https://bugs.chromium.org/p/chromium/issues/detail?id=1291502

Event Timeline

Looking at FCP vs FVC:

Screenshot 2022-01-24 at 11.21.27.png (908×2 px, 627 KB)

Looking at the filmstrip it seems FVC is reported correct and FCP is wrong:

Screenshot 2022-01-24 at 11.24.42.png (886×2 px, 452 KB)

Screenshot 2022-01-24 at 11.24.51.png (1×2 px, 1 MB)

Let me check if something else rolled out at the same time.

The same thing happened on emulated mobile for WebPageTest:

Screenshot 2022-01-24 at 11.29.21.png (1×2 px, 949 KB)

And also on desktop. I haven't been able to see anything on our RUM metric. I could also see that the discrepancy between first paint/fcp and first visual change also happens with WebPageTest:

Screenshot 2022-01-24 at 13.25.15.png (1×2 px, 863 KB)

Screenshot 2022-01-24 at 13.27.14.png (256×1 px, 236 KB)

Screenshot 2022-01-24 at 13.27.46.png (576×2 px, 1 MB)

Let me create an Chrome issue and see if I can get some help understanding what's going on.

Peter renamed this task from Upgrade to Chrome 97 emulated mobile increased first visual change metrics to Upgrade to Chrome 97 increased first visual change metrics for synthetic testing.Jan 24 2022, 7:36 PM

Change 759485 had a related patch set uploaded (by Phedenskog; author: Phedenskog):

[performance/synthetic-monitoring-tests@master] Disable Chrome PaintHoldingCrossOrigin feature.

https://gerrit.wikimedia.org/r/759485

Change 759485 merged by jenkins-bot:

[performance/synthetic-monitoring-tests@master] Disable Chrome PaintHoldingCrossOrigin feature.

https://gerrit.wikimedia.org/r/759485

I pushed a change for desktop and webpagereplay tests, lets see what the metrics looks like tomorrow. I also added it to tests on a Mac mini, the difference there is smaller but maybe it makes a difference.

Change 759572 had a related patch set uploaded (by Phedenskog; author: Phedenskog):

[performance/synthetic-monitoring-tests@master] Also disable PaintHoldingCrossOrigin on enwiki tests.

https://gerrit.wikimedia.org/r/759572

Change 759572 merged by jenkins-bot:

[performance/synthetic-monitoring-tests@master] Also disable PaintHoldingCrossOrigin on enwiki tests.

https://gerrit.wikimedia.org/r/759572

This is a bug/feature in Chrome.

Change 761046 had a related patch set uploaded (by Phedenskog; author: Phedenskog):

[performance/synthetic-monitoring-tests@master] Try to disable on PaintHoldingCrossOrigin on WebPageTest.

https://gerrit.wikimedia.org/r/761046

Change 761046 merged by jenkins-bot:

[performance/synthetic-monitoring-tests@master] Try to disable on PaintHoldingCrossOrigin on WebPageTest.

https://gerrit.wikimedia.org/r/761046

I updated the Chrome upstream bug but want to add the screenshots here too. It's the same pattern on WebPageTest:

firstvisualchange-and-firstcontentfulpaint-webpagetest.png (1×2 px, 372 KB)

difference-between-firstvisual-change-and-fcp-webpagetest.png (1×2 px, 355 KB)

And I also think I see the same pattern for real users. When Chrome 97 rolled out, our fastest and median FCP for Chrome became faster. The only thing is that in synthetic we can see that the metric become faster but the page become slower.

chrome-96->97-traffic.png (786×2 px, 357 KB)

FCP-chrome-users-median.png (764×2 px, 641 KB)

FCP-chrome-users-fastest.png (824×2 px, 639 KB)

Change 792447 had a related patch set uploaded (by Phedenskog; author: Phedenskog):

[performance/synthetic-monitoring-tests@master] Enable PaintHoldingCrossOrigin for investigating LCP changes.

https://gerrit.wikimedia.org/r/792447

Change 792447 merged by jenkins-bot:

[performance/synthetic-monitoring-tests@master] Enable PaintHoldingCrossOrigin for investigating LCP changes.

https://gerrit.wikimedia.org/r/792447

Here's what happens with Largest Contentful Paint. Lets run it one more iteration and then revert the change.

Screenshot 2022-05-17 at 12.10.00.png (1×2 px, 945 KB)

Change 792640 had a related patch set uploaded (by Phedenskog; author: Phedenskog):

[performance/synthetic-monitoring-tests@master] Disable paint holding again.

https://gerrit.wikimedia.org/r/792640

Change 792640 merged by jenkins-bot:

[performance/synthetic-monitoring-tests@master] Disable paint holding again.

https://gerrit.wikimedia.org/r/792640

Peter removed Peter as the assignee of this task.May 24 2022, 6:31 PM

Change 805126 had a related patch set uploaded (by Phedenskog; author: Phedenskog):

[performance/synthetic-monitoring-tests@master] Enable paint holding again.

https://gerrit.wikimedia.org/r/805126

Change 805126 merged by jenkins-bot:

[performance/synthetic-monitoring-tests@master] Enable paint holding again.

https://gerrit.wikimedia.org/r/805126

I've been starting to setup the bare metal server in T311983 and this bug is problematic (it always have but its even more now): If we run with default settings we still have the discrepancy between RUM metrics and visual metrics. If I turn off the change (disable-features=PaintHoldingCrossOrigin) it looks like vector-2022 introduced a new way of rendering, wherre sometimes Chrome chooses to render the search bar first. Compare these two:

Screenshot 2023-03-08 at 13.09.10.png (876×2 px, 447 KB)

Screenshot 2023-03-08 at 13.09.27.png (820×2 px, 631 KB)

I've pinged the Chrome issue again and asked when they are gonna release a fix.