Intermittent Main action button is disabled - false == true - JS frame :: chrome://mochitests/content/browser/toolkit/components/passwordmgr/test/browser/browser_capture_doorhanger_empty_password.js :: test_empty_password
Categories
(Toolkit :: Password Manager, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox72 | --- | fixed |
People
(Reporter: philor, Assigned: sfoster)
References
Details
(Keywords: intermittent-failure, Whiteboard: [stockwell disabled])
Attachments
(3 files, 1 obsolete file)
Comment 1•9 years ago
|
||
Comment 2•9 years ago
|
||
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment 8•9 years ago
|
||
Updated•9 years ago
|
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (mozreview-request) |
Comment 14•9 years ago
|
||
Comment 15•9 years ago
|
||
mozreview-review |
Comment hidden (Intermittent Failures Robot) |
Comment 18•9 years ago
|
||
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment 21•9 years ago
|
||
Comment hidden (Intermittent Failures Robot) |
Comment 23•9 years ago
|
||
Comment 24•9 years ago
|
||
mozreview-review |
Comment hidden (mozreview-request) |
Comment 27•9 years ago
|
||
Comment hidden (mozreview-request) |
Comment 29•9 years ago
|
||
Comment 30•9 years ago
|
||
Comment 31•9 years ago
|
||
bugherder |
Comment 32•9 years ago
|
||
Comment hidden (Intermittent Failures Robot) |
Updated•9 years ago
|
Comment hidden (Intermittent Failures Robot) |
Comment 35•7 years ago
|
||
I guess we fixed it
Comment 36•7 years ago
|
||
Still disabled from what I can see.
Updated•7 years ago
|
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment 42•6 years ago
|
||
The failures were fixed with this backout: https://hg.mozilla.org/integration/autoland/rev/2c4c3f7a6e7b1a4c1465295a501f1d86168a5f12
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment 46•6 years ago
|
||
Over the last 7 days there are 76 failures present on this bug. These happen on osx-10-10, osx-10-10-shippable, windows10-64, windows10-64-ccov, windows10-64-shippable. windows10-aarch64, windows7-32, windows7-32-shippable.
Here is the most recent log example: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=241646343&repo=mozilla-inbound&lineNumber=7483
Comment 47•6 years ago
|
||
Can you please disable the test for now? I thought my fix in https://hg.mozilla.org/integration/mozilla-inbound/rev/33f6d42d7fa92c72b4adb78cf1e6f19932266bf6 was the solution because it worked locally.
Comment 48•6 years ago
|
||
:mattn - submitted a patch for disabling this test on affected platforms.
:jmaher, sorry in advance for requesting a "data-review" but the simple "review" field did not have "?" :)
Comment hidden (Intermittent Failures Robot) |
Comment 50•6 years ago
|
||
Occurrences starting with the 20th are from https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&resultStatus=testfailed%2Cbusted%2Cexception&selectedJob=241611877&revision=e9be442c871e173a409f3b969f5bcea0e1ae4d71&searchStr=browser-chrome
Both bugs have been backed out as this is a tier1 perma-failure that occurs on both trees.
Backing out fixed the issue: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&resultStatus=success%2Ctestfailed%2Cbusted%2Cexception&searchStr=browser%2Cchrome&group_state=expanded&fromchange=e9be442c871e173a409f3b969f5bcea0e1ae4d71
Comment 51•6 years ago
|
||
Comment 52•6 years ago
|
||
Updated•6 years ago
|
Comment 53•6 years ago
|
||
backout bugherder |
Updated•6 years ago
|
Comment 54•6 years ago
|
||
Comment 55•6 years ago
|
||
bugherder |
Comment 56•6 years ago
|
||
Comment hidden (Intermittent Failures Robot) |
Comment 58•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Assignee | ||
Comment 59•6 years ago
|
||
Here's some of the stuff I've tried to fix or at least diagnose what is going on here. In each case I've run the test using --verify several times with no local failures (Ubuntu / artifact build) before pushing to try:
-
Assert the password input still has focus when calling synthesizeKeys: https://treeherder.mozilla.org/#/jobs?repo=try&revision=4f6e4af182901ca89682101cd08d8166cf8d7701
- The logs show that nonetheless, the field still has the value of "pw" (not "") so the test fails
-
Select field value and send backspace key to clear the password input: https://treeherder.mozilla.org/#/jobs?repo=try&selectedJob=246450075&revision=93f8f0d079bddc568a637b7be2d8721364c3bacf
- The logs show the field still has the value of "pw" (not "") so the test fails
-
Assigning passwordTextbox.value = "" and dispatching an input event: https://treeherder.mozilla.org/#/jobs?repo=try&revision=b930f27f6176c2b7686e9090206140bfe6813cbb
- The logs show the field still has the value of "pw" (not "") so the test fails.
This last one is especially mystifying as up to this point I had assumed we were dealing with a focus issue, with the keys being sent to the wrong window or element. But with this implementation password field value should be cleared and the test should pass with or without focus. So either waiting for the input event is incorrect and racy, or there's something else entirely going on here. Is waiting for popupshown really a definitive way to know the doorhanger is visible and interactive? Is the password input .value property read-only at some point?
Comment 60•6 years ago
|
||
Comment 61•6 years ago
|
||
I moved the one test task to browser_capture_doorhanger_empty_password.js so I could re-enable the rest of the file.
Updated•6 years ago
|
Comment 62•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 63•6 years ago
|
||
I have a patch that seems like it fixes this, but the try runs I've done all run into intermittent failures in test-verify (TV).
Such as: https://treeherder.mozilla.org/#/jobs?repo=try&revision=13fc4f5a67bf9ea741b0b6f4b02139c1310a0bb2
I can get bug 1580326 to trigger using --verify locally (weird, the <login-filter> is just not there when it fails, some race in its dependencies?) I can't reproduce the failure in toolkit/components/passwordmgr/test/browser/browser_autocomplete_master_password.js. So I'm not sure yet if this is a real regression my patch might introduce or some other thing.
One of the patterns I see is popups being left in an indeterminate state between tests, which is an issue particularly when a test is waiting for a "showing" event but the popup is already shown. Sharing helpers and tidying up popups at the end of each task should help, but its a lot of changes and hard to measure their impact.
Assignee | ||
Comment 64•6 years ago
|
||
Depends on D50125
Updated•6 years ago
|
Comment 65•6 years ago
|
||
(In reply to Sam Foster [:sfoster] (he/him) from comment #63)
One of the patterns I see is popups being left in an indeterminate state between tests, which is an issue particularly when a test is waiting for a "showing" event but the popup is already shown. Sharing helpers and tidying up popups at the end of each task should help, but its a lot of changes and hard to measure their impact.
I would support doing this in head.js' registerCleanupFunction
for all relevant popups (autocomplete, doorhanger, context menu, etc.) to ensure that each test starts with an expected state.
Comment 66•6 years ago
|
||
(In reply to Sam Foster [:sfoster] (he/him) from comment #63)
I have a patch that seems like it fixes this, but the try runs I've done all run into intermittent failures in test-verify (TV).
Such as: https://treeherder.mozilla.org/#/jobs?repo=try&revision=13fc4f5a67bf9ea741b0b6f4b02139c1310a0bb2I can get bug 1580326 to trigger using --verify locally (weird, the <login-filter> is just not there when it fails, some race in its dependencies?) I can't reproduce the failure in toolkit/components/passwordmgr/test/browser/browser_autocomplete_master_password.js. So I'm not sure yet if this is a real regression my patch might introduce or some other thing.
I believe TV only runs tests that were changed in the commit so I think you're only seeing those Tier 2 TV failures because they are changed and it's possible those issues already existed. You would have to do a TV try push without your patches to confirm. I would probably just land the patches as-is since they are tier 2 and won't cause a backout then we can fix any high-frequency failures after.
Comment 67•6 years ago
|
||
Comment 68•6 years ago
|
||
bugherder |
Comment 69•6 years ago
|
||
Bugbug thinks this bug is a regression, but please revert this change in case of error.
Assignee | ||
Comment 70•6 years ago
|
||
Not a regression. The patch that landed should have fixed and re-enabled the test
Updated•6 years ago
|
Description
•