Closed
Bug 708965
Opened 14 years ago
Closed 14 years ago
TPS enhancements around Sync data handling and test setup
Categories
(Firefox :: Sync, defect)
Firefox
Sync
Tracking
()
RESOLVED
FIXED
mozilla11
People
(Reporter: gps, Unassigned)
References
Details
(Whiteboard: [fixed in services])
Attachments
(1 file)
26.50 KB,
patch
|
rnewman
:
review+
jgriffin
:
feedback+
|
Details | Diff | Splinter Review |
As part of developing the TPS tests for add-on sync, I refactored TPS's handling of the special syncs that occur at the beginning and end of a single TPS test.
Changes made:
* WIPE_SERVER renamed to WIPE_REMOTE because it was actually calling Service.wipeRemote()
* Refactor login() logic into a standalone function. It only does work when it needs to instead of every time.
* Implement ResetData() action which performs a wipeServer + local client data wipe and logs in again. This simulates a fresh Sync experience.
* Invoke ResetData() automagically at the beginning of the first test phase
* Modify existing tests and remove now uncessary call to WIPE_SERVER during first Sync.
* Fix bug around handling of cleanup wipeServer that could result in inappropriate scheduling.
* Log the current phase progress better.
* Misc style and nits improvements.
* A misc add-ons change snuck in. I'm too lazy to split it out of the patch. The add-ons code isn't active, so the change should be harmless. This patch is a prereq for add-on sync, so it needs to land sometime.
Attachment #580323 -
Flags: review?(rnewman)
![]() |
||
Updated•14 years ago
|
Attachment #580323 -
Attachment is patch: true
![]() |
||
Comment 1•14 years ago
|
||
Comment on attachment 580323 [details] [diff] [review]
TPS enhancements, v1
Thanks for the cleanup!
Attachment #580323 -
Flags: feedback+
Comment 2•14 years ago
|
||
Comment on attachment 580323 [details] [diff] [review]
TPS enhancements, v1
Review of attachment 580323 [details] [diff] [review]:
-----------------------------------------------------------------
If jgriffin's happy, I'm happy. But please give a little thought to forensics here.
::: services/sync/tps/extensions/tps/modules/tps.jsm
@@ +528,5 @@
> Logger.logInfo("setting client.name to " + this.phases["phase" + this._currentPhase]);
> Weave.Svc.Prefs.set("client.name", this.phases["phase" + this._currentPhase]);
>
> + // TODO Phases should be defined in a data strongly that has strong
> + // ordering, not by lexical sorting.
English, please :D
@@ +535,5 @@
> + if (currentPhase <= 1) {
> + this_phase.unshift([this.ResetData]);
> + }
> +
> + // Wipe the server at the end of the final test phase.
I'm a little leery of the impact of this on our ability to investigate failures.
If you wipe, do it at the start of a test run, not the end?
Attachment #580323 -
Flags: review?(rnewman) → review+
![]() |
Reporter | |
Comment 3•14 years ago
|
||
(In reply to Richard Newman [:rnewman] from comment #2)
> @@ +535,5 @@
> > + if (currentPhase <= 1) {
> > + this_phase.unshift([this.ResetData]);
> > + }
> > +
> > + // Wipe the server at the end of the final test phase.
> I'm a little leery of the impact of this on our ability to investigate
> failures.
>
> If you wipe, do it at the start of a test run, not the end?
The current behavior is to perform a a wipeRemote() before *and* after test runs. I agree we can probably eliminate the after case. But, I think that is in the realm of a follow-up bug where other TPS nits (like the lexical ordering of phases) is addressed.
![]() |
Reporter | |
Comment 4•14 years ago
|
||
Whiteboard: [fixed in services]
![]() |
Reporter | |
Comment 5•14 years ago
|
||
Pushed to m-c: https://hg.mozilla.org/mozilla-central/rev/cfd838426cf2
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
Assignee | ||
Updated•7 years ago
|
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.
Description
•