open-webrtc-toolkit / owt-server

General server (streaming/conference/transcoding/anayltics) for OWT. (A.k.a. MediaServer)
https://01.org/open-webrtc-toolkit
Apache License 2.0
1.13k stars 369 forks source link

WebTransport E2E test not stable #1053

Open qwu16 opened 3 years ago

qwu16 commented 3 years ago

WebTransport E2e test case will randomly fail in CI with following error:

INFO: '2021-08-03T03:04:12.931Z', 'Reader: [object ReadableStreamDefaultReader]' WebTransport end to end tests. ✖ Write an array and check data received.

Finished in 2.007 secs / 2 secs @ 03:04:14 GMT+0000 (Coordinated Universal Time)

SUMMARY: ✔ 0 tests completed ✖ 1 test failed

FAILED TESTS: WebTransport end to end tests. ✖ Write an array and check data received. Chrome Headless 92.0.4515.107 (Linux x86_64) Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.

jianjunz commented 3 years ago

The root cause seems to be one or more issues in QUIC agent. Uploading some logs.

Scenario 1: Authentication for WebTransport connection was timeout. workflow_log_1.zip server_log_1.zip

Scenario 2: Subscription didn't receive data. workflow_log_2.zip server_log_2.zip

jianjunz commented 2 years ago

Added logging level configuration to QUIC SDK for better debugging this issue. Scenario 1 should be fixed by #1074.