Open
Bug 948249
Opened 11 years ago
Updated 2 years ago
[meta] Mochitest for dom/media report false positive
Categories
(Core :: WebRTC, defect)
Tracking
()
NEW
People
(Reporter: drno, Unassigned)
References
(Depends on 2 open bugs, Blocks 2 open bugs)
Details
(Keywords: meta, Whiteboard: [WebRTC], [blocking-webrtc-],[webrtc-mochitest])
Attachments
(9 files, 1 obsolete file)
(deleted),
text/x-log
|
Details | |
(deleted),
text/x-log
|
Details | |
(deleted),
text/x-log
|
Details | |
(deleted),
application/octet-stream
|
Details | |
(deleted),
text/x-log
|
Details | |
(deleted),
text/x-log
|
Details | |
(deleted),
text/x-log
|
Details | |
(deleted),
application/octet-stream
|
Details | |
(deleted),
patch
|
abr
:
review-
|
Details | Diff | Splinter Review |
When the tests in dom/media/tests/mochitest/test_peerConnection_* are executed on Mac OSX with the OS firewall turned on only a few STUN Binding Requests get send, as the user is normally to slow to click the "Accept" button in the firewall pop-up before the transmission times out.
Even though no STUN responses, DTLS packets or media has been exchanged between the two ports in this case the mochitest still reports a "Pass" for all the tests!
Note: test_dataChannel_* do not seem to be affected. Either because they retransmit, or because the primary audio channel does not get used by these test any how and ICE for the data channel starts a later point in time.
Attaching log files for test_peerConnection_basicAudioVideo.html
Reporter | ||
Updated•11 years ago
|
Assignee: nobody → drno
Reporter | ||
Updated•11 years ago
|
QA Contact: drno
Reporter | ||
Comment 1•11 years ago
|
||
Reporter | ||
Comment 2•11 years ago
|
||
Reporter | ||
Comment 3•11 years ago
|
||
Reporter | ||
Comment 4•11 years ago
|
||
Reporter | ||
Comment 5•11 years ago
|
||
Reporter | ||
Comment 6•11 years ago
|
||
Reporter | ||
Comment 7•11 years ago
|
||
Reporter | ||
Updated•11 years ago
|
Status: NEW → ASSIGNED
Reporter | ||
Comment 8•11 years ago
|
||
Reporter | ||
Updated•11 years ago
|
Attachment #8348439 -
Attachment is obsolete: true
Reporter | ||
Comment 9•11 years ago
|
||
Reporter | ||
Comment 10•11 years ago
|
||
Comment on attachment 8349053 [details] [diff] [review]
This adds ICE connection check on both ends of PeerConnection tests
Note: this implementation uses polling with an interval, but it works.
I'm planing on opening a separate ticket for an implementation which utilizes oniceconnectionstatechange.
Attachment #8349053 -
Flags: review?(rjesup)
Attachment #8349053 -
Flags: review?(adam)
Comment 11•11 years ago
|
||
Comment on attachment 8349053 [details] [diff] [review]
This adds ICE connection check on both ends of PeerConnection tests
Review of attachment 8349053 [details] [diff] [review]:
-----------------------------------------------------------------
Please change this to at least check for a known-bad ice state so you can fail fast when that happens. Also consider using an event model for ice state validation rather than a polling model.
::: dom/media/tests/mochitest/pc.js
@@ +1335,5 @@
> + },
> +
> + /**
> + * Polls the ICE connection state on an interval base and
> + * reports success or failure (=timeout).
Polling is a rather inelegant way of taking care of this check. Also, with the current structure, the only way a failure is detected is by timing out, even when information that the connection has failed is available.
I think you really want to re-write this in terms of the PC "iceconnectionstatechange" event.
Basically: register an event handler for that event. If it transitions to connected, continue the tests. If it transitions to failed, disconnected, or closed, then register a failure. Don't worry about timeouts here; the mochi test framework takes care of them for us.
Attachment #8349053 -
Flags: review?(rjesup)
Attachment #8349053 -
Flags: review?(adam)
Attachment #8349053 -
Flags: review-
Reporter | ||
Comment 12•11 years ago
|
||
Thanks for the feedback.
I decided to work on a better implementation in bug 951892 and use this ticket as an umbrella for a collection of problems around the mochitests.
Reporter | ||
Updated•11 years ago
|
Summary: Mochitest for dom/media report false positive → [meta] Mochitest for dom/media report false positive
Reporter | ||
Updated•10 years ago
|
Whiteboard: [WebRTC], [blocking-webrtc-] → [WebRTC], [blocking-webrtc-],[webrtc-mochitest]
Reporter | ||
Updated•10 years ago
|
Status: ASSIGNED → NEW
Reporter | ||
Updated•10 years ago
|
Assignee: drno → nobody
QA Contact: drno
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•