Closed
Bug 1058182
Opened 10 years ago
Closed 10 years ago
Fix app update xpcshell tests due to the Mac v2 bundle structure.
Categories
(Toolkit :: Application Update, defect)
Tracking
()
RESOLVED
FIXED
mozilla35
People
(Reporter: robert.strong.bugs, Assigned: robert.strong.bugs)
References
Details
Attachments
(1 file, 22 obsolete files)
(deleted),
patch
|
robert.strong.bugs
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
OS: Windows 8.1 → Mac OS X
Assignee | ||
Comment 2•10 years ago
|
||
This will hopefully fix the current set of xpcshell failures
Attachment #8478531 -
Attachment is obsolete: true
Assignee | ||
Comment 3•10 years ago
|
||
This should fix the remaining two app update xpcshell failures.
Attachment #8483740 -
Attachment is obsolete: true
Assignee | ||
Comment 4•10 years ago
|
||
Since I don't have all of the xpchsell harness changes I split out a separate patch for the xpchsell harness changes.
Attachment #8483829 -
Attachment is obsolete: true
Assignee | ||
Comment 5•10 years ago
|
||
lol s/xpchsell/xpcshell/g
Assignee | ||
Comment 6•10 years ago
|
||
Assignee | ||
Comment 7•10 years ago
|
||
Attachment #8485995 -
Attachment is obsolete: true
Assignee | ||
Updated•10 years ago
|
Attachment #8485996 -
Attachment description: patch with xpcshell harness changes → patch xpcshell harness changes
Assignee | ||
Updated•10 years ago
|
Attachment #8486285 -
Attachment description: patch in progress without xpcshell harness changes → 1. patch in progress without xpcshell harness changes
Assignee | ||
Updated•10 years ago
|
Attachment #8485996 -
Attachment description: patch xpcshell harness changes → 2. patch xpcshell harness changes
Assignee | ||
Comment 8•10 years ago
|
||
All tests pass except for one on Mac
Attachment #8485996 -
Attachment is obsolete: true
Attachment #8486285 -
Attachment is obsolete: true
Assignee | ||
Comment 9•10 years ago
|
||
Note: I am going to have to create new mar files and then change how the precomplete file is read in updater.cpp from bug 1059467. Fun times!
Assignee | ||
Comment 10•10 years ago
|
||
This gets the tests most of the way there so I'm requesting review. I still need to investigate why the service tests fail and I will need to modify the tests for new mars after I create them which I will do in separate patches. I've also noticed that marStageSuccessComplete.js times out when it runs in parallel but succeeds on the subsequent sequential run which appears to be due to the link file not being created before it is checked.
Attachment #8488534 -
Flags: review?(netzen)
Assignee | ||
Updated•10 years ago
|
Attachment #8487758 -
Attachment is obsolete: true
Assignee | ||
Comment 11•10 years ago
|
||
Assignee | ||
Comment 12•10 years ago
|
||
This fixes the timeout due to the link file test
Assignee | ||
Comment 13•10 years ago
|
||
Note: upgrading the old service worked for me locally so sending to try.
Assignee | ||
Comment 14•10 years ago
|
||
Upgrading the service worked on try
https://tbpl.mozilla.org/?tree=Try&rev=761d2d5050cd
I think I know why marAppApplyUpdateStageSuccess.js failed on Linux
There are almost permanent errors on Windows for the following tests where the post update process was launched after staging an update that I need to look into.
marStageSuccessCompleteSvc.js
marStageSuccessPartialSvc.js
All in all things looks pretty good!
Comment 15•10 years ago
|
||
Comment on attachment 8488534 [details] [diff] [review]
updated tests - patch
Review of attachment 8488534 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good, thanks!
::: toolkit/mozapps/update/tests/unit_service_updater/marAppApplyDirLockedStageFailureSvc_win.js
@@ +25,5 @@
>
> createUpdaterINI(false);
>
> + if (IS_WIN) {
> + Services.prefs.setBoolPref(PREF_APP_UPDATE_SERVICE_ENABLED, true);
Is this the default already? If you're not sure I'm fine with just leaving it.
Attachment #8488534 -
Flags: review?(netzen) → review+
Assignee | ||
Comment 16•10 years ago
|
||
(In reply to Brian R. Bondy [:bbondy] from comment #15)
> Comment on attachment 8488534 [details] [diff] [review]
> updated tests - patch
>
> Review of attachment 8488534 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> Looks good, thanks!
>
> :::
> toolkit/mozapps/update/tests/unit_service_updater/
> marAppApplyDirLockedStageFailureSvc_win.js
> @@ +25,5 @@
> >
> > createUpdaterINI(false);
> >
> > + if (IS_WIN) {
> > + Services.prefs.setBoolPref(PREF_APP_UPDATE_SERVICE_ENABLED, true);
>
> Is this the default already? If you're not sure I'm fine with just leaving
> it.
Thanks for pointing this out. I wanted to protect the service tests in case an app has that set to disabled.
Assignee | ||
Comment 17•10 years ago
|
||
Attachment #8488958 -
Attachment is obsolete: true
Attachment #8488959 -
Attachment is obsolete: true
Attachment #8489188 -
Flags: review?(netzen)
Assignee | ||
Comment 18•10 years ago
|
||
Attachment #8489189 -
Flags: review?(netzen)
Assignee | ||
Comment 19•10 years ago
|
||
Attachment #8489191 -
Flags: review?(netzen)
Assignee | ||
Comment 20•10 years ago
|
||
Assignee | ||
Comment 21•10 years ago
|
||
forgot to update the "patch - test changes part 2" patch
Attachment #8489191 -
Attachment is obsolete: true
Attachment #8489191 -
Flags: review?(netzen)
Attachment #8489193 -
Flags: review?(netzen)
Assignee | ||
Comment 22•10 years ago
|
||
Pushed to try
https://tbpl.mozilla.org/?tree=Try&rev=b4542505e600
I expect that marStageSuccessCompleteSvc.js and marStageSuccessPartialSvc.js will fail and I'm looking into why.
Assignee | ||
Comment 23•10 years ago
|
||
Comment on attachment 8489188 [details] [diff] [review]
patch new binary test support files
unify is failing on the new mac binaries so clearing review request
Attachment #8489188 -
Flags: review?(netzen)
Assignee | ||
Comment 24•10 years ago
|
||
Comment on attachment 8489189 [details] [diff] [review]
patch new test support files
This patch will need to be changed too
Attachment #8489189 -
Flags: review?(netzen)
Assignee | ||
Comment 25•10 years ago
|
||
Comment on attachment 8489193 [details] [diff] [review]
patch - test changes part 2
Also needs changes :(
Attachment #8489193 -
Attachment is obsolete: true
Attachment #8489193 -
Flags: review?(netzen)
Assignee | ||
Comment 26•10 years ago
|
||
Attachment #8489188 -
Attachment is obsolete: true
Attachment #8489215 -
Flags: review?(netzen)
Assignee | ||
Comment 27•10 years ago
|
||
Attachment #8489189 -
Attachment is obsolete: true
Attachment #8489216 -
Flags: review?(netzen)
Assignee | ||
Comment 28•10 years ago
|
||
Attachment #8489217 -
Flags: review?(netzen)
Assignee | ||
Comment 29•10 years ago
|
||
Pushed to try
https://tbpl.mozilla.org/?tree=Try&rev=f8d3ba1d5cff
I expect that marStageSuccessCompleteSvc.js and marStageSuccessPartialSvc.js will fail and I'm looking into why.
Assignee | ||
Comment 30•10 years ago
|
||
Attachment #8489216 -
Attachment is obsolete: true
Attachment #8489216 -
Flags: review?(netzen)
Attachment #8489228 -
Flags: review?(netzen)
Assignee | ||
Comment 31•10 years ago
|
||
missed some changes
Attachment #8489217 -
Attachment is obsolete: true
Attachment #8489217 -
Flags: review?(netzen)
Attachment #8489230 -
Flags: review?(netzen)
Assignee | ||
Comment 32•10 years ago
|
||
Pushed to try... again
https://tbpl.mozilla.org/?tree=Try&rev=52b2042aa7aa
Assignee | ||
Comment 33•10 years ago
|
||
marStageSuccessCompleteSvc.js and marStageSuccessPartialSvc.js is failing intermittently and I'm looking into it
Assignee | ||
Updated•10 years ago
|
Attachment #8489228 -
Attachment description: patch - new test support files → patch - test support files
Assignee | ||
Comment 34•10 years ago
|
||
Comment on attachment 8489230 [details] [diff] [review]
patch - test changes part 2
Removed the following unused code locally.
+ // Replace %DIR_RESOURCES% with the platform specific value so the same log
+ // can be used with Mac OS X.
+ compareLogContents = compareLogContents.replace(/%DIR_RESOURCES%/g, DIR_RESOURCES);
Assignee | ||
Comment 35•10 years ago
|
||
Also removed the following debugging code locally
+ logTestInfo("compareLogContents\n" + compareLogContents);
+ logTestInfo("updateLogContents\n" + updateLogContents);
Assignee | ||
Comment 36•10 years ago
|
||
Added a couple of more checks for launching the post update process.
Attachment #8489230 -
Attachment is obsolete: true
Attachment #8489230 -
Flags: review?(netzen)
Attachment #8489886 -
Flags: review?(netzen)
Updated•10 years ago
|
Attachment #8489886 -
Flags: review?(netzen) → review+
Updated•10 years ago
|
Attachment #8489215 -
Flags: review?(netzen) → review+
Comment 37•10 years ago
|
||
Comment on attachment 8489228 [details] [diff] [review]
patch - test support files
Review of attachment 8489228 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks for separating out this stuff :)
Attachment #8489228 -
Flags: review?(netzen) → review+
Assignee | ||
Comment 38•10 years ago
|
||
Carrying forward r+
I moved the client changes over to the patch in bug 1064523
Attachment #8488534 -
Attachment is obsolete: true
Attachment #8489192 -
Attachment is obsolete: true
Attachment #8489215 -
Attachment is obsolete: true
Attachment #8489228 -
Attachment is obsolete: true
Attachment #8489886 -
Attachment is obsolete: true
Attachment #8490311 -
Flags: review+
Comment 39•10 years ago
|
||
Comment 40•10 years ago
|
||
Comment on attachment 8490311 [details] [diff] [review]
Combined patch
Review of attachment 8490311 [details] [diff] [review]:
-----------------------------------------------------------------
Just some drive-by feedback. Stumbled over this during the review for bug 1072554. Would be great if we could include this in the final patch that's going to land on m-c.
::: toolkit/mozapps/update/tests/unit_aus_update/head_update.js
@@ +9,2 @@
> // MOZ_APP_VENDOR is optional.
> // On Windows, if MOZ_APP_VENDOR is not defined the updates directory will be
With the removal of the ifdef we should probably update the comment to no longer reference Windows only.
@@ +911,5 @@
> // adjustGeneralPaths registers a cleanup function that calls end_test when
> // it is defined as a function.
> adjustGeneralPaths();
>
> // Remove the updates directory on Windows which is located outside of the
Ideally, this comment would mention "Windows and Mac", similar to the new comment in |cleanupTestCommon|.
Assignee | ||
Comment 41•10 years ago
|
||
Thanks and I'll update those comments locally
Comment 42•10 years ago
|
||
Comment on attachment 8490311 [details] [diff] [review]
Combined patch
Review of attachment 8490311 [details] [diff] [review]:
-----------------------------------------------------------------
::: toolkit/mozapps/update/tests/unit_aus_update/head_update.js
@@ +913,5 @@
> adjustGeneralPaths();
>
> // Remove the updates directory on Windows which is located outside of the
> // application directory after the call to adjustGeneralPaths has set it up.
> // Since the test hasn't ran yet and the directory shouldn't exist finished
sorry, one more nit since we're already updating this comment: s/ran/run/ and if I'm understanding the comment correctly, I believe the word "finished" should be removed in this sentence.
Assignee | ||
Comment 43•10 years ago
|
||
Attachment #8490311 -
Attachment is obsolete: true
Attachment #8494908 -
Flags: review+
Assignee | ||
Comment 44•10 years ago
|
||
Pushed to fx-team
https://hg.mozilla.org/integration/fx-team/rev/b1d8f769952a
Comment 45•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
Assignee | ||
Comment 46•10 years ago
|
||
Landed on aurora in the Mac V2 signing combined patch in bug 1047584
status-firefox34:
--- → fixed
status-firefox35:
--- → fixed
Updated•10 years ago
|
Flags: qe-verify-
You need to log in
before you can comment on or make changes to this bug.
Description
•