Closed
Bug 1000473
Opened 10 years ago
Closed 10 years ago
Nightly is called "Updated" in OS X Notifications
Categories
(Toolkit :: Application Update, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: rfeeley, Assigned: spohl)
References
Details
Attachments
(2 files, 3 obsolete files)
303.33 KB,
image/png
|
Details | |
16.37 KB,
patch
|
Details | Diff | Splinter Review |
According to rstrong, OS X detecting the update staging directory during an update, and setting the name of Nightly as Updated.
Comment 1•10 years ago
|
||
Thanks! Hey Stephen, I suspect that at the very least we could just name the Updated.app the same as its parent which in this case would be FirefoxNightly.app. e.g. current FirefoxNightly.app/Updated.app proposed FirefoxNightly.app/FirefoxNightly.app Where the name of the Updated.app is determined by the parent. This would avoid any confusion. If it is possible it would be better to avoid having the updated app listed at all in Notifications and it isn't a lot of work that would be an even better approach.
Comment 2•10 years ago
|
||
Note: as far as I can tell this doesn't cause any problems beyond listing the entry. If there are other issues please let us know. Thanks!
Comment 3•10 years ago
|
||
Ryan, can you confirm that the text in Notifications self corrects after applying the update?
Reporter | ||
Comment 4•10 years ago
|
||
Robert, it definitely fixed itself.
Assignee | ||
Comment 5•10 years ago
|
||
Completely untested patch.
Assignee: nobody → spohl.mozilla.bugs
Status: NEW → ASSIGNED
Comment 6•10 years ago
|
||
Stephen, another possibility is updating the app in place instead of using the updated.app directory. My main concerns revolve around whether Firefox or Mac OS X would get confused if the files are changed out while the app is running.
Assignee | ||
Comment 7•10 years ago
|
||
Right, updating in place crossed my mind as well. I can't think of any particular problem right now, but I guess we won't know for sure until we give it a shot.
Assignee | ||
Comment 8•10 years ago
|
||
Here is an improved patch. A try run showed xpcshell tests failing, but the logs weren't very helpful: https://tbpl.mozilla.org/?tree=Try&rev=ba2c56c36745 However, once I ran ./mach xpcshell-test toolkit/mozapps/update/tests/unit_base_updater/, the update.log file for the failing test toolkit/mozapps/update/tests/unit_base_updater/marStageSuccessPartial.js showed this: 4:07.15 Performing a staged update 4:07.15 SOURCE DIRECTORY /Users/Stephen/Documents/objdir-ff-debug/_tests/xpcshell/toolkit/mozapps/update/tests/unit_base_updater/marStageSuccessPartial/dir.app/Contents/MacOS/updates/0 4:07.15 DESTINATION DIRECTORY /Users/Stephen/Documents/objdir-ff-debug/_tests/xpcshell/toolkit/mozapps/update/tests/unit_base_updater/marStageSuccessPartial/dir.app/objdir-ff-debug 4:07.15 ensure_copy_recursive: path is not a directory: /Users/Stephen/Documents/objdir-ff-debug/_tests/xpcshell/toolkit/mozapps/update/tests/unit_base_updater/marStageSuccessPartial/dir.app/objdir-ff-debug/objdir-ff-debug/objdir-ff-debug/objdir-ff-debug/objdir-ff-debug/objdir-ff-debug/objdir-ff-debug/objdir-ff-debug/objdir-ff-debug/objdir-ff-debug/objdir-ff-debug/objdir-ff-debug/objdir-ff-debug/objdir-ff-debug/a/b/9/93, rv: 0, err: 24 4:07.15 failed: 6 4:07.15 calling QuitProgressUI The path in ensure_copy_recursive obviously doesn't look very healthy. Looking into it.
Attachment #8456429 -
Attachment is obsolete: true
Assignee | ||
Comment 9•10 years ago
|
||
This now passes for me locally, but try is currently closed and I'm unable to confirm (bug 1040308). I'll do so once try reopens. I'll also file a follow-up bug to remove the need for an "Updated.app" directory entirely and update in place instead.
Attachment #8457743 -
Attachment is obsolete: true
Assignee | ||
Comment 10•10 years ago
|
||
Comment on attachment 8458243 [details] [diff] [review] Patch xpcshell-tests are green on try: https://tbpl.mozilla.org/?tree=Try&rev=6c61f258bc33
Attachment #8458243 -
Flags: review?(robert.strong.bugs)
Comment 11•10 years ago
|
||
Comment on attachment 8458243 [details] [diff] [review] Patch >diff --git a/toolkit/mozapps/update/nsUpdateService.js b/toolkit/mozapps/update/nsUpdateService.js >--- a/toolkit/mozapps/update/nsUpdateService.js >+++ b/toolkit/mozapps/update/nsUpdateService.js >@@ -91,17 +91,21 @@ const KEY_UPDATE_ARCHIVE_DIR = "UpdArchD > #elifdef MOZ_WIDGET_GONK > // In Gonk, the updater will remount the /system partition to move staged files > // into place, so we skip the test here to keep things isolated. > #define CHECK_CAN_USE_SERVICE > #endif > > const DIR_UPDATES = "updates"; > #ifdef XP_MACOSX >-const UPDATED_DIR = "Updated.app"; >+const UPDATED_DIR = Services.dirsvc.get(KEY_EXECUTABLE, >+ Ci.nsIFile).parent >+ .parent >+ .parent >+ .leafName; Please make this into a lazy getter so this code isn't evaluated until it is needed. I'd like to take a look at the change so r-'ing. Also, please land this after the merge so it gets extra testing on m-c since this bug doesn't cause any serious problems.
Attachment #8458243 -
Flags: review?(robert.strong.bugs) → review-
Assignee | ||
Comment 12•10 years ago
|
||
Thanks, Robert! Do you think we should run this through some testing on Oak?
Attachment #8458243 -
Attachment is obsolete: true
Attachment #8459622 -
Flags: review?(robert.strong.bugs)
Assignee | ||
Comment 13•10 years ago
|
||
Ryan, could you verify in a recent nightly that this issue is actually still occurring? We had to make a number of changes to support v2 signing on OSX and this may have been fixed along the way. Thanks!
Flags: needinfo?(rfeeley)
Comment 14•10 years ago
|
||
Comment on attachment 8459622 [details] [diff] [review] Patch Cancelling review until we hear back from the reporter.
Attachment #8459622 -
Flags: review?(robert.strong.bugs)
Reporter | ||
Comment 15•10 years ago
|
||
I see FirefoxNightly in Notifications now.
Flags: needinfo?(rfeeley)
Assignee | ||
Comment 16•10 years ago
|
||
Awesome, thanks!
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•