Closed Bug 1143222 Opened 9 years ago Closed 5 years ago

Figure out the intermittent failures in the newly added DOM cache tests

Categories

(Core :: DOM: Core & HTML, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla39
Tracking Status
firefox39 --- fixed

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

References

Details

Attachments

(1 file)

These are failing a lot it seems.
Trying to get some frequency info on this try push:

https://treeherder.mozilla.org/#/jobs?repo=try&revision=ec238ff02540
Ehsan, is there some pref to set now to avoid the SW getting queued due to max workers per origin limit?
(In reply to Ben Kelly [:bkelly] from comment #3)
> Ehsan, is there some pref to set now to avoid the SW getting queued due to
> max workers per origin limit?

It's dom.serviceWorkers.exemptFromPerDomainMax which we set in driver.js.

So I haven't yet looked into why these failures happen, but they definitely only happen on parallel runs:

<https://treeherder.mozilla.org/#/jobs?repo=try&revision=121594709250>

So I have re-enabled the tests and for now have set them to run sequentially for now:

<https://hg.mozilla.org/integration/mozilla-inbound/rev/d5bf133711c4>
Discoveries so far:

1. The failures seem to only happen when the service worker doesn't start up at all after finishing the sequential mode and entering the parallel mode.
2. ThreadSanitizer doesn't discover a race when this happens.
The test timeouts here are some form of bug 1141256, which causes the service
worker spawned in the parallel mode of the tests to never start up.  It turns
out that avoiding sending this huge message to the mochitest logger avoids the
issue on the infrastructure, so let's re-enable these tests.  Bug 1141256 still
needs to be investigated.
Attachment #8578357 - Flags: review?(bkelly)
Keywords: leave-open
Comment on attachment 8578357 [details] [diff] [review]
Avoid dumping out extremely long response bodies to the mochitest log, and re-enable the newly added DOM cache tests to run both in seqential and parallel modes

Review of attachment 8578357 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/cache/test/mochitest/test_cache_matchAll_request.js
@@ +18,5 @@
>    is(r.statusText, response.statusText,
>       "Both responses should have the same status text");
>    return r.text().then(function(text) {
> +    // Avoid dumping out the large response text to the log if they're equal.
> +    if (text != responseText) {

nit: !==

::: dom/cache/test/mochitest/test_cache_match_request.js
@@ +16,5 @@
>    is(r.statusText, response.statusText,
>       "Both responses should have the same status text");
>    return r.text().then(function(text) {
> +    // Avoid dumping out the large response text to the log if they're equal.
> +    if (text != responseText) {

nit: !==
Attachment #8578357 - Flags: review?(bkelly) → review+
https://hg.mozilla.org/mozilla-central/rev/161eb635963d
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Depends on: 1144601
Depends on: 1144072
Depends on: 1144576
Depends on: 1145094
Depends on: 1143274
Putting these tests in sequential mode again: https://hg.mozilla.org/integration/mozilla-inbound/rev/95288585a32c
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
https://hg.mozilla.org/mozilla-central/rev/95288585a32c
Status: REOPENED → RESOLVED
Closed: 9 years ago9 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
No longer depends on: 1143274
No longer depends on: 1145094
Depends on: 1143274
Depends on: 1145094
Component: DOM → DOM: Core & HTML
Status: REOPENED → RESOLVED
Closed: 9 years ago5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: