Closed
Bug 507339
Opened 17 years ago
Closed 17 years ago
Test more files in the complete / partial mar files and check file permissions
Categories
(Toolkit :: Application Update, defect)
Toolkit
Application Update
Tracking
()
RESOLVED
FIXED
mozilla1.9.2b1
People
(Reporter: robert.strong.bugs, Assigned: robert.strong.bugs)
References
Details
Attachments
(2 files, 5 obsolete files)
|
44.84 KB,
patch
|
robert.strong.bugs
:
review+
|
Details | Diff | Splinter Review |
|
28.97 KB,
patch
|
robert.strong.bugs
:
review+
|
Details | Diff | Splinter Review |
I think it would be a good thing to add a couple of more files for these tests especially for test_0112_general.js which tests the restore of the original files when a partial mar can't be applied
| Assignee | ||
Comment 1•17 years ago
|
||
| Assignee | ||
Comment 2•17 years ago
|
||
Attachment #392452 -
Attachment is obsolete: true
| Assignee | ||
Comment 3•17 years ago
|
||
Attachment #392546 -
Attachment is obsolete: true
| Assignee | ||
Comment 4•17 years ago
|
||
Attachment #392561 -
Attachment is obsolete: true
| Assignee | ||
Comment 5•17 years ago
|
||
Brad, would you take a look at the tests. It adds tests for bug 505120
Attachment #392594 -
Attachment is obsolete: true
Attachment #392891 -
Flags: review?(bugmail)
| Assignee | ||
Comment 6•17 years ago
|
||
I've pushed the patch to try
Comment 7•17 years ago
|
||
Comment on attachment 392891 [details] [diff] [review]
patch rev1
this looks good. The only minor comment I have is about the naming scheme for your gTestFiles elements. It might be more clear if you used a consistent prefix, such as origFile, compareFile, origPerms, comparePerms etc.
Attachment #392891 -
Flags: review?(bugmail) → review+
| Assignee | ||
Comment 8•17 years ago
|
||
Thanks Brad
Attachment #392891 -
Attachment is obsolete: true
Attachment #392995 -
Flags: review+
Updated•17 years ago
|
Attachment #392995 -
Attachment is patch: true
Attachment #392995 -
Attachment mime type: application/octet-stream → text/plain
| Assignee | ||
Updated•17 years ago
|
Summary: Test more files in the complete and partial mar files for testing → Test more files in the complete / partial mar files and check file permissions
| Assignee | ||
Comment 9•17 years ago
|
||
All of these tests passed on the try servers. I'll check these in after the tree is a tad more stable
| Assignee | ||
Comment 10•17 years ago
|
||
Pushed to mozilla-central
http://hg.mozilla.org/mozilla-central/rev/744cffd14567
Status: NEW → RESOLVED
Closed: 17 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2b1
Comment 11•17 years ago
|
||
I think we wanted to remove head_update.js here but it is still in the source tree. This patch is just the file removal.
There is something a little awkward going on here though. People who have previously built have a symlink in _tests/xpcshell/test_update/unit/head_update.js pointing to head_update.js in the source dir. So when the preprocessor is invoked it actually writes the processed head_update.js.in to head_update.js in the source dir. Not sure whether we need to solve this, but it might end with people accidentally landing new copies of this file.
Attachment #393356 -
Flags: review?(robert.bugzilla)
| Assignee | ||
Updated•17 years ago
|
Attachment #393356 -
Flags: review?(robert.bugzilla) → review+
| Assignee | ||
Comment 12•17 years ago
|
||
Comment on attachment 393356 [details] [diff] [review]
remove head_update.js
bah... thought I removed it along with test_0040_general.js.in. Thanks
| Assignee | ||
Comment 13•17 years ago
|
||
I'll check this in along with the removal of test_0040_general.js.in as soon as the tree reopens
| Assignee | ||
Comment 14•17 years ago
|
||
Something strange is going on. I just tried to commit these changes and hg stated nothing changed. Previous to this hg status showed these files as removed and after they are no longer listed... all this without doing a push. I suspect I did push the removals and for some odd reason it didn't push properly
| Assignee | ||
Comment 15•17 years ago
|
||
I was able to successfully push the two removals using a different repo.
| Assignee | ||
Comment 16•17 years ago
|
||
followup pushed to mozilla-central
http://hg.mozilla.org/mozilla-central/rev/d33ee97a3606
| Assignee | ||
Comment 17•17 years ago
|
||
It appears that hg got confused with doing a rename and modification to these files.
Comment 18•17 years ago
|
||
(In reply to comment #11)
> There is something a little awkward going on here though. People who have
> previously built have a symlink in
> _tests/xpcshell/test_update/unit/head_update.js pointing to head_update.js in
> the source dir. So when the preprocessor is invoked it actually writes the
> processed head_update.js.in to head_update.js in the source dir. Not sure
> whether we need to solve this, but it might end with people accidentally
> landing new copies of this file.
This actually isn't true. I realised that a full rebuild wipes out the symlinks so everything is ok, it is only because I was running make in the updates dir for testing that I was seeing this issue.
Comment 19•17 years ago
|
||
(In reply to comment #18)
This can manifest in a slightly different way, here's what happens in scratchbox for our Maemo builds when doing a hg pull -u:
pulling from http://hg.mozilla.org/mozilla-central
searching for changes
adding changesets
adding manifests
adding file changes
added 7 changesets with 6 changes to 6 files
local changed toolkit/mozapps/update/test/unit/head_update.js which remote deleted
use (c)hanged version or (d)elete?
I set a clobber to resolve it.
| Assignee | ||
Comment 20•17 years ago
|
||
Thanks for taking care of that Nick and sorry it happened. Looks like it happened again too. :(
http://tinderbox.mozilla.org/showlog.cgi?log=Mobile/1249962906.1249964346.17736.gz&fulltext=1
Comment 21•17 years ago
|
||
Yeah, there's something odd happening with the clobberer on Maemo.
Comment 22•17 years ago
|
||
Bug 509652 for the long-term fix for that, and removed <srcdir>/toolkit/mozapps/update/test/unit/head_update.js from all the slaves.
You need to log in
before you can comment on or make changes to this bug.
Description
•