Closed Bug 1499826 Opened 7 years ago Closed 7 years ago

Intermittent TvW Tier2 /webdriver/tests/element_clear/clear.py | test_no_browsing_context - ValueError: Element already in cache: foo

Categories

(Remote Protocol :: Marionette, defect, P5)

Version 3
defect

Tracking

(firefox64 fixed)

RESOLVED FIXED
mozilla64
Tracking Status
firefox64 --- fixed

People

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

References

Details

(Keywords: intermittent-failure)

Filed by: dvarga [at] mozilla.com https://treeherder.mozilla.org/logviewer.html#?job_id=206169911&repo=mozilla-central https://queue.taskcluster.net/v1/task/YqQlamC6RlSEEp7oMHFGIA/runs/0/artifacts/public/logs/live_backing.log [task 2018-10-17T17:56:21.504Z] 17:56:21 INFO - TEST-PASS | /webdriver/tests/element_clear/clear.py | test_null_response_value [task 2018-10-17T17:56:21.505Z] 17:56:21 INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/element_clear/clear.py | test_no_browsing_context - ValueError: Element already in cache: foo [task 2018-10-17T17:56:21.505Z] 17:56:21 INFO - session = <Session 2902737e-2a80-4c5d-bd51-75a857f890cc> [task 2018-10-17T17:56:21.506Z] 17:56:21 INFO - closed_window = '4294967388' [task 2018-10-17T17:56:21.507Z] 17:56:21 INFO - [task 2018-10-17T17:56:21.507Z] 17:56:21 INFO - def test_no_browsing_context(session, closed_window): [task 2018-10-17T17:56:21.508Z] 17:56:21 INFO - > element = Element("foo", session) [task 2018-10-17T17:56:21.509Z] 17:56:21 INFO - [task 2018-10-17T17:56:21.510Z] 17:56:21 INFO - closed_window = '4294967388' [task 2018-10-17T17:56:21.511Z] 17:56:21 INFO - session = <Session 2902737e-2a80-4c5d-bd51-75a857f890cc> [task 2018-10-17T17:56:21.511Z] 17:56:21 INFO - [task 2018-10-17T17:56:21.512Z] 17:56:21 INFO - tests/web-platform/tests/webdriver/tests/element_clear/clear.py:50: [task 2018-10-17T17:56:21.512Z] 17:56:21 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [task 2018-10-17T17:56:21.513Z] 17:56:21 INFO - [task 2018-10-17T17:56:21.513Z] 17:56:21 INFO - self = <Element foo>, id = 'foo' [task 2018-10-17T17:56:21.514Z] 17:56:21 INFO - session = <Session 2902737e-2a80-4c5d-bd51-75a857f890cc> [task 2018-10-17T17:56:21.514Z] 17:56:21 INFO - [task 2018-10-17T17:56:21.515Z] 17:56:21 INFO - def __init__(self, id, session): [task 2018-10-17T17:56:21.515Z] 17:56:21 INFO - """ [task 2018-10-17T17:56:21.516Z] 17:56:21 INFO - Construct a new web element representation. [task 2018-10-17T17:56:21.516Z] 17:56:21 INFO - [task 2018-10-17T17:56:21.517Z] 17:56:21 INFO - :param id: Web element UUID which must be unique across [task 2018-10-17T17:56:21.517Z] 17:56:21 INFO - all browsing contexts. [task 2018-10-17T17:56:21.518Z] 17:56:21 INFO - :param session: Current ``webdriver.Session``. [task 2018-10-17T17:56:21.518Z] 17:56:21 INFO - """ [task 2018-10-17T17:56:21.519Z] 17:56:21 INFO - self.id = id [task 2018-10-17T17:56:21.519Z] 17:56:21 INFO - self.session = session [task 2018-10-17T17:56:21.520Z] 17:56:21 INFO - [task 2018-10-17T17:56:21.520Z] 17:56:21 INFO - if id in self.session._element_cache: [task 2018-10-17T17:56:21.520Z] 17:56:21 INFO - > raise ValueError("Element already in cache: %s" % id) [task 2018-10-17T17:56:21.521Z] 17:56:21 INFO - E ValueError: Element already in cache: foo [task 2018-10-17T17:56:21.521Z] 17:56:21 INFO - [task 2018-10-17T17:56:21.521Z] 17:56:21 INFO - id = 'foo' [task 2018-10-17T17:56:21.522Z] 17:56:21 INFO - self = <Element foo> [task 2018-10-17T17:56:21.522Z] 17:56:21 INFO - session = <Session 2902737e-2a80-4c5d-bd51-75a857f890cc> [task 2018-10-17T17:56:21.522Z] 17:56:21 INFO - [task 2018-10-17T17:56:21.523Z] 17:56:21 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:673: ValueError
Olli backed-out his workaround patch on bug 1499135 a bit too early, and the backout of bug 1499057 made this failure to appear now. Also Andreas isn't around this week, and as such I doubt we have a fix soon for bug 1499057. Olli, maybe we should re-land your workaround fix again. Which is unfortunate but would at least stop those failures for now. I assume the other port related failures don't have such a high occurrence?
Depends on: 1499057
Flags: needinfo?(bugs)
ohhh, this is happening even without bug 1498383 (and bug 1089326). That is good news for me. (but something in bug 1498383 + bug 1089326 makes this happen more often) But sure, we can reland bug 1499135
Flags: needinfo?(bugs)
Before we do this, how is your timeline for getting those patches landed? If we would still have a bit of time to fix this intermittent, I wouldn't see it relanded. Only when it is really time critical and we cannot wait for Andreas being back.
Well, these are all TvW failures, and only appeared because the wdspec tests were run due to the backout on bug 1499057. As long as we don't make wdspec changes we shouldn't see them. Also those are Tier2, so we might be able to just ignore the failure for landing your patches.
Summary: Intermittent /webdriver/tests/element_clear/clear.py | test_no_browsing_context - ValueError: Element already in cache: foo → Intermittent TvW Tier2 /webdriver/tests/element_clear/clear.py | test_no_browsing_context - ValueError: Element already in cache: foo
bug 1089326 will not land until TVw is stable. (if bug 1089326 or bug 1498383 is causing the issues, need to then sort out them, but the issues have so far been really unexpected.)
This is fixed by bug 1499057 now.
Assignee: nobody → ato
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
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.