Closed Bug 1813147 Opened 1 year ago Closed 1 year ago

wpt expect outbound-rtp stats to show up before packets have been sent

Categories

(Core :: WebRTC: Signaling, defect)

defect

Tracking

()

RESOLVED FIXED
113 Branch
Tracking Status
firefox113 --- fixed

People

(Reporter: bwc, Assigned: bwc)

References

Details

Attachments

(1 file, 1 obsolete file)

Multiple wpt require outbound-rtp stats to show up as soon as the PC is connected, but we do not start populating those stats until we have actually sent RTP. Additionally, there seems to be at least one case in wpt where it is testing for the presence of outbound-rtp stats when no packets have yet been sent:

https://searchfox.org/mozilla-central/rev/4d2b1f753871ce514f9dccfc5b1b5e867f499229/testing/web-platform/tests/webrtc-stats/rtp-stats-creation.html#47

I've looked at the spec, and it looks vague about this; I don't see any language specifying when, precisely, the outbound-rtp stats are expected to show up.

The delay here is causing intermittent PASS/FAIL on many of these test cases. We need to figure out what the spec's intent here is, modify the spec to explicitly state its intent, and then either fix our code, or fix the tests, depending on that intent.

Based on the following, it looks like the wpt are just wrong and need to be fixed:

https://github.com/w3c/webrtc-stats/issues/619
https://github.com/w3c/webrtc-stats/issues/667

Assignee: nobody → docfaraday
Type: task → defect
Summary: outbound-rtp stats does not show up until packets have been sent → wpt expect outbound-rtp stats to show up before packets have been sent

Marking this as dependent on bug 1265827, because many of these tests fail in Firefox because of bug 1265827 before they ever get to outbound-rtp stats checking.

Depends on: 1265827

Also update ini files for remaining bugs.

Depends on D168143

Attachment #9315178 - Attachment is obsolete: true
Blocks: 1531087
Pushed by bcampen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b5567371a9b3
Fix these tests to wait until RTP flow before checking for outbound-rtp stats. r=jib
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/38506 for changes under testing/web-platform/tests

Backed out for causing build bustages on PeerConnectionImpl.cpp

mochitest log: https://treeherder.mozilla.org/logviewer?job_id=405685822&repo=autoland

Flags: needinfo?(docfaraday)
Upstream PR merged by moz-wptsync-bot
Pushed by bcampen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4f919e1da19a
Fix these tests to wait until RTP flow before checking for outbound-rtp stats. r=jib
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/38528 for changes under testing/web-platform/tests
Upstream PR merged by moz-wptsync-bot
Pushed by bcampen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e1c409f18d87
Fix these tests to wait until RTP flow before checking for outbound-rtp stats. r=jib
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/38982 for changes under testing/web-platform/tests
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
Upstream PR merged by moz-wptsync-bot
Flags: needinfo?(docfaraday)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: