Closed Bug 659112 Opened 13 years ago Closed 13 years ago

Surprise test failure in test_bookmark_engine.js, test_corrupt_keys.js

Categories

(Firefox :: Sync, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla6

People

(Reporter: rnewman, Assigned: philikon)

Details

(Whiteboard: [qa-])

Attachments

(1 file, 2 obsolete files)

"constraint failed" when changing GUID, line 55. Looks like our 'random' GUID is no longer acceptable!
Attached patch Proposed patch. v1 (obsolete) — Splinter Review
Assignee: nobody → rnewman
Status: NEW → ASSIGNED
Attachment #534549 - Flags: review?(philipp)
Attachment #534549 - Flags: review?(philipp) → review+
Part two is a lack of HMAC failures in test_corrupt_keys, presumably because our lastSync isn't starting afresh at 0...
Summary: Surprise test failure in test_bookmark_engine.js. → Surprise test failure in test_bookmark_engine.js, test_corrupt_keys.js
Attached patch Part 2. v1 (obsolete) — Splinter Review
Fix this in two places: firstly by refreshing a single server item, and secondly by just setting lastSync to 0. That matches up with the intent of the test.
Attachment #534562 - Flags: review?(philipp)
Assignee: rnewman → philipp
Attachment #534549 - Attachment is obsolete: true
Attachment #534562 - Attachment is obsolete: true
Attachment #534562 - Flags: review?(philipp)
Attachment #534579 - Flags: review?(rnewman)
Comment on attachment 534579 [details] [diff] [review]
fix root cause in test harness

I should explain this: basically, since we call do_get_profile(), we already have a ProfD directory, we don't need to provide one. If we do and we map it to cwd, it will get shared between test runs and non-clobber builds will have test failures.
Comment on attachment 534579 [details] [diff] [review]
fix root cause in test harness

Two consecutive all-pass test runs. Looks good.
Attachment #534579 - Flags: review?(rnewman) → review+
http://hg.mozilla.org/mozilla-central/rev/36e0a6facb40
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [fixed in services][qa-] → [qa-]
Target Milestone: --- → mozilla6
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: