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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.2b1

People

(Reporter: robert.strong.bugs, Assigned: robert.strong.bugs)

References

Details

Attachments

(2 files, 5 obsolete files)

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
Attached patch patch in progress rev2 (obsolete) — — Splinter Review
Attachment #392452 - Attachment is obsolete: true
Attached patch patch in progress rev3 (obsolete) — — Splinter Review
Attachment #392546 - Attachment is obsolete: true
Attached patch patch in progress rev 4 (obsolete) — — Splinter Review
Attachment #392561 - Attachment is obsolete: true
Attached patch patch rev1 (obsolete) — — Splinter Review
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)
I've pushed the patch to try
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+
Attached patch patch rev2 — — Splinter Review
Thanks Brad
Attachment #392891 - Attachment is obsolete: true
Attachment #392995 - Flags: review+
Attachment #392995 - Attachment is patch: true
Attachment #392995 - Attachment mime type: application/octet-stream → text/plain
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
All of these tests passed on the try servers. I'll check these in after the tree is a tad more stable
Status: NEW → RESOLVED
Closed: 17 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2b1
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)
Attachment #393356 - Flags: review?(robert.bugzilla) → review+
Comment on attachment 393356 [details] [diff] [review] remove head_update.js bah... thought I removed it along with test_0040_general.js.in. Thanks
I'll check this in along with the removal of test_0040_general.js.in as soon as the tree reopens
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
I was able to successfully push the two removals using a different repo.
It appears that hg got confused with doing a rename and modification to these files.
(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.
(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.
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
Yeah, there's something odd happening with the clobberer on Maemo.
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.

Attachment

General

Created:
Updated:
Size: