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•8 years ago
|
||
dup of bug 1275100
Comment 2•8 years ago
|
||
This is about an intermittent failure. Bug 1275100 is about the fact that the test will fail on merge day because of the signon.rememberSignons.visibilityToggle pref only being true on Nightly: https://mxr.mozilla.org/mozilla-central/source/modules/libpref/init/all.js?rev=cfda20b697dd#4196
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•8 years ago
|
||
Can you work on this? This is marked as a dependency of one of your fixed bugs.
Updated•8 years ago
|
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (mozreview-request) |
Comment 14•8 years ago
|
||
Since pyGTK error on linux is not resolved anytime soon, I'd like to disable the test on linux to avoid intermittent
Comment 15•8 years ago
|
||
mozreview-review |
Comment on attachment 8779190 [details] Bug 1272849 - skip browser_notification_2 test on linux to avoid intermittent; https://reviewboard.mozilla.org/r/70224/#review67510 The pyGTK issue is harmless (as the bug summary says) and isn't what's causing the orange. The issue is the "Main action button is disabled - false == true…" from the description.
Comment hidden (Intermittent Failures Robot) |
Comment 18•8 years ago
|
||
The origin browser_notification_2 related tests are fully skipped on linux, in patch bug 1217134 I separated browser_notification tests to browser_notification_1 and browser_notification_2, then removed the skip sentence because I can run test successfully both at local and treeherder. Though now the browser_notification_2 still shows intermittent issues, I think a practical way is to add skipped="linux" back if we can't simply find the root cause which make test fail on linux.
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment 21•8 years ago
|
||
(In reply to Fred Lin [:gasolin] from comment #18) > Though now the browser_notification_2 still shows intermittent issues, I > think a practical way is to add skipped="linux" back if we can't simply find > the root cause which make test fail on linux. Fine with me though it's not 100% Linux it will at least reduce the volume.
Comment hidden (Intermittent Failures Robot) |
Comment 23•8 years ago
|
||
Comment on attachment 8779190 [details] Bug 1272849 - skip browser_notification_2 test on linux to avoid intermittent; Ask for review again based on comment 18
Comment 24•8 years ago
|
||
mozreview-review |
Comment on attachment 8779190 [details] Bug 1272849 - skip browser_notification_2 test on linux to avoid intermittent; https://reviewboard.mozilla.org/r/70224/#review73222 ::: toolkit/components/passwordmgr/test/browser/browser.ini:41 (Diff revision 1) > subtst_notifications_11_popup.html > [browser_username_select_dialog.js] > support-files = > subtst_notifications_change_p.html > [browser_DOMFormHasPassword.js] > [browser_DOMInputPasswordAdded.js] Nit: You have a typo ("testt") in the commit message. Thanks
Comment hidden (mozreview-request) |
Comment 27•8 years ago
|
||
Fred, could you leave a comment after the skip-if statement and refer to this bug? Given that this bug is not really being fixed, we should leave it open as well.
Comment hidden (mozreview-request) |
Comment 29•8 years ago
|
||
Thanks for remind, added a comment after skip-if sentence
Comment 30•8 years ago
|
||
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/fx-team/rev/ada110cf62d8 Skip browser_notification_2 test on linux to avoid intermittent. r=MattN
Comment 31•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ada110cf62d8
Comment 32•8 years ago
|
||
Bulk assigning P3 to all open intermittent bugs without a priority set in Firefox components per bug 1298978.
Comment hidden (Intermittent Failures Robot) |
Updated•8 years ago
|
Comment hidden (Intermittent Failures Robot) |
Comment 35•5 years ago
|
||
I guess we fixed it
Comment 36•5 years ago
|
||
Still disabled from what I can see.
Updated•5 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•5 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•5 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•5 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•5 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•5 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•5 years ago
|
||
Comment 52•5 years ago
|
||
Comment on attachment 9059694 [details] [diff] [review] disable browser_notifications_2.js per mattn's request until he fixes it. ># HG changeset patch ># User Stefan Hindli <shindli@mozilla.com> ># Parent 72be82c6809e2cc187e5cffdff0c3e686c564a57 >|Bug 1272849 - disable browser_notifications_2.js per mattn's request until he fixes it r=jmaher| > >diff --git a/toolkit/components/passwordmgr/test/browser/browser.ini b/toolkit/components/passwordmgr/test/browser/browser.ini >--- a/toolkit/components/passwordmgr/test/browser/browser.ini >+++ b/toolkit/components/passwordmgr/test/browser/browser.ini >@@ -73,6 +73,7 @@ skip-if = verify > [browser_notifications_password.js] > [browser_notifications_2.js] > skip-if = os == "linux" # Bug 1272849 Main action button disabled state intermittent >+skip-if = (os == "win" && os_version == 10.0 && bits = 64) || (os == "win" && os_version == 6.1 && !debug) (os == "osx" && !debug) > [browser_openPasswordManager.js] > [browser_passwordmgr_editing.js] > skip-if = os == "linux"
Updated•5 years ago
|
Comment 53•5 years ago
|
||
backout bugherder |
Updated•5 years ago
|
Comment 54•5 years ago
|
||
Pushed by apavel@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ae52b1712e8d disabled browser_notifications_2.js until a fix is available r=jmaher
Comment 55•5 years ago
|
||
bugherder |
Comment 56•5 years ago
|
||
Pushed by mozilla@noorenberghe.ca: https://hg.mozilla.org/integration/mozilla-inbound/rev/7701a0d0fb8b browser_notifications_2.js: Properly clear the password field in the doorhanger. r=intermittent
Comment hidden (Intermittent Failures Robot) |
Comment 58•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Assignee | ||
Comment 59•5 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•5 years ago
|
||
Pushed by mozilla@noorenberghe.ca: https://hg.mozilla.org/integration/mozilla-inbound/rev/b29a467b6c66 Move test_empty_password to its own file. r=intermittent
Comment 61•5 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•5 years ago
|
Comment 62•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 63•5 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•5 years ago
|
||
Depends on D50125
Updated•5 years ago
|
Comment 65•5 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•5 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•5 years ago
|
||
Pushed by sfoster@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4ebff107956a Enable empty-password test and tighten up with shared helpers. r=MattN
Comment 68•5 years ago
|
||
bugherder |
Comment 69•5 years ago
|
||
Bugbug thinks this bug is a regression, but please revert this change in case of error.
Assignee | ||
Comment 70•5 years ago
|
||
Not a regression. The patch that landed should have fixed and re-enabled the test
Updated•5 years ago
|
Description
•