Closed Bug 1425311 Opened 6 years ago Closed 6 years ago

Add pageloader support for multiple hero measurements per page

Categories

(Testing :: Talos, enhancement)

Version 3
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: rwood, Assigned: rwood)

References

Details

Attachments

(1 file, 1 obsolete file)

Currently talos pageloader tests measure one (and only one) specific event, i.e. moz after paint, time to first non-blank paint, hero element (landing soon in Bug 1418368).

Add the ability to measure more than one item in a single pageload. For example, have tp6_google measure both fnbpaint and hero element in each pageload.

Treat these values as typical talos subtests - i.e. the top level test result/score (used for alerting) will be the median of these two items. However the individual measurement values will be available in the subtests view in perfhereder compare, as well as in the perfherder-data.json (and local.json when talos is run locally) files.
Note: It is up for discussion re: subtests, we could also have all the measured values reported in such a way that they appear to be separate tests, even though they were produced by the single test run.
Attachment #8937164 - Attachment is obsolete: true
Whiteboard: [PI:February]
Hey Tarek, regarding the hero element you added to tp6_google (elementtiming="hero").

Since the observer in lh_hero.js is watching the element found via querySelector of the attribute name ['elementtiming'], I believe if there are multiple hero elements in a single page, it's the element attribute name 'elementtiming' itself that would be different for each hero element, correct?

OR do hero elements always have the attribute name ('elementiming') but the value (i.e. 'hero') can be different for each hero element? In which case we'd have to use querySelector to search for an element with that attribute AND corresponding value, when defining which element to observe. Thanks!
Flags: needinfo?(tarek)
I think I've answered my own question now, looks like it will always be 'elementtiming' but the value will change for each hero element - and querySelector with an '[attr=val]' selector can be used for each unique hero element that tp6 is measuring.
Flags: needinfo?(tarek)
Summary: Add pageloader support for multiple measurements per page → Add pageloader support for multiple hero measurements per page
Whiteboard: [PI:February] → [PI:March]
This is supported in Raptor (under development). I don't see the need to also add this to Talos pageloader, so I'd like to close this bug as resolved won't fix, if you agree :jmaher.
Flags: needinfo?(jmaher)
agreed
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Flags: needinfo?(jmaher)
Resolution: --- → WORKSFORME
Whiteboard: [PI:March]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: