Closed
Bug 764901
Opened 11 years ago
Closed 5 years ago
Intermittent Robocop testPasswordEncrypt | Storing a password while MP was set should fail - got content://org.mozilla.fennec.db.passwords/passwords/2?profilePath=%2Fmnt%2Fsdcard%2Ftests%2Fprofile, expected null
Categories
(Firefox for Android Graveyard :: General, defect, P3)
Tracking
(Not tracked)
RESOLVED
INACTIVE
Firefox 17
People
(Reporter: mbrubeck, Unassigned)
References
Details
(Keywords: intermittent-failure)
Attachments
(2 files, 1 obsolete file)
8.09 KB,
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
1.81 KB,
patch
|
wesj
:
review+
|
Details | Diff | Splinter Review |
https://tbpl.mozilla.org/php/getParsedLog.php?id=12664943&tree=Firefox Android Tegra 250 mozilla-central opt test robocop on 2012-06-14 08:56:43 PDT for push 983b91e5aa17 slave: tegra-159 1 INFO TEST-START | testPasswordEncrypt 2 INFO TEST-PASS | testPasswordEncrypt | Found a content resolver - android.app.ContextImpl$ApplicationContentResolver@48520378 should not equal null 3 INFO TEST-PASS | testPasswordEncrypt | Insert returned correct uri - content://org.mozilla.fennec.db.passwords/passwords/1?profilePath=%2Fmnt%2Fsdcard%2Ftests%2Fprofile should equal content://org.mozilla.fennec.db.passwords/passwords/1?profilePath=%2Fmnt%2Fsdcard%2Ftests%2Fprofile 4 INFO TEST-PASS | testPasswordEncrypt | Username was encrypted correctly when inserting - username should equal username 5 INFO TEST-PASS | testPasswordEncrypt | Password was encrypted correctly when inserting - password should equal password 6 INFO TEST-PASS | testPasswordEncrypt | Password has correct encryption type - 1 should equal 1 7 INFO TEST-PASS | testPasswordEncrypt | Username was encrypted when updating - username2 should equal username2 8 INFO TEST-PASS | testPasswordEncrypt | Password was encrypted when updating - password2 should equal password2 9 INFO TEST-UNEXPECTED-FAIL | testPasswordEncrypt | Storing a password while MP was set should fail - got content://org.mozilla.fennec.db.passwords/passwords/2?profilePath=%2Fmnt%2Fsdcard%2Ftests%2Fprofile, expected null 10 INFO TEST-END | testPasswordEncrypt | finished in 13572ms 11 INFO TEST-START | Shutdown 12 INFO Passed: 7 13 INFO Failed: 1 14 INFO Todo: 0
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
![]() |
||
Comment 19•11 years ago
|
||
I have not been able to reproduce this locally to debug. I wonder if toggleMasterPassword() is failing, or if it somehow hasn't taken effect before the storage attempt is made.
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
![]() |
||
Updated•11 years ago
|
Assignee: nobody → gbrown
![]() |
||
Comment 22•11 years ago
|
||
Other Fennec code gets and sets preferences and it seems possible that toggleMasterPassword might unblock on a notification for another preference. The current test framework does not allow for verification of the data associated with an event that we have blocked on (I have seen a bug/patch for that somewhere). Even if we could see the event data, we could not definitively associate the Pref:Data message with our request - bug 753312. However, in renewed testing, I was able to reproduce this once with additional logging and saw this failure occur where we unblocked on a Pref:Data for the masterpassword.enabled and that occurred after browser.js had executed setPassword and updatePref -- suggesting that there is another way for this to fail.
Comment hidden (Legacy TBPL/Treeherder Robot) |
![]() |
||
Comment 24•11 years ago
|
||
It's difficult to address the concerns in comment 22 without major changes to our framework, but here's a simpler way forward that may help: Use the existing RepeatedEventExpecter interface and blockUntilClear to wait not only for Pref:Data, but for a period of 2 seconds during which no additional Pref:Data messages are received. I have also tried to improve the exception reporting, in case a caught-and-ignored exception is playing a part.
Attachment #650942 -
Flags: review?(jmaher)
![]() |
||
Comment 25•11 years ago
|
||
Sorry - attached the wrong patch!
Attachment #650942 -
Attachment is obsolete: true
Attachment #650942 -
Flags: review?(jmaher)
Attachment #650943 -
Flags: review?(jmaher)
Comment 26•11 years ago
|
||
Comment on attachment 650943 [details] [diff] [review] blockUntilClear in toggleMasterPassword Review of attachment 650943 [details] [diff] [review]: ----------------------------------------------------------------- always a fun hack in robocop.
Attachment #650943 -
Flags: review?(jmaher) → review+
Comment 27•11 years ago
|
||
Adding dependency on bug 753312 so that hopefully we can remove the hack once that is fixed.
Depends on: 753312
![]() |
||
Comment 28•11 years ago
|
||
Try run is good: https://tbpl.mozilla.org/?tree=Try&rev=b710280000a0
Comment 30•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7084761aa77b
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 17
Comment hidden (Legacy TBPL/Treeherder Robot) |
Updated•11 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
![]() |
||
Comment 39•11 years ago
|
||
fwiw, when this test succeeds, the request fails with: GeckoJNI: Throwing error: PK11SDR_Encrypt returned error -8152: The key does not support the requested operation. and the C call stack is: PK11SDR_Encrypt PK11_CreateContextBySymKey pk11_CreateNewContextInSlot pk11_context_init (CKA_ENCRYPT) returns crv == 96 (0x60) This does not appear to be tightly coupled to the operation of setting the MP pref, so I am suspicious of a race condition arising...but you would think the 2000 ms delay introduced by the last patch would deal with that. :wesj is trying to land patches in another bug to give us better feedback regarding the pref setting.
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Assignee | ||
Updated•11 years ago
|
Keywords: intermittent-failure
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
![]() |
||
Comment 131•11 years ago
|
||
These intermittent failures have gone on for too long. I still aspire to update the robocop infra to understand event data, so that we can try to wait for the pref change better...but I'm not finding time for that, and I am not sure that will resolve the failures. So here's a patch that disables the failing assertions with big TODO comments pointing back to this bug. My plan is to [leave open] and re-visit the event data/pref change issue when time allows.
Attachment #683626 -
Flags: review?(wjohnston)
Updated•11 years ago
|
Attachment #683626 -
Flags: review?(wjohnston) → review+
Comment hidden (Legacy TBPL/Treeherder Robot) |
![]() |
||
Comment 133•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/30e3ecf54ab2
Whiteboard: [orange] → [orange] [leave open]
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Assignee | ||
Updated•11 years ago
|
Whiteboard: [orange] [leave open] → [leave open]
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
![]() |
||
Comment 152•10 years ago
|
||
The robocop infra changes referenced in Comment 131 have been made now, and seem to allow for re-enabling the code disabled in this patch, except for bug 824067. https://tbpl.mozilla.org/?tree=Try&rev=f537f6967f52 I don't want to make changes here until the bigger issue is addressed.
Assignee: gbrown → nobody
Updated•9 years ago
|
Keywords: leave-open
Whiteboard: [leave open]
Comment 153•7 years ago
|
||
Bulk assigning P3 to all open intermittent bugs without a priority set in Firefox components per bug 1298978.
Priority: -- → P3
Comment 154•5 years ago
|
||
The leave-open keyword is there and there is no activity for 6 months. :sdaswani, maybe it's time to close this bug?
Flags: needinfo?(sdaswani)
Status: REOPENED → RESOLVED
Closed: 11 years ago → 5 years ago
Flags: needinfo?(sdaswani)
Resolution: --- → INVALID
Updated•5 years ago
|
Keywords: leave-open
Comment 155•5 years ago
|
||
Invalid would only be the correct resolution if the test filled with comment-out parts was removed from the tree. The pointless "resolution" you're looking for that means "we can't be bothered to fix this test, and just want housekeeping bots to not bother us" is inactive.
Resolution: INVALID → INACTIVE
Assignee | ||
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•