Closed Bug 1863130 Opened 1 year ago Closed 1 year ago

Gather LargestContentfulPaint (LCP) metric in browsertime pageload tests

Categories

(Testing :: Raptor, defect, P2)

defect

Tracking

(firefox122 fixed)

RESOLVED FIXED
122 Branch
Tracking Status
firefox122 --- fixed

People

(Reporter: sparky, Assigned: sparky)

References

(Blocks 2 open bugs, Regression)

Details

(Keywords: perf-alert, regression, Whiteboard: [fxp])

Attachments

(2 files, 3 obsolete files)

This bug is for gathering the LCP metric in all of our pageload tests.

Would we need to sheriff this metric once we add it ?

Flags: needinfo?(gmierz2)

Yes, we'll be sheriffing this metric. I'm not sure if it's available on android browsers yet, but on desktop it definitely is.

Flags: needinfo?(gmierz2)
Assignee: nobody → gmierz2

PR was merged. Running try runs now: https://treeherder.mozilla.org/jobs?repo=try&tier=1%2C2%2C3&revision=74ffdce755c1b6fbfb8b8e458c8f414616297afa

Note that this metric is surfacing some pre-existing permas. For instance, on twitch, the LCP is never produced intermittently as the page doesn't finish loading before we finish the cycle. The same issue is happening with imgur. I'm going to try to re-record them to see if it fixes it.

Twitch is a permafail for LCP. We can't gather it from there as it doesn't get produced. I'm going to disable it for that page. Imgur seems fine locally after a re-recording though.

Blocks: 1864681

This patch adds the ability to gather LargestContentfulPaint in browsertime pageload tests.

Pushed by gmierz2@outlook.com: https://hg.mozilla.org/integration/autoland/rev/f487d5a07ab5 Gather LargestContentfulPaint (LCP) in browsertime pageload tests. r=perftest-reviewers,aglavic https://hg.mozilla.org/integration/autoland/rev/fd253d27e64e Re-record twitch, and imgur to fix LCP issues. r=perftest-reviewers,afinder

Backed out for causing largestContentfulPaint browsertime failures.

