enable e10s service workers pref on nightly (set "dom.serviceWorkers.parent_intercept" to true on nightly)
Categories
(Core :: DOM: Service Workers, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: bkelly, Assigned: perry)
References
(Blocks 1 open bug)
Details
(Whiteboard: SW-MUST, [wptsync upstream])
Attachments
(6 files, 1 obsolete file)
Updated•7 years ago
|
Updated•6 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Comment 3•5 years ago
|
||
Backed out changeset 92a2a3bc9f07 (bug 1456995) for bc failures at browser_devtools_serviceworker_interception.js and xpcshell failures.
Backout: https://hg.mozilla.org/integration/autoland/rev/7b6c43ce6729ce1b5f74e144773f698a72b122ed
Push that started the failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&resultStatus=pending%2Crunning%2Csuccess%2Ctestfailed%2Cbusted%2Cexception&revision=92a2a3bc9f071cbb15343f9692c73bcf74d3bafc&selectedJob=263052970
Failure log bc:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=263052970&repo=autoland&lineNumber=24429
xpcshell:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=263052968&repo=autoland&lineNumber=2481
Comment 4•5 years ago
|
||
These changes seem to (also) have upset linux asan tests:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=263077074&repo=autoland&lineNumber=7615
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=263077078&repo=autoland&lineNumber=4566
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=263077083&repo=autoland&lineNumber=8648
Assignee | ||
Comment 5•5 years ago
|
||
The xpcshell test that fails isn't supposed to run (but it did anyways, see https://searchfox.org/mozilla-central/rev/c8dba8c886609d0fdb8fae68bab865bf03f1165c/dom/push/test/xpcshell/xpcshell.ini#23)
Comment 6•5 years ago
|
||
I think skip-if = serviceworker_e10s
only skips tests on the "-sw" platforms, ie platforms that were forcing the pref dom.serviceWorkers.parent_intercept
to true. It doesn't skip tests based on the dynamic value of the preference?
If we flip the pref to true on Nightly, then we either need to fix the tests or isolate them in separate ini files with parent_intercept
set to false.
Assignee | ||
Comment 7•5 years ago
|
||
(In reply to Julian Descottes [:jdescottes] from comment #6)
I think
skip-if = serviceworker_e10s
only skips tests on the "-sw" platforms, ie platforms that were forcing the prefdom.serviceWorkers.parent_intercept
to true. It doesn't skip tests based on the dynamic value of the preference?If we flip the pref to true on Nightly, then we either need to fix the tests or isolate them in separate ini files with
parent_intercept
set to false.
Right, unfortunately it seems like the test harness can't read the dynamic value (only via --setpref). I filed bug 1577912 for having tests be able to read prefs.
Assignee | ||
Comment 8•5 years ago
|
||
- Listen for observer topics in the parent-process when in parent intercept mode
- Remove an extra postMessage call (and the corresponding message handler)
Assignee | ||
Comment 9•5 years ago
|
||
Depends on D44513
Assignee | ||
Comment 10•5 years ago
|
||
Depends on D44514
Assignee | ||
Comment 11•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=2920b984522039f605a888dbce8f48d712bb969e
D44515 addresses the failing browser-chrome mochitest
D44514 addresses ASAN failures
D44513 addresses the failing xpcshell test
Comment 12•5 years ago
|
||
Comment 13•5 years ago
|
||
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=264797205&repo=autoland&lineNumber=69898
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=264801544&repo=autoland&lineNumber=3055
Backout link: https://hg.mozilla.org/integration/autoland/rev/dc3dbfd3e268de239d0ef77e548eb78d4f8d5971
[task 2019-09-03T19:17:10.628Z] 19:17:10 INFO - TEST-PASS | dom/serviceworkers/test/test_serviceworkerinfo.xul | Worker is not active!
[task 2019-09-03T19:17:10.628Z] 19:17:10 INFO - Buffered messages finished
[task 2019-09-03T19:17:10.629Z] 19:17:10 INFO - TEST-UNEXPECTED-FAIL | dom/serviceworkers/test/test_serviceworkerinfo.xul | Test timed out.
[task 2019-09-03T19:17:10.629Z] 19:17:10 INFO - SimpleTest.ok@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:277:18
[task 2019-09-03T19:17:10.629Z] 19:17:10 INFO - reportError@chrome://mochikit/content/tests/SimpleTest/TestRunner.js:121:22
[task 2019-09-03T19:17:10.629Z] 19:17:10 INFO - TestRunner._checkForHangs@chrome://mochikit/content/tests/SimpleTest/TestRunner.js:142:18
[task 2019-09-03T19:17:10.629Z] 19:17:10 INFO - setTimeout handlerTestRunner._checkForHangs@chrome://mochikit/content/tests/SimpleTest/TestRunner.js:170:15
[task 2019-09-03T19:17:10.629Z] 19:17:10 INFO - setTimeout handlerTestRunner._checkForHangs@chrome://mochikit/content/tests/SimpleTest/TestRunner.js:170:15
[task 2019-09-03T19:17:10.629Z] 19:17:10 INFO - setTimeout handlerTestRunner._checkForHangs@chrome://mochikit/content/tests/SimpleTest/TestRunner.js:170:15
[task 2019-09-03T19:17:10.629Z] 19:17:10 INFO - setTimeout handlerTestRunner._checkForHangs@chrome://mochikit/content/tests/SimpleTest/TestRunner.js:170:15
[task 2019-09-03T19:17:10.629Z] 19:17:10 INFO - setTimeout handlerTestRunner._checkForHangs@chrome://mochikit/content/tests/SimpleTest/TestRunner.js:170:15
[task 2019-09-03T19:17:10.629Z] 19:17:10 INFO - setTimeout handlerTestRunner._checkForHangs@chrome://mochikit/content/tests/SimpleTest/TestRunner.js:170:15
[task 2019-09-03T19:17:10.629Z] 19:17:10 INFO - setTimeout handlerTestRunner._checkForHangs@chrome://mochikit/content/tests/SimpleTest/TestRunner.js:170:15
[task 2019-09-03T19:17:10.629Z] 19:17:10 INFO - setTimeout handlerTestRunner._checkForHangs@chrome://mochikit/content/tests/SimpleTest/TestRunner.js:170:15
[task 2019-09-03T19:17:10.629Z] 19:17:10 INFO - setTimeout handlerTestRunner._checkForHangs@chrome://mochikit/content/tests/SimpleTest/TestRunner.js:170:15
[task 2019-09-03T19:17:10.629Z] 19:17:10 INFO - setTimeout handlerTestRunner._checkForHangs@chrome://mochikit/content/tests/SimpleTest/TestRunner.js:170:15
[task 2019-09-03T19:17:10.629Z] 19:17:10 INFO - setTimeout handlerTestRunner._checkForHangs@chrome://mochikit/content/tests/SimpleTest/TestRunner.js:170:15
[task 2019-09-03T19:17:10.629Z] 19:17:10 INFO - TestRunner.runTests/<@chrome://mochikit/content/tests/SimpleTest/TestRunner.js:388:20
[task 2019-09-03T19:17:10.629Z] 19:17:10 INFO - promise callbackTestRunner.runTests@chrome://mochikit/content/tests/SimpleTest/TestRunner.js:375:50
[task 2019-09-03T19:17:10.629Z] 19:17:10 INFO - RunSet.runtests@chrome://mochikit/content/tests/SimpleTest/setup.js:201:14
[task 2019-09-03T19:17:10.629Z] 19:17:10 INFO - RunSet.runall@chrome://mochikit/content/tests/SimpleTest/setup.js:180:12
[task 2019-09-03T19:17:10.629Z] 19:17:10 INFO - hookupTests@chrome://mochikit/content/tests/SimpleTest/setup.js:273:12
[task 2019-09-03T19:17:10.629Z] 19:17:10 INFO - parseTestManifest@chrome://mochikit/content/manifestLibrary.js:50:13
[task 2019-09-03T19:17:10.629Z] 19:17:10 INFO - getTestManifest/req.onload@chrome://mochikit/content/manifestLibrary.js:61:28
[task 2019-09-03T19:17:10.629Z] 19:17:10 INFO - EventHandlerNonNullgetTestManifest@chrome://mochikit/content/manifestLibrary.js:57:3
[task 2019-09-03T19:17:10.629Z] 19:17:10 INFO - hookup@chrome://mochikit/content/tests/SimpleTest/setup.js:253:20
[task 2019-09-03T19:17:10.629Z] 19:17:10 INFO - linkAndHookup@chrome://mochikit/content/harness.xul:45:3
[task 2019-09-03T19:17:10.630Z] 19:17:10 INFO - parseTestManifest@chrome://mochikit/content/manifestLibrary.js:50:13
[task 2019-09-03T19:17:10.630Z] 19:17:10 INFO - getTestManifest/req.onload@chrome://mochikit/content/manifestLibrary.js:61:28
[task 2019-09-03T19:17:10.630Z] 19:17:10 INFO - EventHandlerNonNullgetTestManifest@chrome://mochikit/content/manifestLibrary.js:57:3
[task 2019-09-03T19:17:10.630Z] 19:17:10 INFO - getTestList@chrome://mochikit/content/chrome-harness.js:258:18
[task 2019-09-03T19:17:10.630Z] 19:17:10 INFO - loadTests@chrome://mochikit/content/harness.xul:24:14
[task 2019-09-03T19:17:10.630Z] 19:17:10 INFO - EventListener.handleEvent*@chrome://mochikit/content/harness.xul:48:12
[task 2019-09-03T19:17:11.562Z] 19:17:11 INFO - Not taking screenshot here: see the one that was previously logged
Assignee | ||
Comment 14•5 years ago
|
||
Failures are tests that should be skipped when dom.serviceWorkers.parent_intercept=true. "serviceworker_e10s"/"sw-e10s" will be == nightly build unless overridden with --setpref (unless there's a better way).
Updated•5 years ago
|
Assignee | ||
Comment 15•5 years ago
|
||
Comment 14 isn't working for Android WPTs (I've only tried the emulators on try) because it looks like "nightly_build" isn't passed to them (see https://treeherder.mozilla.org/#/jobs?repo=try&revision=256264da48a9f593592b34ab10ef166930e770bf&selectedJob=267131194). Any suggestions James?
The tests in the link have their expectations modified as https://hg.mozilla.org/try/rev/bb81152f49af06b17a8c3aa1012e2c83ea3df3b9.
Comment 16•5 years ago
|
||
Looking at the wptreport.json
artifact (e.g. [1]) you can see the available data in the run_info
key; afaict that does have nightly_build
. So I"m not sure why those tests are matching that condition; I think I'd have to try the patch out and add some logging when setting the condition to be sure of what's going on.
[1] https://taskcluster-artifacts.net/E4Pa-ToKQPeNOP8H5TarKA/0/public/test_info//wptreport.json
Assignee | ||
Comment 17•5 years ago
|
||
Depends on D44514
Updated•5 years ago
|
Assignee | ||
Comment 18•5 years ago
|
||
Also replace ServiceWorkerManager shutdown logic's normal for-loops with
range-based for-loops.
Depends on D43170
Assignee | ||
Comment 19•5 years ago
|
||
The changes are just cleanup for member variables/methods that should
be private to ServiceWorkerManager.
Depends on D48179
Comment 20•5 years ago
|
||
Comment 23•5 years ago
|
||
Backed out 6 changesets (Bug 1456995) for devtools failure at browser/browser_aboutdebugging_serviceworker_timeout.js.
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=269856916&repo=autoland&lineNumber=2042
[task 2019-10-04T22:46:02.221Z] 22:46:02 INFO - Buffered messages logged at 22:44:32
[task 2019-10-04T22:46:02.221Z] 22:46:02 INFO - Longer timeout required, waiting longer... Remaining timeouts: 2
[task 2019-10-04T22:46:02.221Z] 22:46:02 INFO - Buffered messages logged at 22:45:17
[task 2019-10-04T22:46:02.221Z] 22:46:02 INFO - Longer timeout required, waiting longer... Remaining timeouts: 1
[task 2019-10-04T22:46:02.221Z] 22:46:02 INFO - Buffered messages finished
[task 2019-10-04T22:46:02.221Z] 22:46:02 INFO - TEST-UNEXPECTED-FAIL | devtools/client/aboutdebugging/test/browser/browser_aboutdebugging_serviceworker_timeout.js | Test timed out -
[task 2019-10-04T22:46:02.221Z] 22:46:02 INFO - Removing tab.
[task 2019-10-04T22:46:02.221Z] 22:46:02 INFO - Waiting for event: 'TabClose' on [object XULElement].
[task 2019-10-04T22:46:02.222Z] 22:46:02 INFO - Got event: 'TabClose' on [object XULElement].
[task 2019-10-04T22:46:02.222Z] 22:46:02 INFO - Tab removed and finished closing
[task 2019-10-04T22:46:02.222Z] 22:46:02 INFO - Removing tab.
[task 2019-10-04T22:46:02.222Z] 22:46:02 INFO - Waiting for event: 'TabClose' on [object XULElement].
[task 2019-10-04T22:46:02.222Z] 22:46:02 INFO - Got event: 'TabClose' on [object XULElement].
[task 2019-10-04T22:46:02.222Z] 22:46:02 INFO - Tab removed and finished closing
[task 2019-10-04T22:46:02.225Z] 22:46:02 INFO - TEST-PASS | devtools/client/aboutdebugging/test/browser/browser_aboutdebugging_serviceworker_timeout.js | The main process DebuggerServer has no pending connection when the test ends -
[task 2019-10-04T22:46:02.272Z] 22:46:02 INFO - GECKO(3880) | MEMORY STAT | vsize 1308MB | vsizeMaxContiguous 164MB | residentFast 551MB | heapAllocated 154MB
[task 2019-10-04T22:46:02.272Z] 22:46:02 INFO - TEST-OK | devtools/client/aboutdebugging/test/browser/browser_aboutdebugging_serviceworker_timeout.js | took 135165ms
[task 2019-10-04T22:46:02.307Z] 22:46:02 INFO - checking window state
[task 2019-10-04T22:46:02.322Z] 22:46:02 INFO - TEST-START | devtools/client/aboutdebugging/test/browser/browser_aboutdebugging_serviceworker_unregister.js
[task 2019-10-04T22:46:02.362Z] 22:46:02 INFO - GECKO(3880) | [Child 4736, Chrome_ChildThread] WARNING: pipe error: 109: file z:/task_1570210073/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 341
[task 2019-10-04T22:46:02.362Z] 22:46:02 INFO - GECKO(3880) | [Child 4736, Chrome_ChildThread] WARNING: pipe error: 109: file z:/task_1570210073/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 341
[task 2019-10-04T22:46:03.985Z] 22:46:03 INFO - GECKO(3880) | Empty service worker registered
[task 2019-10-04T22:46:47.326Z] 22:46:47 INFO - Not taking screenshot here: see the one that was previously logged
[task 2019-10-04T22:46:47.327Z] 22:46:47 INFO - Buffered messages logged at 22:46:02
[task 2019-10-04T22:46:47.327Z] 22:46:47 INFO - Entering test bound
[task 2019-10-04T22:46:47.327Z] 22:46:47 INFO - opening about:debugging
[task 2019-10-04T22:46:47.328Z] 22:46:47 INFO - Adding a new tab with URL: about:debugging
[task 2019-10-04T22:46:47.328Z] 22:46:47 INFO - Tab added and finished loading
[task 2019-10-04T22:46:47.328Z] 22:46:47 INFO - Wait until Connect page is displayed
[task 2019-10-04T22:46:47.329Z] 22:46:47 INFO - Buffered messages logged at 22:46:03
[task 2019-10-04T22:46:47.329Z] 22:46:47 INFO - Select This Firefox page
[task 2019-10-04T22:46:47.329Z] 22:46:47 INFO - Wait for requests to be complete
[task 2019-10-04T22:46:47.329Z] 22:46:47 INFO - Wait for runtime page to be rendered
[task 2019-10-04T22:46:47.329Z] 22:46:47 INFO - Adding a new tab with URL: http://example.com/browser/devtools/client/aboutdebugging/test/browser/resources/service-workers/empty-sw.html
[task 2019-10-04T22:46:47.329Z] 22:46:47 INFO - Tab added and finished loading
[task 2019-10-04T22:46:47.330Z] 22:46:47 INFO - Wait until the service worker appears and is running
[task 2019-10-04T22:46:47.330Z] 22:46:47 INFO - Buffered messages finished
[task 2019-10-04T22:46:47.330Z] 22:46:47 INFO - TEST-UNEXPECTED-FAIL | devtools/client/aboutdebugging/test/browser/browser_aboutdebugging_serviceworker_unregister.js | Test timed out -
[task 2019-10-04T22:46:47.330Z] 22:46:47 INFO - Removing tab.
[task 2019-10-04T22:46:47.330Z] 22:46:47 INFO - Waiting for event: 'TabClose' on [object XULElement].
[task 2019-10-04T22:46:47.345Z] 22:46:47 INFO - Got event: 'TabClose' on [object XULElement].
Assignee | ||
Comment 25•5 years ago
|
||
Somehow didn't catch that test. Looks like :ochameau has a simple fix for the failure on bug 1585829, so marked as blocked on that.
Comment 26•5 years ago
|
||
Comment 28•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/5786df27c1ac
https://hg.mozilla.org/mozilla-central/rev/7a07d4d1bf98
https://hg.mozilla.org/mozilla-central/rev/b7a13c7bc4f1
https://hg.mozilla.org/mozilla-central/rev/944a83c45961
https://hg.mozilla.org/mozilla-central/rev/bd6c3a2905f3
https://hg.mozilla.org/mozilla-central/rev/be9a6289486a
Updated•5 years ago
|
Comment 30•5 years ago
|
||
There are 50+ new different web-platform-tests failures in service-worker test since this landed: https://bugzilla.mozilla.org/buglist.cgi?list_id=14939737&chfield=%5BBug%20creation%5D&chfieldfrom=7d&short_desc_type=allwordssubstr&short_desc=service-worker&classification=Client%20Software&classification=Developer%20Infrastructure&classification=Components&classification=Server%20Software&classification=Other&query_format=advanced
Jens, can you take a look if the failures are from this bug and if yes, what can be done here, please?
Comment 32•5 years ago
|
||
(In reply to Sebastian Hengst [:aryx] (needinfo on intermittent or backout) from comment #31)
Jens, please see comment 30.
Just FYI, Jens is away until Friday.
Comment 33•5 years ago
|
||
(In reply to Sebastian Hengst [:aryx] (needinfo on intermittent or backout) from comment #30)
Jens, can you take a look if the failures are from this bug and if yes, what can be done here, please?
We are actively looking at/consolidating the WPT failures but had a few higher priority fall-outs from the landing. Special thanks to :apavel who has helped with duplicating some of the bugs that had the same underlying signature already.
Comment 34•5 years ago
|
||
(making it a little easier to find this bug based on pref name)
Description
•