Closed Bug 1543549 Opened 5 years ago Closed 5 years ago

android wpt-reftest spamming "IndexError: list index out of range" to failure logs, even for passing runs

Categories

(Testing :: web-platform-tests, defect)

Version 3
defect
Not set
normal

Tracking

(firefox68 fixed)

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: KWierso, Assigned: KWierso)

References

(Regression)

Details

Attachments

(1 file)

If you look at https://treeherder.mozilla.org/logviewer.html#?job_id=237448124&repo=mozilla-central there are a lot of errors logged saying "IndexError: list index out of range" that seem to happen after tests finish.

They happen even for passing wpt-reftest runs like https://treeherder.mozilla.org/logviewer.html#?job_id=237448118&repo=mozilla-central

This only seems to be affecting android test runs, and they appear to have started in the merge to m-c that included bug 1531909: https://treeherder.mozilla.org/#/jobs?repo=mozilla-central&tochange=e8b3c73b4e328be88aa90f31e1fa9772b537507d&searchStr=android%2C%28wr&fromchange=5a85cf971fef1404d6ed2893263f609c5a0de2d9&selectedJob=237455770

Android wpt is only enabled on m-c and try, and is tier-2 so it's not surprising this wasn't caught prior to the merge.

I'd guess this is because Android handles windows differently?

Flags: needinfo?(james)

I added some logging around executormarionette.py line 908 to see what handles was, and it's an empty list on android. Linux has a list with at least one window id.

On android wpt reftests, the window handles list is empty, so we can't use it to switch to a window. Not doing this in that case doesn't seem to break anything, and not doing it in that case prevents the IndexError from being logged to the error log.

Pushed by wkocher@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/df13d5a937b5
Only switch_to_window() if we have a handle to it. r=jgraham
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Assignee: nobody → wkocher
Flags: needinfo?(james)
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/16511 for changes under testing/web-platform/tests
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: