Closed Bug 1559798 Opened 5 years ago Closed 5 years ago

Begin polling for the results (runner.js) only after the pageload.js code has been invoked in the test page content

Categories

(Testing :: Raptor, defect, P1)

Version 3
defect

Tracking

(firefox69 fixed)

RESOLVED FIXED
mozilla69
Tracking Status
firefox69 --- fixed

People

(Reporter: rwood, Assigned: rwood)

References

Details

Attachments

(1 file)

No description provided.

While running Raptor locally with extra logging in the web extension I noticed that the Raptor runner.js has already started polling for the page load results - BEFORE the Raptor pageload.js content was actually invoked, i.e.:

hecking results... runner.js:265:15
setting timeout to checkForResult again in 250ms runner.js:285:21
checking results... runner.js:265:15
setting timeout to checkForResult again in 250ms runner.js:285:21
checking results... runner.js:265:15
setting timeout to checkForResult again in 250ms runner.js:285:21
pagelaodjs adding load event listener for raptorContentHandler pageload.js:333:11
checking results... runner.js:265:15
setting timeout to checkForResult again in 250ms runner.js:285:21
checking results... runner.js:265:15

Change Raptor runner.js so it starts the page-timeout timer and polling for results only after the pageload.js content has been injected and invoked. This should reduce the number of Raptor intermittent page-timeout failures in the tp6 suites.

Summary: \ → start the page-timeout timer and polling for the results only after the pageload.js code has actually been invoked in the test browser content

I put together a patch to try it out:

https://treeherder.mozilla.org/#/jobs?repo=try&revision=3694563ab60b6a81352217c9b32af2f1f6dbb7f3

Andrew also put together a patch trying it out (I like his solution better):

https://treeherder.mozilla.org/#/jobs?repo=try&revision=c6d0c16172656648eda09606f48b9e986b28d59e

Both show promising results so far.

:acreskey would you like to submit your patch?

Flags: needinfo?(acreskey)
Blocks: 1559801
Summary: start the page-timeout timer and polling for the results only after the pageload.js code has actually been invoked in the test browser content → Begin polling for the results (runner.js) only after the pageload.js code has been invoked in the test page content

Rob, I couldn't in good faith submit my patch because it's just an iteration on your patch.
I'm happy to review what you put up though.

Flags: needinfo?(acreskey)

(In reply to Andrew Creskey from comment #4)

Rob, I couldn't in good faith submit my patch because it's just an iteration on your patch.
I'm happy to review what you put up though.

Thanks Andrew, ok I'll put up a patch today, excited to get this change in! :)

Just fixing my int issue:

https://treeherder.mozilla.org/#/jobs?repo=try&revision=fb2504d00519df40b1b93378a0b086cdcb2a4379

Still need to update according to review comments in phab.

Assignee: nobody → rwood
Status: NEW → ASSIGNED
Pushed by rwood@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9f0bf9849476
Begin polling for the results (runner.js) only after the pageload.js code has been invoked in the test page content r=acreskey,tarek
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69
See Also: → 1559908
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: