Start page timeout timer only after the test tab has actually been updated
Categories
(Testing :: Raptor, enhancement, P1)
Tracking
(firefox69 fixed)
Tracking | Status | |
---|---|---|
firefox69 | --- | fixed |
People
(Reporter: rwood, Assigned: rwood)
Details
Attachments
(1 file)
Currently the Raptor page timeout alarm/timer is set just before the test tab is updated with the test URL (ext.tabs.update call).
Instead, Raptor should await for the ext.tabs.update call itself to finish, and then at that time start the timeout timer. That way the elapsed time won't include the actual time for th eext.tabs.update call to finish; the timer will only measure the elapsed time it takes to actually get the performance measurements from the page content.
I am thinking that this may reduce Raptor intermittent page timeouts. Try this out and see how it effects timeouts etc.
Assignee | ||
Comment 1•5 years ago
|
||
Will capture the onerror (promise returned by ext.tabs.update) so if the tab update call itself fails then Raptor can force a timeout/end the test.
Note: Must check if this is compatible with Chromium.
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
Assignee | ||
Comment 4•5 years ago
|
||
Andrew, any thoughts about this potential patch? I'm thinking it may reduce some variability in the page timeout timer and ultimately reduce intermittent page timeouts (but not 100% sure; will do a bunch of try pushes to see if seems to have any effect).
Comment 5•5 years ago
|
||
Rob, I like this idea and I agree that it could make this step more deterministic.
Very curious as to how it behaves, but I think it's a better approach regardless.
Assignee | ||
Comment 6•5 years ago
|
||
Thanks Andrew! Unfortunately Chromium doesn't return a promise for chrome.tabs.update. However both Firefox and Chromium support a callback in the x.tabs.update call, so I'll try starting the page timeout timer only after that callback is invoked.
Assignee | ||
Comment 7•5 years ago
|
||
Pushed by rwood@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7cae42dee59f Start page timeout timer only after the test tab has actually been updated r=acreskey
Comment 9•5 years ago
|
||
bugherder |
Description
•