Closed Bug 1505142 Opened 6 years ago Closed 6 years ago

Permafail TvW /webdriver/tests/element_click/scroll_into_view.py | test_partially_visible_does_not_scroll[offset0] - In-test skip decorators are disallowed, please use WPT metadata to ignore tests.

Categories

(Remote Protocol :: Marionette, defect, P1)

Version 3
defect

Tracking

(firefox-esr60 unaffected, firefox63 unaffected, firefox64 unaffected, firefox65 fixed)

RESOLVED FIXED
mozilla65
Tracking Status
firefox-esr60 --- unaffected
firefox63 --- unaffected
firefox64 --- unaffected
firefox65 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: ato)

References

Details

(Keywords: intermittent-failure, regression)

Attachments

(1 file)

Filed by: ccoroiu [at] mozilla.com https://treeherder.mozilla.org/logviewer.html#?job_id=210149432&repo=mozilla-central https://queue.taskcluster.net/v1/task/DG-IIMg3SOmLjRmqCVtQ4w/runs/0/artifacts/public/logs/live_backing.log [task 2018-11-06T18:55:45.307Z] 18:55:45 INFO - TEST-PASS | /webdriver/tests/element_click/scroll_into_view.py | test_scroll_into_view [task 2018-11-06T18:55:45.308Z] 18:55:45 INFO - TEST-UNEXPECTED-ERROR | /webdriver/tests/element_click/scroll_into_view.py | test_partially_visible_does_not_scroll[offset0] - In-test skip decorators are disallowed, please use WPT metadata to ignore tests. [task 2018-11-06T18:55:45.308Z] 18:55:45 INFO - TEST-OK | /webdriver/tests/element_click/scroll_into_view.py | took 420ms [task 2018-11-06T18:55:45.373Z] 18:55:45 INFO - Closing logging queue [task 2018-11-06T18:55:45.374Z] 18:55:45 INFO - queue closed [task 2018-11-06T18:55:45.374Z] 18:55:45 INFO - Starting runner [task 2018-11-06T18:55:45.405Z] 18:55:45 INFO - PID 4144 | 1541530545401 webdriver::httpapi DEBUG Creating routes [task 2018-11-06T18:55:45.408Z] 18:55:45 INFO - PID 4144 | 1541530545405 geckodriver DEBUG Listening on 127.0.0.1:4444 [task 2018-11-06T18:55:45.908Z] 18:55:45 INFO - WebDriver HTTP server listening at http://127.0.0.1:4444/
This test was added by Andreas on bug 1493115, and it permafails for webdriver specific tests in TvW. A quick skim at the patch didn't show me anything obvious. We don't use a skip in the test file itself. So not sure where this comes from. Andreas, please have a look to prevent a backout of the patch. Thanks.
Blocks: 1493115
Flags: needinfo?(ato)
Keywords: regression
Summary: Intermittent /webdriver/tests/element_click/scroll_into_view.py | test_partially_visible_does_not_scroll[offset0] - In-test skip decorators are disallowed, please use WPT metadata to ignore tests. → Permafail TvW /webdriver/tests/element_click/scroll_into_view.py | test_partially_visible_does_not_scroll[offset0] - In-test skip decorators are disallowed, please use WPT metadata to ignore tests.
I think the problem here is that reversed(range(1, 10)) returns an iterator. Let’s make it a literal list to see if that helps.
Assignee: nobody → ato
Status: NEW → ASSIGNED
Flags: needinfo?(ato)
Priority: P5 → P1
Ah, so this can reproduced with @pytest.mark.parametrize("offset", []), which means the iterator returned by reversed() finally returns None, which WPT interprets as "In-test skip decorators are disallowed, please use WPT metadata to ignore tests.".
The iterator returned by reversed() can apparently return None in some configurations. WPT treats this as an in-test skip and errors the test. To avoid this configuration-specific problem we use a literal list.
(In reply to Andreas Tolfsen ❲:ato❳ from comment #4) > Ah, so this can reproduced with @pytest.mark.parametrize("offset", > []), which means the iterator returned by reversed() finally returns > None, which WPT interprets as "In-test skip decorators are disallowed, > please use WPT metadata to ignore tests.". Interesting. Isn't that a bug in wptrunner? Also why doens't this show up in our normal wdspec jobs?
I don’t know.
Joel, can you please have a look at the previous comments? We wonder why TvW is failing here while Wd jobs are just fine. Thanks!
Flags: needinfo?(jmaher)
Pushed by atolfsen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/31930943e22e webdriver: replace iterator with literal list; r=whimboo
I don't know why TvW would fail, is there a custom way Wd jobs are run that maybe we are not able to do with TvW? TvW essentially runs the test in a single test mode- maybe the repeated test runs or chaos mode would cause it to fail.
Flags: needinfo?(jmaher)
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/14056 for changes under testing/web-platform/tests
Moving bug to Remote Protocol::Marionette component per bug 1815831.
Component: geckodriver → Marionette
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: