Closed Bug 1356466 Opened 7 years ago Closed 7 years ago

Intermittent dom/workers/test/serviceworkers/test_devtools_track_serviceworker_time.html | We shouldn't get sw when we are notified for frist time updating - got 3, expected -1

Categories

(Core :: DOM: Workers, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

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

References

Details

(Keywords: intermittent-failure, Whiteboard: [stockwell fixed])

Attachments

(1 file)

This is a new test, failing intermittently on linux since added in bug 1251238.

:tt - Please try to make this test more reliable.
Blocks: 1251238
Flags: needinfo?(ttung)
Whiteboard: [stockwell needswork]
Start to work on this.
Assignee: nobody → ttung
Flags: needinfo?(ttung)
Hi Ben,

I think I find out the reason why causing this intermittent. The reason is I resolve promise too early[1] to make checks[2] finish. Once the promise is resolved, the test will unregister the service worker which terminates the service worker and hits the assertion. The solution is to ensure we've done all the checks and then resolve the promise. After applying this patch, the test won't fail by running 200 times rr of opt and debug builds in my local linux machine. 

Could you help me to review this patch? Thanks!

[1] http://searchfox.org/mozilla-central/source/dom/workers/test/serviceworkers/test_devtools_track_serviceworker_time.html#167
[2] http://searchfox.org/mozilla-central/source/dom/workers/test/serviceworkers/test_devtools_track_serviceworker_time.html#162
Oops, I forgot to ni...
ni :bkelly for comment 5
Flags: needinfo?(bkelly)
Flags: needinfo?(bkelly)
Thanks for the review!
Keywords: checkin-needed
Attachment #8859066 - Attachment description: Bug 1356466: Make checking function resolve late enough to prevent from unregistering too early. → [Final] Bug 1356466: Make checking function resolve late enough to prevent from unregistering too early.
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/e2ea72d6ed2c
Make checking function resolve late enough to prevent from unregistering too early. r=bkelly
Keywords: checkin-needed
Thanks for getting a patch put together, I will check on in this in a couple days!
https://hg.mozilla.org/mozilla-central/rev/e2ea72d6ed2c
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Looking good now. Thanks Tom!
Whiteboard: [stockwell needswork] → [stockwell fixed]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: