TPS failure: test_sync.js: ASSERTION FAILED! Validation error for "passwords" of type "serverMissing"

VERIFIED FIXED in Firefox 54


2 years ago
Last year


(Reporter: kthiessen, Assigned: lina)


Dependency tree / graph

Firefox Tracking Flags

(firefox53 unaffected, firefox54 fixed, firefox55 fixed)


(Whiteboard: [sec-insecure-third-party-site-reviewed])


(2 attachments)

Posted file TPS output
This is the bug Kit and I saw when preparing the "light" run file to run TPS as a smoke check against prod.

TPS stdout is attached.
Whiteboard: [sec-insecure-third-party-site-reviewed]
Comment on attachment 8850266 [details]
Bug 1349709 - Ensure `PasswordEngine` conforms to the new `pullAllChanges` interface.

::: services/sync/modules/engines/passwords.js:104
(Diff revision 1)
>    },
>    pullAllChanges() {
> -    let changeset = new Changeset();
> +    let changes = {};
>      for (let [id, info] of Object.entries(this._store.getAllIDs())) {
> -      changeset.set(id, info.timePasswordChanged);
> +      changes[id] = info.timePasswordChanged / 1000;

Glad you took this bug because I didn't realize there was a unit mismatch!

::: services/sync/tests/unit/test_password_engine.js:11
(Diff revision 1)
> +  ";1", Ci.nsILoginInfo, "init");
> +
> +const PropertyBag = Components.Constructor(
> +  ";1", Ci.nsIWritablePropertyBag);
> +
> +function serverForEngine(engine) {

At some point we should move this function into one of the headers... But probably not this bug.
Attachment #8850266 - Flags: review?(tchiovoloni) → review+
Pushed by
Ensure `PasswordEngine` conforms to the new `pullAllChanges` interface. r=tcsc
Comment on attachment 8850266 [details]
Bug 1349709 - Ensure `PasswordEngine` conforms to the new `pullAllChanges` interface.

Approval Request Comment
[Feature/Bug causing the regression]: Bug 1317223.
[User impact if declined]: Password syncing is completely broken for new users.
[Is this code covered by automated tests?]: Yes.
[Has the fix been verified in Nightly?]: Not yet. Once this patch lands, it can be verified using the TPS test suite.
[Needs manual test from QE? If yes, steps to reproduce]: No.
[List of other uplifts needed for the feature/fix]: None.
[Is the change risky?]: No.
[Why is the change risky/not risky?]: Three-line change to fix a change introduced in bug 1317223; includes xpcshell test.
[String changes made/needed]: None.
Attachment #8850266 - Flags: approval-mozilla-aurora?
Blocks: 1317223
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Comment on attachment 8850266 [details]
Bug 1349709 - Ensure `PasswordEngine` conforms to the new `pullAllChanges` interface.

Fix a broken password syncing. Aurora54+.
Attachment #8850266 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
backed out for causing problems like
Flags: needinfo?(kit)
Re-landed in, tests should pass now that bug 1345005 has been uplifted, too.
Flags: needinfo?(kit)
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.