Closed
Bug 1459118
Opened 7 years ago
Closed 4 years ago
Intermittent Wd | test_abort_by_user_prompt_twice[<random>] - NoSuchAlertException: no such alert (404): No modal dialog is currently open
Categories
(Remote Protocol :: Marionette, defect, P5)
Tracking
(firefox-esr52 unaffected, firefox-esr60 unaffected, firefox-esr78 disabled, firefox60 unaffected, firefox61 disabled, firefox62 disabled, firefox63 disabled, firefox64 disabled, firefox65 disabled, firefox83 disabled, firefox84 disabled, firefox85 disabled, firefox86 disabled, firefox87 fixed)
RESOLVED
FIXED
87 Branch
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox-esr60 | --- | unaffected |
firefox-esr78 | --- | disabled |
firefox60 | --- | unaffected |
firefox61 | --- | disabled |
firefox62 | --- | disabled |
firefox63 | --- | disabled |
firefox64 | --- | disabled |
firefox65 | --- | disabled |
firefox83 | --- | disabled |
firefox84 | --- | disabled |
firefox85 | --- | disabled |
firefox86 | --- | disabled |
firefox87 | --- | fixed |
People
(Reporter: intermittent-bug-filer, Assigned: whimboo)
References
()
Details
(Keywords: intermittent-failure, regression, test-disabled, Whiteboard: [retriggered] , [wptsync upstream])
Attachments
(1 file, 3 obsolete files)
(deleted),
text/x-phabricator-request
|
Details |
Filed by: shindli [at] mozilla.com
https://treeherder.mozilla.org/logviewer.html#?job_id=176894538&repo=mozilla-inbound
https://queue.taskcluster.net/v1/task/dgteqjIGTN6U7oXUC_XOkA/runs/0/artifacts/public/logs/live_backing.log
[task 2018-05-04T05:05:53.963Z] 05:05:53 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:438: InvalidArgumentException
[task 2018-05-04T05:05:53.963Z] 05:05:53 INFO - TEST-PASS | /webdriver/tests/execute_script/user_prompts.py | test_handle_prompt_default
[task 2018-05-04T05:05:53.964Z] 05:05:53 INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/execute_script/user_prompts.py | test_handle_prompt_twice - NoSuchAlertException: no such alert (404): No modal dialog is currently open
[task 2018-05-04T05:05:53.964Z] 05:05:53 INFO - new_session = <function create_session at 0x7f9c02b03848>
[task 2018-05-04T05:05:53.964Z] 05:05:53 INFO - add_browser_capabilites = <function update_capabilities at 0x7f9c02b03938>
Assignee | ||
Updated•7 years ago
|
Comment 1•7 years ago
|
||
I did some retriggers and backfills to find where this started and worked on this range:
https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&filter-searchStr=linux%20x64%20wd%20pgo&tochange=f579a28444855e4ccbf45c8c82f9bb78ebbe822b&fromchange=afbec9a6802cb45f5032301b997c15f7d1c25884
The next shift will continue with the retriggers.
Whiteboard: [retriggered]
Comment 2•7 years ago
|
||
Continued the retriggers and the failure rate is 2 out of 20 in general, on the push where this started:
https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&filter-searchStr=linux%20x64%20wd%20pgo&tochange=355349b199c457d45e420d775df07f7b6e9df859&fromchange=5bde59ad4082e94f3deea06808152b3ad0077876&selectedJob=176170088
we have 20 failures out of 21.
Flags: needinfo?(jmaher)
Comment 3•7 years ago
|
||
Thanks Eliza- this is great work and shows the exact problem.
I see that :aryx fixed the manifest in the next commit that landed:
https://hg.mozilla.org/integration/mozilla-inbound/rev/355349b199c457d45e420d775df07f7b6e9df859
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: needinfo?(jmaher)
Resolution: --- → FIXED
Comment 4•7 years ago
|
||
(In reply to Joel Maher ( :jmaher ) (UTC-4) from comment #3)
> Thanks Eliza- this is great work and shows the exact problem.
>
> I see that :aryx fixed the manifest in the next commit that landed:
> https://hg.mozilla.org/integration/mozilla-inbound/rev/
> 355349b199c457d45e420d775df07f7b6e9df859
Yes, he did, however the issue still occurs: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=41d06ef57fe6894c4ebd5a2e89b8788b1fd5fd8f&selectedJob=177152800
[task 2018-05-06T03:46:43.085Z] 03:46:43 INFO - if response.status != 200:
[task 2018-05-06T03:46:43.085Z] 03:46:43 INFO - > raise error.from_response(response)
[task 2018-05-06T03:46:43.085Z] 03:46:43 INFO - E InvalidArgumentException: invalid argument (400): Invalid unhandledPromptBehavior value: ignore
[task 2018-05-06T03:46:43.086Z] 03:46:43 INFO -
[task 2018-05-06T03:46:43.086Z] 03:46:43 INFO - body = {'capabilities': {'alwaysMatch': {'moz:firefoxOptions': {'binary': '/builds/worker/workspace/build/application/firefox...xn--lve-6lad.web-platform.test,www2.web-platform.test,www1.web-platform.test'}}, 'unhandledPromptBehavior': 'ignore'}}}
[task 2018-05-06T03:46:43.086Z] 03:46:43 INFO - method = 'POST'
[task 2018-05-06T03:46:43.086Z] 03:46:43 INFO - response = <Response status=400 error=<InvalidArgumentException http_status=400>>
[task 2018-05-06T03:46:43.089Z] 03:46:43 INFO - self = <Session (disconnected)>
[task 2018-05-06T03:46:43.089Z] 03:46:43 INFO - url = 'session'
[task 2018-05-06T03:46:43.089Z] 03:46:43 INFO -
[task 2018-05-06T03:46:43.089Z] 03:46:43 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:438: InvalidArgumentException
[task 2018-05-06T03:46:43.089Z] 03:46:43 INFO - TEST-PASS | /webdriver/tests/execute_script/user_prompts.py | test_handle_prompt_default
[task 2018-05-06T03:46:43.089Z] 03:46:43 INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/execute_script/user_prompts.py | test_handle_prompt_twice - NoSuchAlertException: no such alert (404): No modal dialog is currently open
[task 2018-05-06T03:46:43.089Z] 03:46:43 INFO - new_session = <function create_session at 0x7f7ba0038aa0>
[task 2018-05-06T03:46:43.089Z] 03:46:43 INFO - add_browser_capabilites = <function update_capabilities at 0x7f7ba0038b90>
[task 2018-05-06T03:46:43.089Z] 03:46:43 INFO -
[task 2018-05-06T03:46:43.089Z] 03:46:43 INFO - def test_handle_prompt_twice(new_session, add_browser_capabilites):
[task 2018-05-06T03:46:43.090Z] 03:46:43 INFO - _, session = new_session({"capabilities": {"alwaysMatch": add_browser_capabilites({"unhandledPromptBehavior": "accept"})}})
[task 2018-05-06T03:46:43.090Z] 03:46:43 INFO - value = session.execute_script("window.alert('Hello');window.alert('Bye');")
[task 2018-05-06T03:46:43.090Z] 03:46:43 INFO - assert value is None
[task 2018-05-06T03:46:43.090Z] 03:46:43 INFO - session.alert.dismiss()
[task 2018-05-06T03:46:43.090Z] 03:46:43 INFO - # The first alert has been accepted by the user prompt handler, the second one remains.
[task 2018-05-06T03:46:43.090Z] 03:46:43 INFO - # FIXME: this is how browsers currently work, but the spec should clarify if this is the
[task 2018-05-06T03:46:43.090Z] 03:46:43 INFO - # expected behavior, see https://github.com/w3c/webdriver/issues/1153.
[task 2018-05-06T03:46:43.090Z] 03:46:43 INFO - > assert session.alert.text == "Bye"
[task 2018-05-06T03:46:43.090Z] 03:46:43 INFO -
[task 2018-05-06T03:46:43.090Z] 03:46:43 INFO - _ = {'capabilities': {'acceptInsecureCerts': False, 'browserName': 'firefox', 'browserVersion': '61.0a1', 'moz:accessibilityChecks': False, ...}, 'sessionId': 'b581a7cb-8b56-42fb-a9be-a7e4d4f7f92d'}
[task 2018-05-06T03:46:43.090Z] 03:46:43 INFO - add_browser_capabilites = <function update_capabilities at 0x7f7ba0038b90>
[task 2018-05-06T03:46:43.090Z] 03:46:43 INFO - new_session = <function create_session at 0x7f7ba0038aa0>
[task 2018-05-06T03:46:43.091Z] 03:46:43 INFO - session = <Session b581a7cb-8b56-42fb-a9be-a7e4d4f7f92d>
[task 2018-05-06T03:46:43.091Z] 03:46:43 INFO - value = None
[task 2018-05-06T03:46:43.092Z] 03:46:43 INFO -
[task 2018-05-06T03:46:43.092Z] 03:46:43 INFO - tests/web-platform/tests/webdriver/tests/execute_script/user_prompts.py:73:
Flags: needinfo?(jmaher)
Comment hidden (Intermittent Failures Robot) |
Assignee | ||
Comment 6•7 years ago
|
||
Not sure why this bug has been marked as fixed. As we can see it still occurs. So reopening the bug. I can have a look later today.
Status: RESOLVED → REOPENED
Flags: needinfo?(jmaher) → needinfo?(hskupin)
Resolution: FIXED → ---
Assignee | ||
Comment 7•7 years ago
|
||
A commit as listed in these changesets caused the regression:
https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?changeset=6b980ffeab0c61f0eae10fb6cdac204c34f23c63
Given that this happens for `execute_script` and `execute_async_script` I would point out to bug 1453105 which originally comes from https://github.com/w3c/web-platform-tests/pull/10401.
Blocks: 1453105
status-firefox60:
--- → unaffected
status-firefox61:
--- → affected
Flags: needinfo?(hskupin)
Keywords: regression
Assignee | ||
Comment 8•7 years ago
|
||
Ok, so the change as landed via the following PR now closes the second alert as opened by the execute_script call:
https://github.com/w3c/web-platform-tests/pull/10401/files#diff-3c9886c5a3df541e02044c66f125020fR65
Given that in Firefox we do not yet support multiple alerts even not within the same browsing context (see bug 1264259) we should completely disable this specific test. Andreas, given that you reviewed this PR and spec change, do you agree?
Depends on: 1264259
Flags: needinfo?(ato)
Comment 9•7 years ago
|
||
thanks :whimboo!
Assignee | ||
Comment 10•7 years ago
|
||
What's strange is that this doesn't fail that constantly anymore now that some platforms / builds have been disabled. I wonder if there is some kind of race which causes that to appear.
Comment 11•7 years ago
|
||
(In reply to Henrik Skupin (:whimboo) from comment #8)
> Given that in Firefox we do not yet support multiple alerts even
> not within the same browsing context (see bug 1264259) we should
> completely disable this specific test. Andreas, given that you
> reviewed this PR and spec change, do you agree?
Yes, I agree with that.
(In reply to Henrik Skupin (:whimboo) from comment #10)
> What's strange is that this doesn't fail that constantly anymore
> now that some platforms / builds have been disabled. I wonder if
> there is some kind of race which causes that to appear.
I think it is likely there might be a collation of problems. Even
though Marionette doesn’t support the user prompt handler it does
have _some_ support for interacting with user prompts. The test
harness tries to clean up any user prompts between tests and this
might “conceal” some of the test failures/hangs.
Flags: needinfo?(ato)
Comment hidden (mozreview-request) |
Assignee | ||
Comment 13•7 years ago
|
||
Hm, I wonder how the disabled flag works for subtests as what wpt-sync adds like in this case. When I check the logs I can clearly see that tests are still run. Also it would be in conflict of what I have seen on bug 1447708. James, can you please explain?
Flags: needinfo?(james)
Comment 14•7 years ago
|
||
We run the test, but ignore the result of the subtest.
Flags: needinfo?(james)
Assignee | ||
Comment 15•7 years ago
|
||
I see. Thanks. So let me ask you for review.
Assignee | ||
Updated•7 years ago
|
Attachment #8974285 -
Flags: review?(james)
Comment 16•7 years ago
|
||
mozreview-review |
Comment on attachment 8974285 [details]
Bug 1459118 - [wdspec] Disable test_handle_prompt_twice for execute (async) script.
https://reviewboard.mozilla.org/r/242596/#review248578
Attachment #8974285 -
Flags: review?(james) → review+
Comment 17•7 years ago
|
||
Pushed by hskupin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8359164a5945
[wdspec] Disable test_handle_prompt_twice for execute (async) script. r=jgraham
Comment 18•6 years ago
|
||
bugherder |
Status: REOPENED → RESOLVED
Closed: 7 years ago → 6 years ago
status-firefox62:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
Comment 19•6 years ago
|
||
bugherder uplift |
Updated•6 years ago
|
status-firefox-esr52:
--- → unaffected
status-firefox-esr60:
--- → unaffected
Updated•6 years ago
|
Assignee: nobody → hskupin
Assignee | ||
Comment 20•6 years ago
|
||
This is not fixed but the test has been disabled.
Assignee: hskupin → nobody
Status: RESOLVED → REOPENED
Keywords: leave-open
Resolution: FIXED → ---
Target Milestone: mozilla62 → ---
Comment hidden (Intermittent Failures Robot) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•6 years ago
|
Attachment #8974285 -
Attachment is obsolete: true
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → hskupin
Status: REOPENED → ASSIGNED
Priority: P5 → P2
Assignee | ||
Comment 23•6 years ago
|
||
This is still failing for us, and as far as I can see it is somewhat blocked on https://github.com/w3c/webdriver/issues/1153. Andreas or David, do you think we can get some clarification for that spec issue?
Assignee: hskupin → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(dburns)
Flags: needinfo?(ato)
Priority: P2 → P5
Assignee | ||
Comment 24•6 years ago
|
||
Actually this might be dependent on bug 1270585, which covers the real problem and not only the failing test. Appropriate feedback is still welcome.
Comment 25•6 years ago
|
||
https://github.com/w3c/webdriver/issues/1153 should be addressed
by https://github.com/w3c/webdriver/pull/1248.
When a user prompt appears during script evaluation, the script is
immediately aborted and WebDriver returns to the user with data
value of null.
I confirmed a few days ago that this is the current behaviour of
Marionette.
Flags: needinfo?(dburns)
Flags: needinfo?(ato)
Assignee | ||
Comment 26•6 years ago
|
||
So we discussed this problem in our WebDriver Meeting (https://wiki.mozilla.org/WebDriver/Meetings/2018-07-30) today. The implementation of the test is actually still the old behavior before the last change to the spec was done for the two execute script commands.
As such the test has to be updated in that it will assert that only a single prompt is open and the second one never has been created.
Assignee | ||
Comment 27•6 years ago
|
||
Well, the outcome of our discussion wasn't that perfect. Issue https://github.com/w3c/webdriver/issues/1153 has not been addressed yet, and any change as mentioned in my last comment would break the IEDriver. As such the issue has been reopened and we still need a clarification for the spec.
This bug has to wait until then.
Comment 28•6 years ago
|
||
We are trying to build a tool to automatically classify intermittent failures, which would provide a starting point for fixing the bug, reducing the manual work for the developers.
We are collecting some feedback on the results, to see if they’re good enough and where we need to improve.
For this bug, the tool says that the intermittent failure is most likely a:
Concurrency Issue: This includes tests in which failures occur due to thread management issues (different threads or their outcomes depending on an implicit ordering), race conditions and/or deadlocks, and issues related to an asynchronous waits (e.g. a process trying to access an external resource or continuing before the external resource is available).
Once you’re done investigating and/or fixing the bug, could you tell me:
- Did the tool correctly recognize the type of intermittent failure?
- Did the information from the tool help your analysis, the bug fixing process, or anything in the process? (please also let us know how the tool was useful and/or what would improve the tool's usefulness for you)
Assignee | ||
Comment 29•6 years ago
|
||
This is actually blocked by bug 1487358 if opening two alerts is the expected behavior. The discussion is still ongoing on bug https://github.com/w3c/webdriver/issues/1153.
status-firefox63:
--- → disabled
status-firefox64:
--- → disabled
status-firefox65:
--- → disabled
Depends on: 1487358
Assignee | ||
Comment 30•4 years ago
|
||
Updated•4 years ago
|
Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Assignee | ||
Updated•4 years ago
|
Attachment #8995177 -
Attachment is obsolete: true
Comment 31•4 years ago
|
||
Pushed by hskupin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/646459eb4a35
[wdspec] Re-enable test_abort_by_user_prompt_twice for execute (async) script. r=webdriver-reviewers,maja_zf
Comment 32•4 years ago
|
||
bugherder |
Assignee | ||
Updated•4 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 6 years ago → 4 years ago
status-firefox84:
--- → fixed
Keywords: leave-open
Resolution: --- → FIXED
Summary: Intermittent /webdriver/tests/execute_script/user_prompts.py | test_handle_prompt_twice - NoSuchAlertException: no such alert (404): No modal dialog is currently open → Intermittent /webdriver/tests/execute_script/user_prompts.py | test_abort_by_user_prompt_twice - NoSuchAlertException: no such alert (404): No modal dialog is currently open
Target Milestone: --- → 84 Branch
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 33•4 years ago
|
||
Sheriffs, please backout this changeset, which caused bug 1677218 to appear.
Flags: needinfo?(sheriffs)
Comment 34•4 years ago
|
||
Status: RESOLVED → REOPENED
status-firefox84:
fixed → ---
Flags: needinfo?(sheriffs)
Resolution: FIXED → ---
Target Milestone: 84 Branch → ---
Assignee | ||
Comment 35•4 years ago
|
||
We also need the backout for the beta branch.
Status: REOPENED → NEW
status-firefox84:
--- → affected
status-firefox85:
--- → disabled
Flags: needinfo?(sheriffs)
Summary: Intermittent /webdriver/tests/execute_script/user_prompts.py | test_abort_by_user_prompt_twice - NoSuchAlertException: no such alert (404): No modal dialog is currently open → Intermittent Wd | test_abort_by_user_prompt_twice[<random>] - NoSuchAlertException: no such alert (404): No modal dialog is currently open
Assignee | ||
Updated•4 years ago
|
Assignee: hskupin → nobody
Updated•4 years ago
|
Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Comment 37•4 years ago
|
||
Backed out from beta: https://hg.mozilla.org/releases/mozilla-beta/rev/46065330d78798bbc49d83d97762ec1b060595bc
Status: ASSIGNED → NEW
Flags: needinfo?(sheriffs)
Assignee | ||
Updated•4 years ago
|
Comment 38•4 years ago
|
||
Backout merged: https://hg.mozilla.org/mozilla-central/rev/7184fb5a42fb
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Updated•4 years ago
|
Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Assignee | ||
Updated•4 years ago
|
Assignee: hskupin → nobody
Status: ASSIGNED → NEW
status-firefox86:
--- → disabled
Keywords: test-disabled
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 47•4 years ago
|
||
Due to the asynchronous nature of browsers the second
user prompt might not be opened immediately. As such
the test has to wait for the user prompt to appear.
Depends on D105317
Updated•4 years ago
|
Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Updated•4 years ago
|
Attachment #9187704 -
Attachment is obsolete: true
Comment 48•4 years ago
|
||
Pushed by hskupin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/fdc7d476adff
[wdspec] Wait for second user prompt in test_abort_by_user_prompt_twice tests. r=webdriver-reviewers,jgraham
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/27650 for changes under testing/web-platform/tests
Whiteboard: [retriggered] → [retriggered] , [wptsync upstream]
Comment 50•4 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 4 years ago → 4 years ago
status-firefox87:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
Upstream PR merged by moz-wptsync-bot
Updated•4 years ago
|
status-firefox-esr78:
--- → disabled
Comment 52•2 years ago
|
||
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.
Description
•