WPT webrtc/RTCDataChannel-close.html intermittently fails a subtest "Close peerconnection causes close event and error on many channels, datachannel"
Categories
(Core :: WebRTC, defect)
Tracking
()
People
(Reporter: dholbert, Unassigned)
References
(Blocks 1 open bug)
Details
We seem to intermittently fail a subtest in (interop-2026-relevant) WPT RTCDataChannel-close.html -- this subtest:
Close peerconnection causes close event and error on many channels, datachannel
FAIL
expected 0 but got 1
Here's a failure on wpt.fyi from a run on Nov 14th:
https://wpt.fyi/results/webrtc/RTCDataChannel-close.html?sha=22232ef&label=master&label=experimental&product=firefox&view=interop&q=label%3Ainterop-2026-webrtc
...and from a run on Nov 11th:
https://wpt.fyi/results/webrtc/RTCDataChannel-close.html?sha=76f5455&label=master&label=experimental&product=firefox&view=interop&q=label%3Ainterop-2026-webrtc
We have this test annotated as intermittently-failing on Linux opt X11, for our own CI runs:
https://searchfox.org/firefox-main/rev/f8af3e04c05011435304e0a491f47b854e3e2750/testing/web-platform/meta/webrtc/RTCDataChannel-close.html.ini#6-8
[Close peerconnection causes close event and error on many channels, datachannel]
expected:
if (os == "linux") and not debug and (display == "x11"): [PASS, FAIL]
We should investigate this intermittent failure and see if we can avoid having it fail (particularly on wpt.fyi). Maybe worth removing that^ .ini annotation and doing a Try run, and investigating the failures?
(The most recent intermittent-failuer on wpt.fyi was over 2 weeks ago, so it's also possible that we've fixed this? Or maybe it's just low-frequency.)
| Reporter | ||
Comment 2•2 days ago
•
|
||
Here's the test itself, FWIW:
https://searchfox.org/firefox-main/rev/f8af3e04c05011435304e0a491f47b854e3e2750/testing/web-platform/tests/webrtc/RTCDataChannel-close.html#218
The failing assertion (quoted in comment 0) just says "expected 0 but got 1" -- unfortunately there are several assertions there that expect 0, and I'm not sure if we can tell (from the failures that have happened so far) which of those assertions is failing:
https://searchfox.org/firefox-main/rev/f8af3e04c05011435304e0a491f47b854e3e2750/testing/web-platform/tests/webrtc/RTCDataChannel-close.html#215-218
await waitForCountIsZero;
assert_equals(closeExpectedCount, 0);
assert_equals(errorExpectedCount, 0);
}, `Close peerconnection causes close event and error on many channels, ${mode}`);
(Presumably either errorExpectedCount or errorExpectedCount is unexpectedly 1, but I'm not sure we can tell right now which one it is.)
Comment 3•2 days ago
|
||
I figure we'll remove the ini file annotation when we get around to a periodic bulk cleanup.
Updated•2 days ago
|
| Reporter | ||
Comment 5•2 days ago
•
|
||
Here are a few other intermittent failures I saw on wpt.fyi in this same test, when looking a bit more carefully over the last month -- 4 other subtests (these 4 being different from the one in comment 0, and different from each other)
Nov 1st (sha=bdcdab0):
https://wpt.fyi/results/webrtc/RTCDataChannel-close.html?sha=bdcdab0&label=experimental&label=master&product=firefox&view=interop&q=label%3Ainterop-2026-webrtc
Close peerconnection causes close event and error to be called on negotiated datachannel
FAIL
message: assert_array_equals: lengths differ, expected array ["error", "close"] length 2, got ["close"] length 1
Nov 4th (sha=9cdb185):
https://wpt.fyi/results/webrtc/RTCDataChannel-close.html?sha=9cdb185&label=master&label=experimental&product=firefox&view=interop&q=label%3Ainterop-2026-webrtc
Close peerconnection causes close event and error on many channels, negotiated datachannel
FAIL
message: assert_equals: expected 0 but got 10
Nov 5th (sha=bccd09e&):
https://wpt.fyi/results/webrtc/RTCDataChannel-close.html?sha=bccd09e&label=master&label=experimental&product=firefox&view=interop&q=label%3Ainterop-2026-webrtc
Close peerconnection causes close event and error on many channels, datachannel
FAIL
message: assert_equals: expected 0 but got 10
Nov 17th (sha=34bdce1):
https://wpt.fyi/results/webrtc/RTCDataChannel-close.html?sha=34bdce1&label=master&label=experimental&product=firefox&view=interop&q=label%3Ainterop-2026-webrtc
Close peerconnection causes close event and error to be called on datachannel
FAIL
message: assert_array_equals: lengths differ, expected array ["error", "close"] length 2, got ["close"] length 1
The last failure that I saw at all was on Nov 17th, which is consistent with this being fixed by bwc's identified bug 2072337 (which landed on Nov 17th). Hooray!
Description
•