Open Bug 948249 Opened 11 years ago Updated 2 years ago

[meta] Mochitest for dom/media report false positive

Categories

(Core :: WebRTC, defect)

All
macOS
defect

Tracking

()

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)

Attached file nspr.log with firewall (deleted) —
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
Assignee: nobody → drno
QA Contact: drno
Attached file stdout with firewall (deleted) —
Attached file audio log with firewall (deleted) —
Attached file PCAP trace file with firewall (deleted) —
Attached file nspr.log without firewall (deleted) —
Attached file stdout without firewall (deleted) —
Attached file audio log without firewall (deleted) —
Attached file PCAP trace file without firewall (deleted) —
Status: NEW → ASSIGNED
Depends on: 798686
Depends on: 950990
Attachment #8348439 - Attachment is obsolete: true
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 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-
Depends on: 951892
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.
Depends on: 951954
Keywords: meta
Whiteboard: [WebRTC], [blocking-webrtc-]
Blocks: pc-tests
Summary: Mochitest for dom/media report false positive → [meta] Mochitest for dom/media report false positive
Depends on: 970729
Whiteboard: [WebRTC], [blocking-webrtc-] → [WebRTC], [blocking-webrtc-],[webrtc-mochitest]
Status: ASSIGNED → NEW
Assignee: drno → nobody
QA Contact: drno
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: