Closed
Bug 785675
Opened 14 years ago
Closed 13 years ago
Port |Bug 748490 - Provide common location for testing modules| to fix multiple perma-oranges.
Categories
(SeaMonkey :: Testing Infrastructure, defect)
SeaMonkey
Testing Infrastructure
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: philip.chee, Assigned: ewong)
References
Details
Attachments
(2 files, 3 obsolete files)
|
2.57 KB,
patch
|
Callek
:
review+
|
Details | Diff | Splinter Review |
|
3.13 KB,
patch
|
ewong
:
review+
|
Details | Diff | Splinter Review |
One example is Bug 783519 - [SeaMonkey] "browser_NetUtil.js | Exception thrown - [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXPCComponents_Utils.import]""
Many of our tests are failing at trying to import:
Cu.import("resource://testing-common/httpd.js");
According to Serge we need to port:
Bug 748490 - Provide common location for testing modules
| Assignee | ||
Comment 1•14 years ago
|
||
| Reporter | ||
Comment 2•14 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=SeaMonkey/1347044604.1347046278.17635.gz#err7
NEXT ERROR TEST-UNEXPECTED-FAIL | e:\builds\slave\test\build\xpcshell\tests\image\test\unit\test_async_notification.js | test failed (with xpcshell return code: 3), see following log:
>>>>>>>
### XPCOM_MEM_LEAK_LOG defined -- logging leaks to c:\docume~1\seabld\locals~1\temp\tmp23pcxi\runxpcshelltests_leaks.log
WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80040111: file e:/builds/slave/comm-cen-trunk-w32-dbg/build/mozilla/netwerk/base/src/nsIOService.cpp, line 648
WARNING: NS_ENSURE_SUCCESS(rv, 0x80070057) failed with result 0x80040111: file e:/builds/slave/comm-cen-trunk-w32-dbg/build/mozilla/js/xpconnect/loader/mozJSComponentLoader.cpp, line 1091
async_load_tests.js:14: NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXPCComponents_Utils.import]
Comment 3•13 years ago
|
||
ewong: The argument needs to be --testing-modules-dir (instead of --tests-modules-dir).
BTW: I wonder why TB does not have this problem. Do they directly run the test infrastructure in mozilla/ and include their tests in some way?
| Assignee | ||
Comment 4•13 years ago
|
||
(In reply to Frank Wein [:mcsmurf] from comment #3)
> ewong: The argument needs to be --testing-modules-dir (instead of
> --tests-modules-dir).
> BTW: I wonder why TB does not have this problem. Do they directly run the
> test infrastructure in mozilla/ and include their tests in some way?
Thanks!
| Assignee | ||
Comment 5•13 years ago
|
||
Attachment #655887 -
Attachment is obsolete: true
Attachment #655887 -
Flags: review?(bugspam.Callek)
Attachment #667296 -
Flags: review?(bugspam.Callek)
Comment 6•13 years ago
|
||
I now looked at this locally and in the buildbot log, I'm not sure if this patch is the correct fix for the problem. When running "make xpcshell-tests" in the objdir, it enters the mozilla/ directory and runs the tests there (see http://hg.mozilla.org/comm-central/annotate/861e8385f731//Makefile.in#l48). So there the --testing-modules-dir argument already gets appended to the command line. But buildbot testing works a bit different as the test run does not necessarily happen on the same box as the build run. buildbot downloads a special zip file (for example http://ftp.mozilla.org/pub/mozilla.org/seamonkey/tinderbox-builds/comm-central-trunk-win32-debug/1349392410/seamonkey-2.15a1.en-US.win32.tests.zip), extracts it and runs those tests. I'll investigate this further.
Comment 7•13 years ago
|
||
Found the solution! :)
Callek: We need to adjust this buildbot step for the xpcshell tests, not sure how this works, you probably know this better than I do:
======== BuildStep started ========
unpack tests
=== Output ===
'unzip' '-o' 'seamonkey-2.15a1.en-US.win32.tests.zip' 'bin*' 'certs*' 'xpcshell*'
For comparison, here's the Thunderbird buildbot step:
========= Started unpack tests (results: 0, elapsed: 37 secs) (at 2012-10-04 15:52:18.219199) =========
'unzip' '-oq' u'thunderbird-18.0a1.en-US.win32.tests.zip' 'bin*' 'certs*' 'modules*' 'xpcshell*'
in dir c:\talos-slave\test\build (timeout 1200 secs)
watching logfiles {}
argv: ['unzip', '-oq', u'thunderbird-18.0a1.en-US.win32.tests.zip', 'bin*', 'certs*', 'modules*', 'xpcshell*']
The difference is the modules* part, in the modules directory the file httpd.js can be found. The runxpcshelltests.py tries to guess the location of the testing modules by looking for the modules/ directory in the current working directory. So we also need to unzip the modules directory from the tests.zip file.
Comment 8•13 years ago
|
||
Also see Bug 755339 on that solution from Comment 7 (checkin in buildbot config: http://hg.mozilla.org/build/buildbotcustom/rev/7d0cd546fb77)
| Assignee | ||
Comment 9•13 years ago
|
||
Attachment #672134 -
Flags: review?(bugspam.Callek)
Comment 10•13 years ago
|
||
Comment on attachment 667296 [details] [diff] [review]
Port |Bug 748490 - Provide common location for testing modules| to fix multiple perma-oranges. (v2)
Review of attachment 667296 [details] [diff] [review]:
-----------------------------------------------------------------
::: config/rules.mk
@@ +1366,5 @@
> +# For each file defined in TESTING_JS_MODULES, copy it to
> +# objdir/_tests/modules/. If TESTING_JS_MODULE_DIR is defined, that path
> +# wlll be appended to the output directory.
> +
> +ifdef TESTING_JS_MODULES
nit please wrap this in ifdef ENABLE_TESTS
Attachment #667296 -
Flags: review?(bugspam.Callek) → review+
Updated•13 years ago
|
Attachment #672134 -
Flags: review?(bugspam.Callek) → review+
Comment 11•13 years ago
|
||
Sorry for the delay guys, but thanks for the investigation/work!
| Assignee | ||
Comment 12•13 years ago
|
||
Attachment #667296 -
Attachment is obsolete: true
Attachment #680519 -
Flags: review+
| Assignee | ||
Comment 13•13 years ago
|
||
Attachment #680519 -
Attachment is obsolete: true
Attachment #680521 -
Flags: review+
| Assignee | ||
Comment 14•13 years ago
|
||
Pushed to comm-central:
http://hg.mozilla.org/comm-central/rev/8007e33a86ee
| Assignee | ||
Comment 15•13 years ago
|
||
Pushed to buildbotcustom:
http://hg.mozilla.org/build/buildbotcustom/rev/fc2ad1ffc38c
Comment 16•13 years ago
|
||
There's been a typo in the buildbotcustom patch, I pushed a typo fix: http://hg.mozilla.org/build/buildbotcustom/rev/f2950891859c
Comment 17•13 years ago
|
||
This looks fixed, failing xpcshell tests are down from ~420 to ~3 :-)
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•