Closed
Bug 477597
Opened 16 years ago
Closed 16 years ago
[Fennec] xpcshell unittest: test_update/unit/test_0030_general.js fails to do a mar download with various encryption types
Categories
(Toolkit :: Application Update, defect)
Toolkit
Application Update
Tracking
()
VERIFIED
WORKSFORME
People
(Reporter: jmaher, Unassigned)
References
Details
In testing the xpcshell unit tests, I ran into a case where all the tests fail:
test_update/unit/test_0030_general.js
This has 11 different tests which test a mar download using different encryptions methods (SHA1, MD5, etc..)
We need to assert if this test is valid for Fennec.
To run this test by hand here is a cli (adjust the paths):
/home/mozilla/mozilla/mobile_debug/xulrunner/dist/bin/xpcshell -f /home/mozilla/mozilla/mobile_debug/xulrunner/_tests/xpcshell/head.js -f /home/mozilla/mozilla/mobile_debug/xulrunner/_tests/xpcshell-simple/test_update/unit/head_update.js -f /home/mozilla/mozilla/mobile_debug/xulrunner/_tests/xpcshell-simple/test_update/unit/test_0030_general.js -f /home/mozilla/mozilla/mobile_debug/xulrunner/_tests/xpcshell/tail.js -f /home/mozilla/mozilla/mobile_debug/xulrunner/_tests/xpcshell-simple/test_update/unit/tail_update.js -f /home/mozilla/mozilla/mobile_debug/xulrunner/_tests/xpcshell/execute_test.js
In addition here is some documentation on how to run xpcshell in fennec:
https://wiki.mozilla.org/Mobile/Fennec_Xpcshell
| Reporter | ||
Comment 1•16 years ago
|
||
moving to toolkit:application update as this is specific to a test, not fennec.
Component: General → Application Update
Product: Fennec → Toolkit
QA Contact: general → application.update
Updated•16 years ago
|
Summary: xpcshell unittest: test_update/unit/test_0030_general.js fails to do a mar download with various encryption types → [Fennec] xpcshell unittest: test_update/unit/test_0030_general.js fails to do a mar download with various encryption types
| Reporter | ||
Comment 2•16 years ago
|
||
In addition, when using Ted's new runxpcshelltests.py for fennec, this is the only test that causes it to hang.
| Reporter | ||
Comment 3•16 years ago
|
||
oops, spoke too soon, it appears the be the test_0040_general.js test, not this one
Comment 4•16 years ago
|
||
Comment #2 From Robert Strong [:rs] (do not email) 2009-04-17 15:41:53 PDT (-) [reply] -------
Could you check if commenting out the following lines makes the test pass?
http://mxr.mozilla.org/mozilla-central/source/toolkit/mozapps/update/src/nsUpdateService.js.in#2683
var brandStrings = sbs.createBundle(URI_BRAND_PROPERTIES);
var brandShortName = brandStrings.GetStringFromName("brandShortName");
this._update.statusText = updateStrings.formatStringFromName("verificationError",
[brandShortName], 1);
Comment 5•16 years ago
|
||
Filed bug 488928 which *might* also fix this bug
| Reporter | ||
Comment 6•16 years ago
|
||
commenting out the 3 linesof code in nsUpdateService.js.in do not appear to fix the case. Although I am getting the test hanging and not returning anything.
Comment 7•16 years ago
|
||
Joel, per your bug 477594 comment #23 - does this test now pass?
| Reporter | ||
Comment 8•16 years ago
|
||
yes, this test passes and I have confirmed multiple times on both fennec-linux and fennec-maemo
Comment 9•16 years ago
|
||
This was most likely fixed by bug 493805 or one of the other test cleanup bugs
I landed... resolving -> wfm
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
| Reporter | ||
Updated•16 years ago
|
Status: RESOLVED → VERIFIED
Comment 10•16 years ago
|
||
test_0030_general.js failed according to the maemo xpcshell test log.
http://tinderbox.mozilla.org/showlog.cgi?log=Mobile/1245986821.1245992256.2551.gz&fulltext=1
TEST-UNEXPECTED-FAIL | /media/mmc1/release/xpcshell/tests/test_update/unit/test_0030_general.js | test failed (with xpcshell return code: -11), see following log:
</font> >>>>>>>
TEST-INFO | (xpcshell/head.js) | test 1 pending
TEST-INFO | (xpcshell/head.js) | test 2 pending
*** AUS:SVC UpdateService:canUpdate - testing /media/mmc1/release/fennec/xulrunner/update.test
*** AUS:SVC General:getUpdatesDir - update directory /media/mmc1/release/fennec/xulrunner/updates/0 doesn't exist, creating...
*** AUS:SVC UpdateService:canUpdate - testing /media/mmc1/release/fennec/xulrunner/updates/0/update.test
*** AUS:SVC UpdateService:canUpdate - able to update
*** AUS:SVC General:readStringFromFile - file doesn't exist: /media/mmc1/release/fennec/xulrunner/updates/0/update.status
*** AUS:SVC General:readStatusFile - status: null, path: /media/mmc1/release/fennec/xulrunner/updates/0/update.status
*** AUS:SVC UpdateService:_postUpdateProcessing - no status, no update
*** AUS:SVC UpdateManager:_loadXMLFileIntoArray: XML file does not exist
TEST-INFO | (xpcshell/head.js) | test 2 finished
TEST-INFO | (xpcshell/head.js) | running event loop
Testing: run_test_pt1 - mar download with a valid MD5 hash
*** AUS:SVC Checker:getUpdateURL - update URL: http://localhost:4444/update.xml?force=1
*** AUS:SVC Checker:checkForUpdates - sending request to: http://localhost:4444/update.xml?force=1
*** AUS:SVC Checker:onLoad - request completed downloading document
*** AUS:SVC Checker:getUpdateURL - update URL: http://localhost:4444/update.xml?force=1
*** AUS:SVC Checker:onLoad - number of updates available: 1
onError: url = http://localhost:4444/update.xml?force=1, request.status = 400, update.statusText = null, updateCount = 1
TEST-PASS | /media/mmc1/release/xpcshell/tests/test_update/unit/test_0030_general.js | [check_test_helper_pt1_1 : 93] 1 == 1
*** AUS:SVC General:readStringFromFile - file doesn't exist: /media/mmc1/release/fennec/xulrunner/updates/0/update.status
*** AUS:SVC General:readStatusFile - status: null, path: /media/mmc1/release/fennec/xulrunner/updates/0/update.status
*** AUS:SVC UpdateManager:_loadXMLFileIntoArray: XML file does not exist
*** AUS:SVC UpdateManager:_loadXMLFileIntoArray: XML file does not exist
*** AUS:SVC Downloader:downloadUpdate - downloading from http://localhost:4444/data/empty.mar to /media/mmc1/release/fennec/xulrunner/updates/0/update.mar
| Reporter | ||
Comment 11•16 years ago
|
||
this has been failing the last 2 times I tried this on my maemo device including a build from this weekend.
TEST-INFO | (xpcshell/head.js) | test 1 pending
TEST-INFO | (xpcshell/head.js) | test 2 pending
*** AUS:SVC UpdateService:canUpdate - testing /media/mmc1/release/fennec/xulrunner/update.test
*** AUS:SVC General:getUpdatesDir - update directory /media/mmc1/release/fennec/xulrunner/updates/0 doesn't exist, creating...
*** AUS:SVC UpdateService:canUpdate - testing /media/mmc1/release/fennec/xulrunner/updates/0/update.test
*** AUS:SVC UpdateService:canUpdate - able to update
*** AUS:SVC General:readStringFromFile - file doesn't exist: /media/mmc1/release/fennec/xulrunner/updates/0/update.status
*** AUS:SVC General:readStatusFile - status: null, path: /media/mmc1/release/fennec/xulrunner/updates/0/update.status
*** AUS:SVC UpdateService:_postUpdateProcessing - no status, no update
*** AUS:SVC UpdateManager:_loadXMLFileIntoArray: XML file does not exist
This doesn't have a fail, but the summary that I see is this:
TEST-UNEXPECTED-FAIL | /media/mmc1/release/xpcshell/tests/test_update/unit/test_0030_general.js | test failed (with xpcshell return code: -4), see following log:
Comment 12•16 years ago
|
||
Joel, could you point it at an external server like you did for WinMo to see if the http server is working? Thanks
| Reporter | ||
Comment 13•16 years ago
|
||
the http server is working on maemo, but I will give this a try on a remote system just to double check.
You need to log in
before you can comment on or make changes to this bug.
Description
•