Closed Bug 1452762 Opened 2 years ago Closed Last year

Intermittent js/xpconnect/tests/unit/test_watchdog_default.js | ensureDOMPromiseRejectionsProcessed - [ensureDOMPromiseRejectionsProcessed : 110] false == true

Categories

(Core :: XPConnect, defect, P5)

defect

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox62 --- fixed
firefox63 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: bholley)

References

Details

(Keywords: intermittent-failure)

Attachments

(1 file)

Filed by: apavel [at] mozilla.com

https://treeherder.mozilla.org/logviewer.html#?job_id=172724465&repo=mozilla-inbound

https://queue.taskcluster.net/v1/task/HExsEmCfSpuIlbPaBmiSnA/runs/0/artifacts/public/logs/live_backing.log

[task 2018-04-09T19:30:06.951Z] 19:30:06     INFO -  TEST-START | js/xpconnect/tests/unit/test_watchdog_default.js
[task 2018-04-09T19:30:15.379Z] 19:30:15  WARNING -  TEST-UNEXPECTED-FAIL | js/xpconnect/tests/unit/test_watchdog_default.js | xpcshell return code: 0
[task 2018-04-09T19:30:15.379Z] 19:30:15     INFO -  TEST-INFO took 8428ms
[task 2018-04-09T19:30:15.379Z] 19:30:15     INFO -  >>>>>>>
[task 2018-04-09T19:30:15.380Z] 19:30:15     INFO -  js/xpconnect/tests/unit/test_watchdog_default.js | xpcw: cd /sdcard/tests/xpc/js/xpconnect/tests/unit
[task 2018-04-09T19:30:15.381Z] 19:30:15     INFO -  js/xpconnect/tests/unit/test_watchdog_default.js | xpcw: xpcshell -r /sdcard/tests/xpc/c/httpd.manifest --greomni /data/local/xpcb/target.apk -m -s -e const _HEAD_JS_PATH = "/sdcard/tests/xpc/head.js"; -e const _MOZINFO_JS_PATH = "/sdcard/tests/xpc/p/mozinfo.json"; -e const _TESTING_MODULES_DIR = "/sdcard/tests/xpc/m"; -f /sdcard/tests/xpc/head.js -e const _SERVER_ADDR = "localhost" -e const _HEAD_FILES = ["/sdcard/tests/xpc/js/xpconnect/tests/unit/head_watchdog.js"]; -e const _JSDEBUGGER_PORT = 0; -e const _TEST_FILE = ["test_watchdog_default.js"]; -e const _TEST_NAME = "js/xpconnect/tests/unit/test_watchdog_default.js" -e _execute_test(); quit(0);
[task 2018-04-09T19:30:15.381Z] 19:30:15     INFO -  js/xpconnect/tests/unit/test_watchdog_default.js | [4703, Unnamed thread 46c0d080] WARNING: XPCOM objects created/destroyed from static ctor/dtor: file /builds/worker/workspace/build/src/xpcom/base/nsTraceRefcnt.cpp, line 194
[task 2018-04-09T19:30:15.382Z] 19:30:15     INFO -  js/xpconnect/tests/unit/test_watchdog_default.js | [4703, Main Thread] WARNING: Couldn't get the user appdata directory. Crash events may not be produced.: file /builds/worker/workspace/build/src/toolkit/crashreporter/nsExceptionHandler.cpp, line 2678
[task 2018-04-09T19:30:15.382Z] 19:30:15     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2018-04-09T19:30:15.383Z] 19:30:15     INFO -  (xpcshell/head.js) | test pending (2)
[task 2018-04-09T19:30:15.384Z] 19:30:15     INFO -  (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2018-04-09T19:30:15.384Z] 19:30:15     INFO -  running event loop
[task 2018-04-09T19:30:15.384Z] 19:30:15     INFO -  TEST-PASS | js/xpconnect/tests/unit/test_watchdog_default.js | undefined assertion name - true == true
[task 2018-04-09T19:30:15.385Z] 19:30:15     INFO -  js/xpconnect/tests/unit/test_watchdog_default.js | JavaScript warning: /sdcard/tests/xpc/head.js, line 211: Error: Script terminated by timeout at:
[task 2018-04-09T19:30:15.385Z] 19:30:15     INFO -  js/xpconnect/tests/unit/test_watchdog_default.js | _do_main/<@/sdcard/tests/xpc/head.js:211:31
[task 2018-04-09T19:30:15.386Z] 19:30:15     INFO -  js/xpconnect/tests/unit/test_watchdog_default.js | _do_main@/sdcard/tests/xpc/head.js:211:3
[task 2018-04-09T19:30:15.386Z] 19:30:15     INFO -  js/xpconnect/tests/unit/test_watchdog_default.js | _execute_test@/sdcard/tests/xpc/head.js:517:5
[task 2018-04-09T19:30:15.387Z] 19:30:15     INFO -  js/xpconnect/tests/unit/test_watchdog_default.js | @-e:1:1
[task 2018-04-09T19:30:15.387Z] 19:30:15     INFO -  NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIThreadManager.spinEventLoopUntil]
[task 2018-04-09T19:30:15.388Z] 19:30:15     INFO -  _do_main@/sdcard/tests/xpc/head.js:211:3
[task 2018-04-09T19:30:15.388Z] 19:30:15     INFO -  _execute_test@/sdcard/tests/xpc/head.js:517:5
[task 2018-04-09T19:30:15.388Z] 19:30:15     INFO -  @-e:1:1
[task 2018-04-09T19:30:15.389Z] 19:30:15     INFO -  (xpcshell/head.js) | test finished (1)
[task 2018-04-09T19:30:15.389Z] 19:30:15     INFO -  exiting test
[task 2018-04-09T19:30:15.390Z] 19:30:15  WARNING -  TEST-UNEXPECTED-FAIL | js/xpconnect/tests/unit/test_watchdog_default.js | ensureDOMPromiseRejectionsProcessed - [ensureDOMPromiseRejectionsProcessed : 110] false == true
[task 2018-04-09T19:30:15.390Z] 19:30:15     INFO -  resource://testing-common/PromiseTestUtils.jsm:ensureDOMPromiseRejectionsProcessed:110
[task 2018-04-09T19:30:15.390Z] 19:30:15     INFO -  /sdcard/tests/xpc/head.js:_execute_test:601
[task 2018-04-09T19:30:15.391Z] 19:30:15     INFO -  -e:null:1
[task 2018-04-09T19:30:15.391Z] 19:30:15     INFO -  exiting test
[task 2018-04-09T19:30:15.391Z] 19:30:15     INFO -  js/xpconnect/tests/unit/test_watchdog_default.js | JavaScript error: /sdcard/tests/xpc/head.js, line 723: NS_ERROR_ABORT:
[task 2018-04-09T19:30:15.392Z] 19:30:15     INFO -  "CONSOLE_MESSAGE: (warn) [JavaScript Warning: "Error: Script terminated by timeout at:
[task 2018-04-09T19:30:15.392Z] 19:30:15     INFO -  _do_main/<@/sdcard/tests/xpc/head.js:211:31
[task 2018-04-09T19:30:15.392Z] 19:30:15     INFO -  _do_main@/sdcard/tests/xpc/head.js:211:3
[task 2018-04-09T19:30:15.393Z] 19:30:15     INFO -  _execute_test@/sdcard/tests/xpc/head.js:517:5
[task 2018-04-09T19:30:15.393Z] 19:30:15     INFO -  @-e:1:1
[task 2018-04-09T19:30:15.393Z] 19:30:15     INFO -  " {file: "/sdcard/tests/xpc/head.js" line: 211}]"
[task 2018-04-09T19:30:15.394Z] 19:30:15     INFO -  js/xpconnect/tests/unit/test_watchdog_default.js | [4703, Main Thread] WARNING: '!gThread', file /builds/worker/workspace/build/src/xpcom/threads/nsTimerImpl.cpp, line 399
[task 2018-04-09T19:30:15.394Z] 19:30:15     INFO -  js/xpconnect/tests/unit/test_watchdog_default.js | [4703, Main Thread] WARNING: OOPDeinit() without successful OOPInit(): file /builds/worker/workspace/build/src/toolkit/crashreporter/nsExceptionHandler.cpp, line 3332
[task 2018-04-09T19:30:15.394Z] 19:30:15     INFO -  <<<<<<<
Summary: Intermittent js/xpconnect/tests/unit/test_watchdog_default.js | xpcshell return code: 0 → Intermittent js/xpconnect/tests/unit/test_watchdog_default.js | ensureDOMPromiseRejectionsProcessed - [ensureDOMPromiseRejectionsProcessed : 110] false == true
My best guess as to the failures here is that we're not actually
reaching the busyWait call by the time the interrupt callback fires,
and thus we're killing unrelated scripts.

MozReview-Commit-ID: GvCJzBcJlXm
Assignee: nobody → bobbyholley
Comment on attachment 8992400 [details]
Bug 1452762 - Avoid interrupting the wrong script in watchdog tests.

Tooru Fujisawa [:arai] has approved the revision.

https://phabricator.services.mozilla.com/D2162
Attachment #8992400 - Flags: review+
Pushed by bholley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a569c1a920ed
Avoid interrupting the wrong script in watchdog tests. r=arai
https://hg.mozilla.org/mozilla-central/rev/a569c1a920ed
Status: NEW → RESOLVED
Closed: Last year
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.