[task 2023-11-29T22:47:42.192Z] 22:47:42     INFO -  raptor-perftest Info: Removing temporary directory: /tmp/tmpq5bnex19
[task 2023-11-29T22:47:42.220Z] 22:47:42    ERROR -  Traceback (most recent call last):
[task 2023-11-29T22:47:42.220Z] 22:47:42     INFO -    File "/home/cltbld/tasks/task_170129487746103/build/tests/raptor/raptor/raptor.py", line 186, in <module>
[task 2023-11-29T22:47:42.221Z] 22:47:42     INFO -      main()
[task 2023-11-29T22:47:42.221Z] 22:47:42     INFO -    File "/home/cltbld/tasks/task_170129487746103/build/tests/raptor/raptor/raptor.py", line 135, in main
[task 2023-11-29T22:47:42.221Z] 22:47:42     INFO -      success = raptor.run_tests(raptor_test_list, raptor_test_names)
[task 2023-11-29T22:47:42.222Z] 22:47:42     INFO -    File "/home/cltbld/tasks/task_170129487746103/build/tests/raptor/raptor/perftest.py", line 488, in run_tests
[task 2023-11-29T22:47:42.222Z] 22:47:42     INFO -      return self.process_results(tests, test_names)
[task 2023-11-29T22:47:42.222Z] 22:47:42     INFO -    File "/home/cltbld/tasks/task_170129487746103/build/tests/raptor/raptor/perftest.py", line 510, in process_results
[task 2023-11-29T22:47:42.223Z] 22:47:42     INFO -      res = self.results_handler.summarize_and_output(self.config, tests, test_names)
[task 2023-11-29T22:47:42.223Z] 22:47:42     INFO -    File "/home/cltbld/tasks/task_170129487746103/build/tests/raptor/raptor/results.py", line 1089, in summarize_and_output
[task 2023-11-29T22:47:42.223Z] 22:47:42     INFO -      for new_result in self.parse_browsertime_json(
[task 2023-11-29T22:47:42.224Z] 22:47:42     INFO -    File "/home/cltbld/tasks/task_170129487746103/build/tests/raptor/raptor/results.py", line 842, in parse_browsertime_json
[task 2023-11-29T22:47:42.224Z] 22:47:42     INFO -      raise MissingResultsError(
[task 2023-11-29T22:47:42.224Z] 22:47:42     INFO -  results.MissingResultsError: Browsertime cycle missing ['largestContentfulPaint', 'renderTime'] measurement
[task 2023-11-29T22:47:42.269Z] 22:47:42     INFO - Return code: 1
[task 2023-11-29T22:47:42.269Z] 22:47:42  WARNING - setting return code to 1
[task 2023-11-29T22:47:42.269Z] 22:47:42     INFO - Copying Raptor results to upload dir:
[task 2023-11-29T22:47:42.270Z] 22:47:42     INFO - /home/cltbld/tasks/task_170129487746103/build/blobber_upload_dir/perfherder-data.json
[task 2023-11-29T22:47:42.270Z] 22:47:42     INFO - Copying raptor results from /home/cltbld/tasks/task_170129487746103/build/raptor.json to /home/cltbld/tasks/task_170129487746103/build/blobber_upload_dir/perfherder-data.json
[task 2023-11-29T22:47:42.270Z] 22:47:42 CRITICAL - Error copying results /home/cltbld/tasks/task_170129487746103/build/raptor.json to upload dir /home/cltbld/tasks/task_170129487746103/build/blobber_upload_dir/perfherder-data.json
Flags: needinfo?(gmierz2)
Blocks: 1867507
Pushed by gmierz2@outlook.com: https://hg.mozilla.org/integration/autoland/rev/41233474de74 Gather LargestContentfulPaint (LCP) in browsertime pageload tests. r=perftest-reviewers,aglavic https://hg.mozilla.org/integration/autoland/rev/faeaf5bd4445 Re-record twitch, and imgur to fix LCP issues. r=perftest-reviewers,afinder
Flags: needinfo?(gmierz2)
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
Regressions: 1867942

This patch adds the ability to gather LargestContentfulPaint in browsertime pageload tests.

Original Revision: https://phabricator.services.mozilla.com/D193645

Attachment #9367265 - Flags: approval-mozilla-beta?
Attachment #9367265 - Attachment is obsolete: true
Attachment #9367265 - Flags: approval-mozilla-beta?

This patch adds the ability to gather LargestContentfulPaint in browsertime pageload tests.

Original Revision: https://phabricator.services.mozilla.com/D193645

Attachment #9367267 - Flags: approval-mozilla-beta?
Attachment #9367268 - Flags: approval-mozilla-beta?

Uplift Approval Request

  • String changes made/needed: None
  • Is Android affected?: no
  • Fix verified in Nightly: yes
  • Steps to reproduce for manual QE testing: None
  • Risk associated with taking this patch: None
  • User impact if declined: None
  • Needs manual QE test: no
  • Explanation of risk level: This patch updates the recording used for a perma failing test.
  • Code covered by automated testing: no
Attachment #9367267 - Attachment is obsolete: true
Attachment #9367267 - Flags: approval-mozilla-beta?
Attachment #9367268 - Attachment is obsolete: true
Attachment #9367268 - Flags: approval-mozilla-beta?

I've abandoned the uplift approvals because there are merge conflicts in the perfdocs files (which would require a few other uplifts).

Regressions: 1869039
Regressed by: 1868996

(In reply to Natalia Csoregi [:nataliaCs] from comment #9)

Backed out for causing largestContentfulPaint browsertime failures.

[task 2023-11-29T22:47:42.192Z] 22:47:42     INFO -  raptor-perftest Info: Removing temporary directory: /tmp/tmpq5bnex19
[task 2023-11-29T22:47:42.220Z] 22:47:42    ERROR -  Traceback (most recent call last):
[task 2023-11-29T22:47:42.220Z] 22:47:42     INFO -    File "/home/cltbld/tasks/task_170129487746103/build/tests/raptor/raptor/raptor.py", line 186, in <module>
[task 2023-11-29T22:47:42.221Z] 22:47:42     INFO -      main()
[task 2023-11-29T22:47:42.221Z] 22:47:42     INFO -    File "/home/cltbld/tasks/task_170129487746103/build/tests/raptor/raptor/raptor.py", line 135, in main
[task 2023-11-29T22:47:42.221Z] 22:47:42     INFO -      success = raptor.run_tests(raptor_test_list, raptor_test_names)
[task 2023-11-29T22:47:42.222Z] 22:47:42     INFO -    File "/home/cltbld/tasks/task_170129487746103/build/tests/raptor/raptor/perftest.py", line 488, in run_tests
[task 2023-11-29T22:47:42.222Z] 22:47:42     INFO -      return self.process_results(tests, test_names)
[task 2023-11-29T22:47:42.222Z] 22:47:42     INFO -    File "/home/cltbld/tasks/task_170129487746103/build/tests/raptor/raptor/perftest.py", line 510, in process_results
[task 2023-11-29T22:47:42.223Z] 22:47:42     INFO -      res = self.results_handler.summarize_and_output(self.config, tests, test_names)
[task 2023-11-29T22:47:42.223Z] 22:47:42     INFO -    File "/home/cltbld/tasks/task_170129487746103/build/tests/raptor/raptor/results.py", line 1089, in summarize_and_output
[task 2023-11-29T22:47:42.223Z] 22:47:42     INFO -      for new_result in self.parse_browsertime_json(
[task 2023-11-29T22:47:42.224Z] 22:47:42     INFO -    File "/home/cltbld/tasks/task_170129487746103/build/tests/raptor/raptor/results.py", line 842, in parse_browsertime_json
[task 2023-11-29T22:47:42.224Z] 22:47:42     INFO -      raise MissingResultsError(
[task 2023-11-29T22:47:42.224Z] 22:47:42     INFO -  results.MissingResultsError: Browsertime cycle missing ['largestContentfulPaint', 'renderTime'] measurement
[task 2023-11-29T22:47:42.269Z] 22:47:42     INFO - Return code: 1
[task 2023-11-29T22:47:42.269Z] 22:47:42  WARNING - setting return code to 1
[task 2023-11-29T22:47:42.269Z] 22:47:42     INFO - Copying Raptor results to upload dir:
[task 2023-11-29T22:47:42.270Z] 22:47:42     INFO - /home/cltbld/tasks/task_170129487746103/build/blobber_upload_dir/perfherder-data.json
[task 2023-11-29T22:47:42.270Z] 22:47:42     INFO - Copying raptor results from /home/cltbld/tasks/task_170129487746103/build/raptor.json to /home/cltbld/tasks/task_170129487746103/build/blobber_upload_dir/perfherder-data.json
[task 2023-11-29T22:47:42.270Z] 22:47:42 CRITICAL - Error copying results /home/cltbld/tasks/task_170129487746103/build/raptor.json to upload dir /home/cltbld/tasks/task_170129487746103/build/blobber_upload_dir/perfherder-data.json

== Change summary for alert #40650 (as of Tue, 12 Dec 2023 12:27:38 GMT) ==

Improvements:

Ratio Test Platform Options Absolute values (old vs new) Performance Profiles
6% twitch SpeedIndex windows10-64-shippable-qr fission warm webrender 443.05 -> 414.93 Before/After

For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=40650

Type: task → defect
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: