Closed Bug 841355 Opened 12 years ago Closed 12 years ago

Test failure "Password notification should be closed" in some functional tests that use notification.getNode().state

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

defect
Not set
normal

Tracking

(firefox21 fixed, firefox22 fixed)

RESOLVED FIXED
Tracking Status
firefox21 --- fixed
firefox22 --- fixed

People

(Reporter: daniela.p98911, Assigned: daniela.p98911)

References

()

Details

(Keywords: regression, Whiteboard: s=130218 u=failure c=preferences p=1)

Attachments

(2 files, 1 obsolete file)

Started happening today in two of the tests that use notification.getNode().state: Failing test: /testPreferences/testPasswordSavedAndDeleted.js on Latest Nightly, MAC OS 10.8.2 en-US: http://mozmill-ci.blargon7.com/#/functional/report/a83c700664548dba07298b74bf58706f Linux x64 and Nightly: http://mozmill-ci.blargon7.com/#/functional/report/a83c700664548dba07298b74bf5a882b Linux x86 and Nightly: http://mozmill-ci.blargon7.com/#/functional/report/a83c700664548dba07298b74bf5a82fb Failing test: /restartTests/testPreferences_masterPassword/test1.js in Latest Nightly, MAC OS 10.8.2: http://mozmill-ci.blargon7.com/#/functional/report/a83c700664548dba07298b74bf58bfab I was able to reproduce this locally on MAC OS 10.7.5 with both tests and the latest Nightly build: http://mozmill-crowd.blargon7.com/#/functional/report/a83c700664548dba07298b74bf5bb90c http://mozmill-crowd.blargon7.com/#/functional/report/a83c700664548dba07298b74bf5c0f4 The issue does not reproduce with yesterday build. The pushlog is here: http://hg.mozilla.org/mozilla-central/pushloghtml?changeset=aceeea086ccb and I will try to find the change that caused this.
I can replicate this locally too. It appears if I add a one second sleep before /tests/functional/testPreferences/testPasswordSavedAndDeleted.js:54 the test passes. Continue looking for a regressing changeset, but we might need to bolster this with a better way of waiting for the button before we click it.
Attached patch skip patchSplinter Review
Prepared a skip patch if needed.
Attachment #714340 - Flags: review?(hskupin)
Attachment #714340 - Flags: review?(dave.hunt)
Attachment #714340 - Flags: review?(andreea.matei)
Comment on attachment 714340 [details] [diff] [review] skip patch Review of attachment 714340 [details] [diff] [review]: ----------------------------------------------------------------- Landed as: http://hg.mozilla.org/qa/mozmill-tests/rev/93688907cd52 Unfortunately I did this before noticing the commit message. Please be more descriptive in future. In this case, something like "Bug 841355 - Skipped tests due to test failure: 'Password notification should be closed'"
Attachment #714340 - Flags: review?(hskupin)
Attachment #714340 - Flags: review?(dave.hunt)
Attachment #714340 - Flags: review?(andreea.matei)
Attachment #714340 - Flags: review+
Attachment #714340 - Flags: checkin+
Assignee: nobody → dpetrovici
Whiteboard: s=130218 u=failure c=preferences p=1
I think that it might be related to bug 583175 - merged changeset da6fdc53ba9c
Assignee: dpetrovici → nobody
Whiteboard: s=130218 u=failure c=preferences p=1
The fix is to disable the security delay as we do for some testsuites in m-c[1] by setting security.notification_enable_delay to 0. [1] https://hg.mozilla.org/mozilla-central/diff/da6fdc53ba9c/build/automation.py.in
Assignee: nobody → dpetrovici
Whiteboard: s=130218 u=failure c=preferences p=1
We could patch Mozmill for that but I wouldn't go and fire another release for 1.5 because of that change. So for our tests I would say lets set the preference to 0s until Mozmill can handle it.
Blocks: 583175
Keywords: regression
Attached patch patch v1.0 (obsolete) — Splinter Review
I have re-enabled the tests and added preferences for all tests that are using the notification.getNode().state. This means all three tests were modified, not just the two that failed. This is because when changing just the testPreferences/testPasswordSavedAndDeleted.js and running through mozmill-automation the test is still failing every time: http://mozmill-crowd.blargon7.com/#/functional/report/f36358d058daf73ddbf7815016086f87 When changing the /testPasswordManager/testPasswordNotificationBar.js too, the tests are not failing anymore: http://mozmill-crowd.blargon7.com/#/functional/report/f36358d058daf73ddbf78150160cf214 http://mozmill-crowd.blargon7.com/#/functional/report/f36358d058daf73ddbf78150160d01f7
Attachment #715144 - Flags: review?(andreea.matei)
Comment on attachment 715144 [details] [diff] [review] patch v1.0 Review of attachment 715144 [details] [diff] [review]: ----------------------------------------------------------------- Beside my comment given inline please also file a bug for Mozmill. ::: tests/functional/restartTests/testPreferences_masterPassword/test1.js @@ +13,4 @@ > const LOCAL_TEST_FOLDER = collector.addHttpResource('../../../../data/'); > const LOCAL_TEST_PAGE = LOCAL_TEST_FOLDER + 'password_manager/login_form.html'; > > +const SECURITY_NOTIFICATION_DELAY = "security.notification_enable_delay"; I want to see an XXX description here so we know when to remove the code again.
Attachment #715144 - Flags: review?(andreea.matei) → review-
Attached patch patch v1.1Splinter Review
Logged bug 842472 for the Mozmill changes and updated patch based on review
Attachment #715144 - Attachment is obsolete: true
Attachment #715421 - Flags: review?(andreea.matei)
Depends on: 842472
Comment on attachment 715421 [details] [diff] [review] patch v1.1 Review of attachment 715421 [details] [diff] [review]: ----------------------------------------------------------------- No need for this changes in our tests as we have discussed on IRC to make them in mozmill directly.
Attachment #715421 - Flags: review?(andreea.matei) → review-
Backed out on default: http://hg.mozilla.org/qa/mozmill-tests/rev/d4e049e431b6 (default) Waiting confirmation that is all good to do the same on aurora as well.
Backed out from aurora: http://hg.mozilla.org/qa/mozmill-tests/rev/c7d07fb5ff1d (aurora) And I think we're done here :) Thanks!
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: